update func cleanup to call svcSeafile
This commit is contained in:
parent
8030ff42cf
commit
b1f0377e27
12
backup.sh
12
backup.sh
@ -76,16 +76,8 @@ function cleanup {
|
|||||||
"nothing to cleanup" >> "$logFile"
|
"nothing to cleanup" >> "$logFile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Exit Seafile maintenance mode regardless of current status
|
## Restart Seafile services
|
||||||
ncMaint off
|
svcSeafile start
|
||||||
# check if successful
|
|
||||||
if [ "$maintResult" = "0" ]; then
|
|
||||||
echo -e "${info}[$(stamp)] -- [INFO] Seafile now in regular" \
|
|
||||||
"operating mode --${normal}" >> "$logFile"
|
|
||||||
else
|
|
||||||
exitError+=("[$(stamp)]_101")
|
|
||||||
quit
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
### scriptHelp -- display usage information for this script
|
### scriptHelp -- display usage information for this script
|
||||||
|
Loading…
Reference in New Issue
Block a user