This repository has been archived on 2022-01-30. You can view files and clone it, but cannot push or open issues or pull requests.
synapse/manage.sh

47 lines
854 B
Bash
Raw Normal View History

2021-07-31 14:39:23 -05:00
#!/bin/sh
case "$1" in
echo)
shift
echo $@
;;
borgmatic)
shift
case "$1" in
sh)
2021-07-31 17:25:17 -05:00
docker-compose exec borgmatic sh
2021-07-31 14:39:23 -05:00
;;
*)
echo "You have to choose a subcommand too, dummy."
;;
esac
;;
logs)
shift
2021-07-31 17:25:17 -05:00
docker-compose logs -f --tail=0
2021-07-31 14:39:23 -05:00
;;
postgres)
shift
case "$1" in
bash)
2021-07-31 17:25:17 -05:00
docker-compose exec postgres bash
2021-07-31 14:39:23 -05:00
;;
*)
echo "You have to choose a subcommand too, dummy."
;;
esac
;;
psql)
shift
2021-07-31 17:25:17 -05:00
docker-compose exec postgres psql -U synapse -d synapsedb $@
2021-07-31 14:39:23 -05:00
;;
*)
echo "You have to choose a command, dummy."
;;
esac