From a41104735bbcfa7635e8a4d4dc5ba7e549dc8a2e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 17 Dec 2023 10:44:26 +0100 Subject: [PATCH] cleaning --- scripts/install | 5 +++-- scripts/restore | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 4f2f56c..283e9d9 100644 --- a/scripts/install +++ b/scripts/install @@ -48,7 +48,8 @@ if [ $total_memory -lt $memory_needed ]; then swap_needed=$(($memory_needed - $total_memory)) fi -ynh_script_progression --message="Adding $swap_needed Mo to swap..." +ynh_script_progression --message="Adding $swap_needed Mo to swap..." --weight=1 + ynh_add_swap --size=$swap_needed #================================================= @@ -73,7 +74,7 @@ ynh_app_setting_set --app="$app" --key=otp_secret --value="$otp_secret" vapid_private_key="" vapid_public_key="" -ynh_add_config --template="../conf/.env.production.sample" --destination="$config" +ynh_add_config --template=".env.production.sample" --destination="$config" chmod 400 "$config" chown $app:$app "$config" diff --git a/scripts/restore b/scripts/restore index 2ff592f..3d7c1a7 100644 --- a/scripts/restore +++ b/scripts/restore @@ -47,6 +47,7 @@ if [ $total_memory -lt $memory_needed ]; then fi ynh_script_progression --message="Adding $swap_needed Mo to swap..." --weight=1 + ynh_add_swap --size=$swap_needed #=================================================