diff --git a/scripts/install b/scripts/install index 9adeeb9..ceb8c8d 100755 --- a/scripts/install +++ b/scripts/install @@ -36,10 +36,12 @@ final_path=/var/www/$app # Define variables and Save app settings ynh_app_setting_set "$app" domain "$domain" +ynh_app_setting_set "$app" path "$path" ynh_app_setting_set "$app" is_public "$is_public" ynh_app_setting_set "$app" final_path "$final_path" ynh_app_setting_set "$app" runninguser "$runninguser" ynh_app_setting_set "$app" calibrepath "$calibrepath" +ynh_app_setting_set "$app" basicauthcreate "$basicauthcreate" finalnginxconf="/etc/nginx/conf.d/${domain}.d/${app}.conf" ynh_app_setting_set "$app" finalnginxconf "$finalnginxconf" @@ -63,7 +65,6 @@ sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../sources/config_local.php # Add basic auth if requested if [ "$basicauthcreate" = "Yes" ]; then - ynh_app_setting_set "$app" basicauthcreate "$basicauthcreate" ynh_app_setting_set "$app" basicauthuser "$basicauthuser" ynh_app_setting_set "$app" basicauthpass "$basicauthpass" diff --git a/scripts/remove b/scripts/remove index 45ad92d..e2a7896 100755 --- a/scripts/remove +++ b/scripts/remove @@ -19,7 +19,6 @@ CHECK_VAR "$app" "app name not set" path=$(ynh_app_setting_get $app path) domain=$(ynh_app_setting_get $app domain) final_path=$(ynh_app_setting_get $app final_path) -sitename=$(ynh_app_setting_get $app sitename) finalnginxconf=$(ynh_app_setting_get $app finalnginxconf) finalphpconf=$(ynh_app_setting_get $app finalphpconf) diff --git a/scripts/restore b/scripts/restore index 6556281..1a9f6a9 100755 --- a/scripts/restore +++ b/scripts/restore @@ -15,7 +15,6 @@ source /usr/share/yunohost/helpers # Retrieve old app settings final_path=$(ynh_app_setting_get $app final_path) path=$(ynh_app_setting_get $app path) -sitename=$(ynh_app_setting_get $app sitename) domain=$(ynh_app_setting_get $app domain) is_public=$(ynh_app_setting_get $app is_public) finalnginxconf=$(ynh_app_setting_get $app finalnginxconf) diff --git a/scripts/upgrade b/scripts/upgrade index f7a26e2..3e44903 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -19,7 +19,6 @@ CHECK_VAR "$app" "app name not set" path=$(ynh_app_setting_get $app path) domain=$(ynh_app_setting_get $app domain) final_path=$(ynh_app_setting_get $app final_path) -sitename=$(ynh_app_setting_get $app sitename) finalnginxconf=$(ynh_app_setting_get $app finalnginxconf) finalphpconf=$(ynh_app_setting_get $app finalphpconf) runninguser=$(ynh_app_setting_get $app runninguser)