update func cleanup to call svcSeafile

This commit is contained in:
Asif Bacchus 2019-05-19 20:34:41 -06:00
parent 8030ff42cf
commit b1f0377e27

View File

@ -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