cache-clean sets right permissions

1.2
Lukas Macura 2016-04-19 15:59:45 +02:00
parent c5df621461
commit ca3962ba05
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,10 @@ zaf_cache_clean(){
zaf_err "Cache dir not set."
fi
mkdir -p "$ZAF_CACHE_DIR"
if zaf_is_root; then
chmod g+rwx "$ZAF_CACHE_DIR"
chgrp zabbix "$ZAF_CACHE_DIR"
fi
}
# Get cache key from requested param