1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/friendica_ynh.git synced 2024-09-03 18:36:14 +02:00
This commit is contained in:
OniriCorpe 2024-02-22 04:00:34 +01:00
parent ddc53004be
commit 66fb7d46aa
2 changed files with 5 additions and 4 deletions

View file

@ -18,8 +18,8 @@ InaccessibleDirectories=/home /root /boot /opt /mnt /media
ReadOnlyDirectories=/etc /usr
Restart=always
RestartSec=10
StartLimitBurst=2
StartLimitInterval=10
StartLimitBurst=1
StartLimitIntervalSec=10
# Sandboxing options to harden security
# Depending on specificities of your service/app, you may need to tweak these

View file

@ -41,14 +41,15 @@ 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"
ynh_restore_file --origin_path="/etc/systemd/system/$app-daemon.service"
systemctl enable "$app.service" --quiet
yunohost service add "$app-daemon" --description="Friendica daemon" --log="/var/log/$app/daemon.log"
ynh_restore_file --origin_path="/var/log/$app"
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
ynh_restore_file --origin_path="/etc/systemd/system/$app-daemon.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