Docker - add script to set admin rights
This commit is contained in:
parent
df85f5c439
commit
1f3fe5d07f
3
Makefile
3
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
|
||||
|
||||
|
7
docker/set-admin.sh
Executable file
7
docker/set-admin.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
cd /usr/src/app
|
||||
|
||||
source .env.docker
|
||||
|
||||
flask set-admin $1
|
Loading…
Reference in New Issue
Block a user