Add command to control synapse processes only in manage.sh

This commit is contained in:
BBaoVanC 2021-09-18 16:20:09 -05:00
parent 036f8697ab
commit b5adfef2df

View File

@ -40,6 +40,25 @@ case "$1" in
docker-compose exec postgres psql -U synapse -d synapsedb $@
;;
synapses)
shift
case "$1" in
stop)
docker-compose stop synapse generic1 generic2 generic3 generic4 sender1 sender2 sender3 sender4
;;
start)
docker-compose start synapse generic1 generic2 generic3 generic4 sender1 sender2 sender3 sender4
;;
restart)
docker-compose restart synapse generic1 generic2 generic3 generic4 sender1 sender2 sender3 sender4
;;
*)
echo "You have to choose a subcommand too, dummy."
esac
;;
*)
echo "You have to choose a command, dummy."
;;