2
0
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:
Matthias Mair
2024-07-08 00:13:04 +02:00
committed by GitHub
parent 48fb087a96
commit 473268a10f
2 changed files with 7 additions and 2 deletions

View File

@ -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"