mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-07-24 14:52:53 +02:00
Sync-in: create admin user with admin role instead of default user (#15983)
* Sync-in: create admin user with admin role instead of default user * Sync-in: use heredoc for credentials file, matching repo convention
This commit is contained in:
committed by
GitHub
parent
7c874d33d1
commit
3e0c0d7955
@@ -51,7 +51,14 @@ msg_ok "Ran Database Migrations"
|
||||
|
||||
msg_info "Creating Admin User"
|
||||
cd /opt/sync-in
|
||||
$STD npx sync-in-server create-user
|
||||
ADMIN_PASS=$(openssl rand -base64 18)
|
||||
$STD npx sync-in-server create-user --role admin --login admin --password "${ADMIN_PASS}"
|
||||
cat <<EOF >~/sync-in.creds
|
||||
Sync-in Credentials
|
||||
====================
|
||||
Login: admin
|
||||
Password: ${ADMIN_PASS}
|
||||
EOF
|
||||
msg_ok "Created Admin User"
|
||||
|
||||
VERSION=$(node -pe "require('/opt/sync-in/node_modules/@sync-in/server/package.json').version" 2>/dev/null || echo "")
|
||||
|
||||
Reference in New Issue
Block a user