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"
|
||||
fi
|
||||
|
||||
## Exit Seafile maintenance mode regardless of current status
|
||||
ncMaint off
|
||||
# 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
|
||||
## Restart Seafile services
|
||||
svcSeafile start
|
||||
}
|
||||
|
||||
### scriptHelp -- display usage information for this script
|
||||
|
Loading…
Reference in New Issue
Block a user