Browse Source

Fix logrotate

Maniack Crudelis 7 years ago
parent
commit
efcc71cf19
1 changed files with 2 additions and 0 deletions
  1. 2 0
      scripts/restore

+ 2 - 0
scripts/restore

@@ -77,6 +77,8 @@ ynh_system_user_create $app	# Recreate the dedicated user, if not exist
 
 # Les fichiers appartiennent à root
 chown $app: -R "/etc/pihole"
+# /etc/pihole/logrotate have to belong to root, otherwise logrotate will failed silently...
+chown root: -R "/etc/pihole/logrotate"
 
 #=================================================
 # RESTORE OF THE PHP-FPM CONFIGURATION