1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lufi_ynh.git synced 2024-09-03 19:36:28 +02:00
This commit is contained in:
Éric Gaspar 2023-04-18 13:49:01 +02:00
parent b85ccc98c8
commit b24053ca8f
4 changed files with 3 additions and 9 deletions

View file

@ -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
#=================================================

View file

@ -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
#=================================================

View file

@ -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
#=================================================