From 2a62a1f49b34ce841536b33146c8f6f30d032b38 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Sun, 12 Jul 2020 23:32:25 +0300 Subject: [PATCH] upd --- SOURCES/kf2-srv-force-attr.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SOURCES/kf2-srv-force-attr.service b/SOURCES/kf2-srv-force-attr.service index 62a3ea5..a59cfcc 100644 --- a/SOURCES/kf2-srv-force-attr.service +++ b/SOURCES/kf2-srv-force-attr.service @@ -6,7 +6,7 @@ Type=simple StandardOutput=null StandardError=null EnvironmentFile=/etc/kf2-srv/kf2-srv.conf -ExecStart=/bin/bash -c 'declare -a DiffNames WaveNames; declare -A ModeNames MutNames; source /etc/kf2-srv/kf2-srv.conf; /usr/bin/inotifywait -qmr -e create -e moved_to --format %w%f /var/log/kf2-srv /var/log/kf2-srv-beta /etc/kf2-srv/instances /etc/kf2-srv/instances-beta | while read File; do if echo "${File}" | grep -Piq "\.log$"; then chmod "${ForceLogPermissions}" "${File}"; chown :"${ForceLogGroup}" "${File}"; elif echo "${File}" | grep -Piq "\.ini$"; then chmod "${ForceIniPermissions}" "${File}"; chown :"${ForceIniGroup}" "${File}"; fi; done' +ExecStart=/bin/bash -c 'declare -A ModeNames MutNames; source /etc/kf2-srv/kf2-srv.conf; /usr/bin/inotifywait -qmr -e create -e moved_to --format %%w%%f /var/log/kf2-srv /var/log/kf2-srv-beta /etc/kf2-srv/instances /etc/kf2-srv/instances-beta | while read File; do if echo "$File" | grep -Piq "\.log$"; then chmod "$ForceLogPermissions" "$File"; chown :"$ForceLogGroup" "$File"; elif echo "$File" | grep -Piq "\.ini$"; then chmod "$ForceIniPermissions" "$File"; chown :"$ForceIniGroup" "$File"; fi; done' Restart=always NoNewPrivileges=yes