From ff5946f35ae34825c2f9a9bbe6dc3d990fa4c5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 12 Apr 2023 22:39:56 +0200 Subject: [PATCH] cleaning --- scripts/install | 9 --------- scripts/restore | 15 --------------- scripts/upgrade | 18 ------------------ 3 files changed, 42 deletions(-) diff --git a/scripts/install b/scripts/install index d647366..5b5aeb5 100644 --- a/scripts/install +++ b/scripts/install @@ -109,15 +109,6 @@ else cp "../sources/www/index_no_sftp.html" "$install_dir/www/index.html" fi -#if [ $with_mysql -eq 1 ]; then -# # Store the database access -# echo -e "# MySQL Database -#name: ${db_name}\nuser: ${db_name}\npass: ${db_pwd}" > ../sources/db_access.txt -# -# # Copy files to the right place -# cp -r "../sources/db_access.txt" "$install_dir/db_access.txt" -#fi - chown -R $app:www-data "$install_dir" # Home directory of the user needs to be owned by root to allow # SFTP connections diff --git a/scripts/restore b/scripts/restore index 35f7fed..3759d0a 100644 --- a/scripts/restore +++ b/scripts/restore @@ -18,19 +18,6 @@ with_mysql=$(ynh_app_setting_get --app=$app --key=with_mysql) with_sftp=$(ynh_app_setting_get --app=$app --key=with_sftp) password=$(ynh_app_setting_get --app=$app --key=password) -#================================================= -# STANDARD RESTORATION STEPS -#================================================= -# REINSTALL DEPENDENCIES -#================================================= - -#if [ $phpversion != "none" ] -#then -# ynh_script_progression --message="Reinstalling dependencies..." --weight=2 - -# ynh_install_app_dependencies "php${phpversion}-fpm" -#fi - #================================================= # RESTORE THE NGINX CONFIGURATION #================================================= @@ -44,8 +31,6 @@ 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" - db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_user=$db_name db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd) diff --git a/scripts/upgrade b/scripts/upgrade index 0ea32c8..d1e5518 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -73,24 +73,6 @@ ynh_app_setting_set --app=$app --key=password --value="$password" ynh_maintenance_mode_ON -#================================================= -# STANDARD UPGRADE STEPS -#================================================= -# INSTALL DEPENDENCIES -#================================================= - -#if [ $phpversion != "none" ] -#then -# ynh_script_progression --message="Installing dependencies..." --weight=2 - -# ynh_install_app_dependencies "php${phpversion}-fpm" -#fi - -#if [ $with_mysql -eq 1 ] -#then -# ynh_install_app_dependencies "php${phpversion}-mysql" -#fi - #================================================= # NGINX CONFIGURATION #=================================================