1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/converse_ynh.git synced 2024-09-03 18:25:53 +02:00
This commit is contained in:
ericgaspar 2021-07-18 09:05:37 +02:00
parent 84dea128e7
commit ad9677c0e1
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 8 additions and 0 deletions

View file

@ -46,6 +46,7 @@ ynh_script_progression --message="Storing installation settings..." --weight=2
ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_app_setting_set --app=$app --key=maindomain --value=$maindomain
#=================================================
# CREATE DEDICATED USER

View file

@ -18,6 +18,7 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
maindomain=$(ynh_app_setting_get --app=$app --key=maindomain)
#=================================================
# CHECK VERSION
@ -50,6 +51,12 @@ if [ -z "$final_path" ]; then
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
fi
# If maindomain doesn't exist, create it
if [ -z "$maindomain" ]; then
maindomain=$(yunohost domain main-domain --output-as plain)
ynh_app_setting_set --app=$app --key=maindomain --value=$maindomain
fi
# Cleaning legacy permissions
if ynh_legacy_permissions_exists; then
ynh_legacy_permissions_delete_all