diff --git a/doc/POST_INSTALL.md b/doc/POST_INSTALL.md index cf9449f..bf74996 100644 --- a/doc/POST_INSTALL.md +++ b/doc/POST_INSTALL.md @@ -1,5 +1,4 @@ -If you have requested a MYSQL database, please find information about this SQL database here. -`__INSTALL_DIR__/db_access.txt` +If you have requested a MYSQL database, please find information about this SQL database: Database user: __DB_USER__ Database name: __DB_NAME__ diff --git a/scripts/restore b/scripts/restore index 41778c8..35f7fed 100644 --- a/scripts/restore +++ b/scripts/restore @@ -24,12 +24,12 @@ password=$(ynh_app_setting_get --app=$app --key=password) # REINSTALL DEPENDENCIES #================================================= -if [ $phpversion != "none" ] -then - ynh_script_progression --message="Reinstalling dependencies..." --weight=2 +#if [ $phpversion != "none" ] +#then +# ynh_script_progression --message="Reinstalling dependencies..." --weight=2 - ynh_install_app_dependencies "php${phpversion}-fpm" -fi +# ynh_install_app_dependencies "php${phpversion}-fpm" +#fi #================================================= # RESTORE THE NGINX CONFIGURATION @@ -44,8 +44,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" if [ $with_mysql -eq 1 ]; then ynh_script_progression --message="Restoring the MySQL database..." - ynh_install_app_dependencies "php${phpversion}-mysql" - + #ynh_install_app_dependencies "php${phpversion}-mysql" db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_user=$db_name diff --git a/scripts/upgrade b/scripts/upgrade index 969e5c7..0ea32c8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -70,7 +70,6 @@ ynh_app_setting_set --app=$app --key=password --value="$password" #================================================= # ACTIVATE MAINTENANCE MODE #================================================= -ynh_script_progression --message="Activating maintenance mode..." ynh_maintenance_mode_ON @@ -80,17 +79,17 @@ ynh_maintenance_mode_ON # INSTALL DEPENDENCIES #================================================= -if [ $phpversion != "none" ] -then - ynh_script_progression --message="Installing dependencies..." --weight=2 +#if [ $phpversion != "none" ] +#then +# ynh_script_progression --message="Installing dependencies..." --weight=2 - ynh_install_app_dependencies "php${phpversion}-fpm" -fi +# ynh_install_app_dependencies "php${phpversion}-fpm" +#fi -if [ $with_mysql -eq 1 ] -then - ynh_install_app_dependencies "php${phpversion}-mysql" -fi +#if [ $with_mysql -eq 1 ] +#then +# ynh_install_app_dependencies "php${phpversion}-mysql" +#fi #================================================= # NGINX CONFIGURATION @@ -163,7 +162,6 @@ chmod 750 "$install_dir" #================================================= # DEACTIVE MAINTENANCE MODE #================================================= -ynh_script_progression --message="Disabling maintenance mode..." ynh_maintenance_mode_OFF