You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
291 B

#!/usr/bin/with-contenv bash
set -ex
[[ -n ${DB_HOST+x} ]] && \
export CMD_DB_URL="mysql://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}"
[[ -z ${CMD_CONFIG_FILE+x} ]] && \
export CMD_CONFIG_FILE="/config/config.json"
cd /opt/hedgedoc
exec s6-setuidgid abc node app.js