From e527c2abf181843b399fd9f8eacc9e0142496bd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 20 Oct 2024 22:22:29 +0200 Subject: [PATCH] cleaning --- scripts/install | 7 ------- scripts/restore | 4 ---- scripts/upgrade | 5 ----- 3 files changed, 16 deletions(-) diff --git a/scripts/install b/scripts/install index 8941a8c..056a1a5 100644 --- a/scripts/install +++ b/scripts/install @@ -25,8 +25,6 @@ ynh_script_progression "Setting up source files..." ynh_setup_source --dest_dir="$install_dir" -#chmod -R o-rwx "$install_dir" -#chown -R "$app:www-data" "$install_dir" chmod +x "$install_dir/server/bin/prod.js" #================================================= @@ -47,11 +45,6 @@ ynh_script_progression "Adding $app's configuration..." ynh_config_add --template="config.js" --destination="$install_dir/server/config.js" -#chmod 400 "$install_dir/server/config.js" -#chown "$app:" "$install_dir/server/config.js" - -#================================================= -# SPECIFIC SETUP #================================================= # BUILD APP #================================================= diff --git a/scripts/restore b/scripts/restore index d787dc8..a8a434e 100644 --- a/scripts/restore +++ b/scripts/restore @@ -10,12 +10,8 @@ ynh_script_progression "Restoring the app main directory..." ynh_restore "$install_dir" -#chmod -R o-rwx "$install_dir" -#chown -R "$app:www-data" "$install_dir" chmod +x "$install_dir/server/bin/prod.js" -#================================================= -# SPECIFIC RESTORATION #================================================= # REINSTALL DEPENDENCIES #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 326aab4..2aba8b3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -24,8 +24,6 @@ ynh_script_progression "Upgrading source files..." ynh_setup_source --dest_dir="$install_dir" --keep="server/config.js" --full_replace -#chmod -R o-rwx "$install_dir" -#chown -R "$app:www-data" "$install_dir" chmod +x "$install_dir/server/bin/prod.js" #================================================= @@ -53,9 +51,6 @@ ynh_script_progression "Updating configuration..." ynh_config_add --template="config.js" --destination="$install_dir/server/config.js" -#chmod 400 "$install_dir/server/config.js" -#chown "$app:" "$install_dir/server/config.js" - #================================================= # BUILD APP #=================================================