diff --git a/backup_new.sh b/backup_new.sh index 7156d8d..a17c1ce 100755 --- a/backup_new.sh +++ b/backup_new.sh @@ -219,7 +219,10 @@ printf "${cyan}[%s] -- [INFO] Log located at ${yellow}%s${cyan} --${norm}\n" \ "$(stamp)" "$logFile" >> "$logFile" -### stop seahub and sefile service +### stop seahub and seafile service if offline backup requested +if [ "$offlineBackup" -eq 1 ]; then + seafSvc stop +fi