Explorar el Código

Fix logrotate

Maniack Crudelis hace 8 años
padre
commit
efcc71cf19
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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