fix bash-non-compatible ';' after '&' bg

This commit is contained in:
xdrm-brackets 2018-05-14 12:11:49 +02:00
parent 76712a2378
commit 6b07e56996
2 changed files with 4 additions and 4 deletions

View File

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

View File

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