Files
pairgoth/docker/run.sh
Claude Brisson adca33ee26 Fix run script
2023-05-12 12:02:02 +02:00

11 lines
501 B
Bash
Executable File

#!/bin/bash
grep -r '^smtp\.host' webapp.properties | sed -r -e 's/smtp\.host/SMTP_HOST/' -e 's/ //g' > .env
grep -r '^smtp\.port' webapp.properties | sed -r -e 's/smtp\.port/SMTP_PORT/' -e 's/ //g' >> .env
grep -r '^smtp\.user' webapp.properties | sed -r -e 's/smtp\.user/SMTP_USER/' -e 's/ //g' >> .env
grep -r '^smtp\.password' webapp.properties | sed -r -e 's/smtp\.password/SMTP_PASSWORD/' -e 's/ //g' >> .env
mkdir -p data/jetty data/maven
APP_UID=$(id -u) APP_GID=$(id -g) docker compose up