diff --git a/scripts/install b/scripts/install index 646a672..0ba638a 100644 --- a/scripts/install +++ b/scripts/install @@ -110,13 +110,6 @@ ln -s "/etc/uwsgi/apps-available/$app.ini" "$final_path/syncserver.ini" # configure uwsgi ynh_add_uwsgi_service 'domain secret db_user db_pwd db_name' -#================================================= -# INTEGRATE SERVICE IN YUNOHOST -#================================================= -ynh_script_progression --message="Integrating service in YunoHost..."--weight=1 - -yunohost service add "uwsgi-app@$app" --log "/var/log/uwsgi/$app/$app.log" - #================================================= # MODIFY A CONFIG FILE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 957b221..69a52c1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -18,7 +18,7 @@ ynh_script_progression --message="Loading installation settings..." app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) -path_url=$(ynh_app_setting_get --app $app --key path) +path_url=$(ynh_normalize_url_path --path_url $(ynh_app_setting_get --app $app --key path)) final_path=$(ynh_app_setting_get --app $app --key=final_path) db_name=$(ynh_app_setting_get --app=$app --key=db_name) secret=$(ynh_app_setting_get --app $app --key=secret) @@ -154,13 +154,6 @@ ynh_script_progression --message="Securing files and directories..." # Set permissions on app files set_permissions -#================================================= -# INTEGRATE SERVICE IN YUNOHOST -#================================================= -ynh_script_progression --message="Integrating service in YunoHost..."--weight=1 - -yunohost service add "uwsgi-app@$app" --log "/var/log/uwsgi/$app/$app.log" - #================================================= # SETUP SSOWAT #=================================================