Created
January 21, 2020 22:07
-
-
Save magicalyak/88682c55c9747a77c17ec97becb8bd65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! "$(docker ps -q -f name=controller-postgres)" ]; then | |
if [ "$(docker ps -aq -f status=exited -f name=controller-postgres)" ]; then | |
docker start controller-postgres | |
docker start controller-smtp | |
fi | |
fi | |
echo "Sleeping 20 seconds before reboot" | |
sleep 20 | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment