From 2b8941da5188d5eca84f74f479acbcdc9e8511f4 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 23 May 2019 21:54:57 -0600 Subject: [PATCH] stop seafile services if offline backup requested --- backup_new.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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