From 3b2c16c5d963b32c458602ebd4f5fa7c5a5c0e37 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 18 Oct 2020 18:01:25 +0200 Subject: [PATCH] fix --- scripts/change_url | 22 +++++++++++----------- scripts/install | 2 +- scripts/restore | 2 ++ 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index a5413b3..980f39d 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -80,22 +80,22 @@ fi #================================================= # SPECIFIC MODIFICATIONS #================================================= -ynh_script_progression --message="Configuring $app..." --weight=1 +# ynh_script_progression --message="Configuring $app..." --weight=1 -domain="$new_domain" -path_url="$new_path" +# domain="$new_domain" +# path_url="$new_path" -ynh_backup_if_checksum_is_different --file="$final_path/settings.php" +# ynh_backup_if_checksum_is_different --file="$final_path/settings.php" -cp ../conf/settings.php "$final_path/settings.php" +# cp ../conf/settings.example.php "$final_path/settings.php" -# Change domain name in config.php -ynh_replace_string --match_string="__DBNAME__" --replace_string="$db_name" --target_file="$final_path/settings.php" -ynh_replace_string --match_string="__DBPWD__" --replace_string="$db_pwd" --target_file="$final_path/settings.php" -ynh_replace_string --match_string="__DOMAINPATH__" --replace_string="https://$domain$path_url" --target_file="$final_path/settings.php" +# # Change domain name in config.php +# ynh_replace_string --match_string="__DBNAME__" --replace_string="$db_name" --target_file="$final_path/settings.php" +# ynh_replace_string --match_string="__DBPWD__" --replace_string="$db_pwd" --target_file="$final_path/settings.php" +# #ynh_replace_string --match_string="__DOMAINPATH__" --replace_string="https://$domain$path_url" --target_file="$final_path/settings.php" -# Recalculate and store the config file checksum into the app settings -ynh_store_file_checksum --file="$final_path/settings.php" +# # Recalculate and store the config file checksum into the app settings +# ynh_store_file_checksum --file="$final_path/settings.php" #================================================= # GENERIC FINALIZATION diff --git a/scripts/install b/scripts/install index 9906bb0..05531bf 100644 --- a/scripts/install +++ b/scripts/install @@ -101,7 +101,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= ynh_script_progression --message="Configuring Backdrop..." --weight=1 -cp ../conf/settings.php "$final_path/settings.php" +cp ../conf/settings.example.php "$final_path/settings.php" # Change variables in ttrss configuration ynh_replace_string --match_string="__DBNAME__" --replace_string="$db_name" --target_file="$final_path/settings.php" diff --git a/scripts/restore b/scripts/restore index c769a85..cc063ae 100644 --- a/scripts/restore +++ b/scripts/restore @@ -67,6 +67,8 @@ ynh_system_user_create --username=$app # Set permissions to app files chown -R root: $final_path +chown -R $app:www-data $final_path/files +chmod -R 770 $final_path/files #================================================= # RESTORE THE PHP-FPM CONFIGURATION