analytics/rel/overlays/init-admin.sh
Jake Howard ff9e4b444b
Create the admin user as a separate command (#233)
This means the migrations can always be run on startup, meaning the database won't get out of sync with the running application. It also means users who don't set the credential variables in their compose files don't keep creating admin users every time the application starts.
2020-07-28 14:11:02 +03:00

7 lines
117 B
Bash
Executable File

#!/bin/sh
# Create an admin user
BIN_DIR=`dirname "$0"`
${BIN_DIR}/bin/plausible eval Plausible.Release.init_admin