Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
fix(docker): use INIT_ADMIN env var to control admin account creation
johavenc6bb3589e832
diff --git a/scripts/docker-sync-in-server.sh b/scripts/docker-sync-in-server.shindex eb3fd007..9ebc7d63 100755--- a/scripts/docker-sync-in-server.sh+++ b/scripts/docker-sync-in-server.sh@@ -9,7 +9,8 @@ if [ "${SKIP_INIT}" != "true" ]; thenecho "Error: unable to migrate database schema !" >&2exit 1fi- if [ "${SKIP_INIT_ADMIN}" != "true" ]; then+ # if INIT_ADMIN is defined (regardless of its value)+ if [ "${INIT_ADMIN+x}" ]; then# create an administrator account if one doesn’t already exist, using the supplied login and password when providedif ! node server/infrastructure/database/scripts/create-user.js --role admin --login "${INIT_ADMIN_LOGIN}" --password "${INIT_ADMIN_PASSWORD}"; thenecho "Error: unable to create administrator !" >&2