From 6b07e56996b20ce4b4f8b9f335dffb0942680af4 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 14 May 2018 12:11:49 +0200 Subject: [PATCH] fix bash-non-compatible ';' after '&' bg --- metactl/post-start.sh | 4 ++-- metactl/post-stop.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/metactl/post-start.sh b/metactl/post-start.sh index 91688eb..56f3bb4 100644 --- a/metactl/post-start.sh +++ b/metactl/post-start.sh @@ -86,7 +86,7 @@ echo -n " * Webpack build............."; docker exec php-fpm bash -c "cd /vhost; npm install; npm run build" >/dev/null 2>&1 && echo "built" || (echo "failed"; exit 1); # 3. touch the file the backup loop will use to run -echo -n " * Launch mariadb backup loop............."; +echo -n " * Mariadb backup loop......."; backup(){ if [ ! -d $ROOT/backups ]; then @@ -101,5 +101,5 @@ backup(){ done; } -backup &; +backup & echo "done" diff --git a/metactl/post-stop.sh b/metactl/post-stop.sh index 3d481bc..e44e438 100644 --- a/metactl/post-stop.sh +++ b/metactl/post-stop.sh @@ -28,5 +28,5 @@ else fi; rm $PID_FILE >/dev/null 2>&1; -echo -ne " * Kill backup loop............"; -rm $ROOT/backuploop && echo "killed" || (echo "fail"; exit 1); +echo -ne " * Kill backup loop.........."; +rm $ROOT/backuploop 2>/dev/null && echo "killed" || (echo "fail"; exit 1);