1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/armadietto_ynh.git synced 2024-09-03 18:06:18 +02:00
This commit is contained in:
ericgaspar 2022-01-14 00:08:39 +01:00
parent 43546bed50
commit 94348a148d
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 7 additions and 1 deletions

View file

@ -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?"

View file

@ -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