1
0
mirror of https://github.com/limosek/zaf.git synced 2024-11-24 19:39:08 +01:00

Right permissions on cache

This commit is contained in:
Lukas Macura 2016-04-21 16:07:21 +02:00
parent 2d9c2059fe
commit 1ea7d93cd8
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ zaf_cache_clean(){
mkdir -p "$ZAF_CACHE_DIR" mkdir -p "$ZAF_CACHE_DIR"
if zaf_is_root; then if zaf_is_root; then
chmod 770 "$ZAF_CACHE_DIR" chmod 770 "$ZAF_CACHE_DIR"
chgrp zabbix "$ZAF_CACHE_DIR" chgrp $(id -g zabbix) "$ZAF_CACHE_DIR"
fi fi
} }

4
zaf
View File

@ -64,8 +64,8 @@ if ! [ -d "${ZAF_CACHE_DIR}" ]; then
fi fi
if zaf_is_root; then if zaf_is_root; then
chgrp zabbix "${ZAF_CACHE_DIR}" chgrp $(id -g zabbix) "${ZAF_CACHE_DIR}"
chmod g+w "${ZAF_CACHE_DIR}" chmod 770 "${ZAF_CACHE_DIR}"
fi fi
case $1 in case $1 in