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

cache-clean sets right permissions

This commit is contained in:
Lukas Macura 2016-04-19 15:59:45 +02:00
parent c5df621461
commit ca3962ba05

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