From 1f3fe5d07f193745e82607b64f9d55665a7d730a Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 13 Feb 2022 09:45:51 +0100 Subject: [PATCH] Docker - add script to set admin rights --- Makefile | 3 +++ docker/set-admin.sh | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100755 docker/set-admin.sh diff --git a/Makefile b/Makefile index 8634b4a5..ad1b713d 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,9 @@ docker-serve-client: docker-compose -f docker-compose-dev.yml up -d fittrackee_client docker-compose -f docker-compose-dev.yml exec fittrackee_client yarn serve +docker-set-admin: + docker-compose -f docker-compose-dev.yml exec fittrackee docker/set-admin.sh $(USERNAME) + docker-shell: docker-compose -f docker-compose-dev.yml exec fittrackee docker/shell.sh diff --git a/docker/set-admin.sh b/docker/set-admin.sh new file mode 100755 index 00000000..a9b9992e --- /dev/null +++ b/docker/set-admin.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -e +cd /usr/src/app + +source .env.docker + +flask set-admin $1