diff --git a/docker_mrdoc.sh b/docker_mrdoc.sh index 76af245..fde78b8 100644 --- a/docker_mrdoc.sh +++ b/docker_mrdoc.sh @@ -1,7 +1,26 @@ #!/bin/sh -python /app/MrDoc/manage.py makemigrations && python /app/MrDoc/manage.py migrate && echo y |python /app/MrDoc/manage.py rebuild_index MM=`pwgen -1s` CREATE_USER=1 +CONFIG_FILE='/app/MrDoc/config/config.ini' + +if [ ! -f $CONFIG_FILE ]; then +echo "#####Generating configuration file#####" +cat>"${CONFIG_FILE}"<