fix bash-non-compatible ';' after '&' bg
This commit is contained in:
parent
76712a2378
commit
6b07e56996
|
@ -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);
|
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
|
# 3. touch the file the backup loop will use to run
|
||||||
echo -n " * Launch mariadb backup loop.............";
|
echo -n " * Mariadb backup loop.......";
|
||||||
|
|
||||||
backup(){
|
backup(){
|
||||||
if [ ! -d $ROOT/backups ]; then
|
if [ ! -d $ROOT/backups ]; then
|
||||||
|
@ -101,5 +101,5 @@ backup(){
|
||||||
done;
|
done;
|
||||||
}
|
}
|
||||||
|
|
||||||
backup &;
|
backup &
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
|
@ -28,5 +28,5 @@ else
|
||||||
fi;
|
fi;
|
||||||
rm $PID_FILE >/dev/null 2>&1;
|
rm $PID_FILE >/dev/null 2>&1;
|
||||||
|
|
||||||
echo -ne " * Kill backup loop............";
|
echo -ne " * Kill backup loop..........";
|
||||||
rm $ROOT/backuploop && echo "killed" || (echo "fail"; exit 1);
|
rm $ROOT/backuploop 2>/dev/null && echo "killed" || (echo "fail"; exit 1);
|
||||||
|
|
Loading…
Reference in New Issue