mirror of
https://github.com/YunoHost-Apps/armadietto_ynh.git
synced 2024-09-03 18:06:18 +02:00
Fix
This commit is contained in:
parent
43546bed50
commit
94348a148d
2 changed files with 7 additions and 1 deletions
|
@ -5,7 +5,7 @@ name = "Armadietto configuration"
|
|||
|
||||
[main.global_config]
|
||||
name = "Access options"
|
||||
services = ["nginx", "__APP__"]
|
||||
services = ["__APP__"]
|
||||
|
||||
[main.global_config.is_signup]
|
||||
ask = "Allow signups?"
|
||||
|
|
|
@ -57,6 +57,12 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app
|
|||
#=================================================
|
||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||
|
||||
# If is_signup doesn't exist, create it
|
||||
if [ -z "$is_signup" ]; then
|
||||
is_signup="true"
|
||||
ynh_app_setting_set --app=$app --key=is_signup --value=$is_signup
|
||||
fi
|
||||
|
||||
# Cleaning legacy permissions
|
||||
if ynh_legacy_permissions_exists; then
|
||||
ynh_legacy_permissions_delete_all
|
||||
|
|
Loading…
Add table
Reference in a new issue