2022-12-26 18:17:27 -08:00

18 lines
548 B
Bash

#!/bin/bash
read -r -p "Do you want to update the project? [y/n] " input
case $input in
[yY])
cd ..
git pull
echo "Restarting the service - systemctl restart web_app.service"
systemctl restart web_app.service
echo "Restarting the service - systemctl restart web_api.service"
systemctl restart web_api.service
echo "Successfully restarted all services!"
;;
[nN]| *)
echo "Exiting..."
exit 1
;;
esac