mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
fixes
This commit is contained in:
parent
ddc53004be
commit
66fb7d46aa
2 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue