mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-07-10 00:14:38 +00:00
fix: Setup script fmt.Sprintf argument mismatch causing bash syntax error
Fixed a fmt.Sprintf argument alignment issue in the PVE setup script that caused a bash syntax error at the end of script execution. The error manifested as "syntax error near unexpected token EXTRA" followed by the serverHost URL. Root cause: 23 arguments were provided for 22 %s placeholders. An extra tokenName at position 15 pushed all subsequent arguments off by one, leaving the final serverHost with no placeholder to fill. Fix: Removed duplicate tokenName at position 15 and ensured serverHost is correctly positioned at position 22 for the "Host URL" placeholder.
This commit is contained in:
parent
6b206f773a
commit
966b3a7ebe
1 changed files with 1 additions and 1 deletions
|
|
@ -3884,7 +3884,7 @@ if [ "$AUTO_REG_SUCCESS" != true ]; then
|
|||
fi
|
||||
`, serverName, time.Now().Format("2006-01-02 15:04:05"), pulseIP,
|
||||
tokenName, tokenName, tokenName, tokenName, tokenName, tokenName,
|
||||
authToken, pulseURL, serverHost, tokenName, tokenName, tokenName, storagePerms, pulseURL, sshPublicKey, pulseURL, authToken, pulseURL, tokenName, serverHost)
|
||||
authToken, pulseURL, serverHost, tokenName, tokenName, storagePerms, pulseURL, sshPublicKey, pulseURL, authToken, pulseURL, tokenName, serverHost)
|
||||
|
||||
} else { // PBS
|
||||
script = fmt.Sprintf(`#!/bin/bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue