Fix log+backup acls
This commit is contained in:
1 parent
80c5bb0ff0
commit
ab61e0e916
1 file changed
+13
+13
@@ -131,6 +131,17 @@ stop_docker() {
|
||||
return $?
|
||||
}
|
||||
|
||||
# Zugriffsrechte für Logs und Backups setzen
|
||||
#
|
||||
fix_acls() {
|
||||
log $DEBUG "$DBG fix_acls()"
|
||||
|
||||
log $DEBUG "$DBG chmod -R a+r $NAS_ROOT"
|
||||
chmod -R a+r $NAS_ROOT >>$LOG_FILE 2>&1
|
||||
log $DEBUG "$DBG chmod -R a+r $LLOG_FILE_PATH"
|
||||
chmod -R a+r $LLOG_FILE_PATH >>$LOG_FILE 2>&1
|
||||
}
|
||||
|
||||
# Script per ssh auf Server $1 im Hintergrund starten
|
||||
#
|
||||
# ssh start in background
|
||||
@@ -420,6 +431,7 @@ backup_daily() {
|
||||
|
||||
mail_log $INFO ">>>>>>>>>> end of auto backup"
|
||||
send_mail_log "Daily Backup"
|
||||
fix_acls
|
||||
|
||||
# ggf. weekly backup starten (z.ZT. nur auf NAS)
|
||||
if [ $HAS_WEEKLY -a $WEEKLY_DAY -eq $DAY ]; then
|
||||
@@ -438,6 +450,7 @@ backup_weekly() {
|
||||
|
||||
mail_log $INFO ">>>>>>>>>> end of auto backup"
|
||||
send_mail_log "Weekly Backup"
|
||||
fix_acls
|
||||
}
|
||||
|
||||
# ----- integrity -----
|
||||
|
||||
Reference in new issue
Block a user