mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 10:05:39 +00:00
Add variable to stop creation of admin account (#7580)
This commit is contained in:
@ -246,7 +246,11 @@ function create_initscripts() {
|
||||
}
|
||||
|
||||
function create_admin() {
|
||||
# Create data for admin user
|
||||
# Create data for admin users - stop with setting SETUP_ADMIN_NOCREATION to true
|
||||
if [ "${SETUP_ADMIN_NOCREATION}" == "true" ]; then
|
||||
echo "# Admin creation is disabled - skipping"
|
||||
return
|
||||
fi
|
||||
|
||||
if test -f "${SETUP_ADMIN_PASSWORD_FILE}"; then
|
||||
echo "# Admin data already exists - skipping"
|
||||
|
Reference in New Issue
Block a user