فهرست منبع

Fix logrotate

Maniack Crudelis 7 سال پیش
والد
کامیت
efcc71cf19
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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