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:
parent
c5df621461
commit
ca3962ba05
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user