1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/friendica_ynh.git synced 2024-09-03 18:36:14 +02:00

finalization

This commit is contained in:
OniriCorpe 2024-02-13 21:46:50 +01:00
parent fe2feacdf3
commit 95c762902a
4 changed files with 9 additions and 4 deletions

View file

@ -54,6 +54,7 @@ ynh_backup --src_path="/etc/logrotate.d/$app"
# BACKUP VARIOUS FILES
#=================================================
ynh_backup --src_path="/var/log/$app/daemon.log"
ynh_backup --src_path="/etc/systemd/system/$app.service"
#=================================================

View file

@ -53,7 +53,7 @@ ynh_add_systemd_config
# Create a dedicated nginx config
ynh_add_nginx_config
yunohost service add "$app" --description="Friendica daemon" --log="/var/log/$app/$app.log"
yunohost service add "$app" --description="Friendica daemon" --log="/var/log/$app/daemon.log"
# Use logrotate to manage application logfile(s)
ynh_use_logrotate

View file

@ -38,14 +38,18 @@ ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
yunohost service add "$app" --description="Friendica daemon" --log="/var/log/$app/daemon.log"
ynh_restore_file --origin_path="/var/log/$app/daemon.log"
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
ynh_restore_file --origin_path="/etc/fail2ban/jail.d/$app.conf"
ynh_restore_file --origin_path="/etc/fail2ban/filter.d/$app.conf"
ynh_systemd_action --action=restart --service_name=fail2ban
ynh_restore_file --origin_path="/etc/cron.d/$app"
#=================================================
# GENERIC FINALIZATION
#=================================================

View file

@ -20,7 +20,7 @@ upgrade_type=$(ynh_check_app_version_changed)
#=================================================
ynh_script_progression --message="Stopping a systemd service..." --weight=1
ynh_systemd_action --service_name="$app" --action="stop" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name="$app" --action="stop" --log_path="/var/log/$app/daemon.log"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE