Commit c9a12dfc authored by Paul Cammish's avatar Paul Cammish
Browse files

Tweaked permissions

parent 00cbc55d
......@@ -9,8 +9,7 @@ echo -n 'I: Checking backups run ok.'
if [ $? -ne 0 ]; then echo ' FAIL'; exit 1; else echo " PASS"; fi
echo -n 'I: Checking backups verify ok.'
backup2l -v > /dev/null
if [ $? -ne 0 ]; then echo ' FAIL'; exit 1; else echo " PASS"; fi
if [ $( backup2l -v | grep -c 'ERROR' ) -ne 0 ]; then echo ' FAIL'; exit 1; else echo " PASS"; fi
state_post="$( find /var/backups/localhost/ | md5sum )"
......
......@@ -106,7 +106,7 @@ if [ -d /etc/sympl ]; then
find "/etc/sympl" ! -type l ! -path '*/test.d/*' \( ! -user sympl -o ! -group sympl \) -exec chown sympl:sympl {} \;
find "/etc/sympl" ! -type l ! -path '*/test.d/*' ! -perm o-w \( -type f -exec chmod 664 {} \; -o -type d -exec chmod 775 {} \; \)
find "/etc/sympl" ! -type l ! -path '*/test.d/*' ! -perm o-w \( -type f -exec chmod o-w {} \; -o -type d -exec chmod 775 {} \; \)
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment