Docker - add script to set admin rights

This commit is contained in:
Sam 2022-02-13 09:45:51 +01:00
parent df85f5c439
commit 1f3fe5d07f
2 changed files with 10 additions and 0 deletions

View File

@ -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

7
docker/set-admin.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
cd /usr/src/app
source .env.docker
flask set-admin $1