Remove sudo in manage.sh

This commit is contained in:
BBaoVanC 2021-07-31 17:25:17 -05:00
parent e18e73f84a
commit 0c474a7a8c

View File

@ -10,7 +10,7 @@ case "$1" in
shift shift
case "$1" in case "$1" in
sh) sh)
sudo docker-compose exec borgmatic sh docker-compose exec borgmatic sh
;; ;;
*) *)
echo "You have to choose a subcommand too, dummy." echo "You have to choose a subcommand too, dummy."
@ -20,14 +20,14 @@ case "$1" in
logs) logs)
shift shift
sudo docker-compose logs -f --tail=0 docker-compose logs -f --tail=0
;; ;;
postgres) postgres)
shift shift
case "$1" in case "$1" in
bash) bash)
sudo docker-compose exec postgres bash docker-compose exec postgres bash
;; ;;
*) *)
echo "You have to choose a subcommand too, dummy." echo "You have to choose a subcommand too, dummy."
@ -37,7 +37,7 @@ case "$1" in
psql) psql)
shift shift
sudo docker-compose exec postgres psql -U synapse -d synapsedb $@ docker-compose exec postgres psql -U synapse -d synapsedb $@
;; ;;
*) *)