47 lines
854 B
Bash
Executable File
47 lines
854 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case "$1" in
|
|
echo)
|
|
shift
|
|
echo $@
|
|
;;
|
|
|
|
borgmatic)
|
|
shift
|
|
case "$1" in
|
|
sh)
|
|
docker-compose exec borgmatic sh
|
|
;;
|
|
*)
|
|
echo "You have to choose a subcommand too, dummy."
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
logs)
|
|
shift
|
|
docker-compose logs -f --tail=0
|
|
;;
|
|
|
|
postgres)
|
|
shift
|
|
case "$1" in
|
|
bash)
|
|
docker-compose exec postgres bash
|
|
;;
|
|
*)
|
|
echo "You have to choose a subcommand too, dummy."
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
psql)
|
|
shift
|
|
docker-compose exec postgres psql -U synapse -d synapsedb $@
|
|
;;
|
|
|
|
*)
|
|
echo "You have to choose a command, dummy."
|
|
;;
|
|
esac
|