From b24053ca8fc3f33b625566b4a8f0e6a63db8d8da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 18 Apr 2023 13:49:01 +0200 Subject: [PATCH] fix --- conf/{cron_lufi => cron} | 0 scripts/change_url | 8 +------- scripts/install | 2 +- scripts/upgrade | 2 +- 4 files changed, 3 insertions(+), 9 deletions(-) rename conf/{cron_lufi => cron} (100%) diff --git a/conf/cron_lufi b/conf/cron similarity index 100% rename from conf/cron_lufi rename to conf/cron diff --git a/scripts/change_url b/scripts/change_url index 27c31b9..80fb431 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -41,12 +41,7 @@ then ldap="" fi -max_size_set="" -if [ $max_file_size -eq 0 ]; then # Comment the limitation line if no limit - max_size_set="#" -fi - -ynh_add_config --template="../conf/lufi.conf.template" --destination="$install_dir/lufi.conf" +ynh_add_config --template="../conf/lufi.conf" --destination="$install_dir/lufi.conf" chmod 600 $install_dir/lufi.conf chown $app:$app $install_dir/lufi.conf @@ -61,7 +56,6 @@ ynh_script_progression --message="Starting a systemd service..." # Start a systemd service ynh_systemd_action --service_name=$app --action="start" --log_path="$install_dir/log/production.log" --line_match="Creating process id file" - #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/install b/scripts/install index 3ef0188..3ae5a6d 100644 --- a/scripts/install +++ b/scripts/install @@ -73,7 +73,7 @@ popd #================================================= ynh_script_progression --message="Setuping a cron..." -ynh_add_config --template="../conf/cron_lufi" --destination="/etc/cron.d/$app" +ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" chmod +x $install_dir/script/lufi #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index e3b8a39..9b2f9f0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -89,7 +89,7 @@ popd #================================================= ynh_script_progression --message="Setuping cron..." -ynh_add_config --template="../conf/cron_lufi" --destination="/etc/cron.d/$app" +ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" chmod +x $install_dir/script/lufi #=================================================