mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-07-24 14:52:53 +02:00
Sync-in: use heredoc for credentials file, matching repo convention
This commit is contained in:
@@ -53,12 +53,12 @@ msg_info "Creating Admin User"
|
||||
cd /opt/sync-in
|
||||
ADMIN_PASS=$(openssl rand -base64 18)
|
||||
$STD npx sync-in-server create-user --role admin --login admin --password "${ADMIN_PASS}"
|
||||
{
|
||||
echo "Sync-in Credentials"
|
||||
echo "===================="
|
||||
echo "Login: admin"
|
||||
echo "Password: ${ADMIN_PASS}"
|
||||
} >~/sync-in.creds
|
||||
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