mirror of
https://github.com/plausible/analytics.git
synced 2024-12-29 12:33:22 +03:00
ff9e4b444b
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.
7 lines
117 B
Bash
Executable File
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
|