Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
6652138d
Commit
6652138d
authored
Jun 14, 2022
by
William Sellitti
Browse files
fixed per shellcheck's preference for `-n` instead of `! -z`
parent
c8d0d475
Changes
1
Show whitespace changes
Inline
Side-by-side
deploy/proxmoxve.sh
View file @
6652138d
...
@@ -32,16 +32,16 @@ proxmoxve_deploy(){
...
@@ -32,16 +32,16 @@ proxmoxve_deploy(){
# "Sane" defaults.
# "Sane" defaults.
_target_hostname
=
"
$_cdomain
"
_target_hostname
=
"
$_cdomain
"
if
[
!
-z
"
$DEPLOY_PROXMOXVE_SERVER
"
]
;
then
if
[
-n
"
$DEPLOY_PROXMOXVE_SERVER
"
]
;
then
_target_hostname
=
"
$DEPLOY_PROXMOXVE_SERVER
"
_target_hostname
=
"
$DEPLOY_PROXMOXVE_SERVER
"
fi
fi
_target_port
=
"8006"
_target_port
=
"8006"
if
[
!
-z
"
$DEPLOY_PROXMOXVE_SERVER_PORT
"
]
;
then
if
[
-n
"
$DEPLOY_PROXMOXVE_SERVER_PORT
"
]
;
then
_target_port
=
"
$DEPLOY_PROXMOXVE_SERVER_PORT
"
_target_port
=
"
$DEPLOY_PROXMOXVE_SERVER_PORT
"
fi
fi
if
[
!
-z
"
$DEPLOY_PROXMOXVE_NODE_NAME
"
]
;
then
if
[
-n
"
$DEPLOY_PROXMOXVE_NODE_NAME
"
]
;
then
_node_name
=
"
$DEPLOY_PROXMOXVE_NODE_NAME
"
_node_name
=
"
$DEPLOY_PROXMOXVE_NODE_NAME
"
else
else
_node_name
=
$(
echo
"
$_target_hostname
"
|cut
-d
.
-f1
)
_node_name
=
$(
echo
"
$_target_hostname
"
|cut
-d
.
-f1
)
...
@@ -52,17 +52,17 @@ proxmoxve_deploy(){
...
@@ -52,17 +52,17 @@ proxmoxve_deploy(){
# More "sane" defaults.
# More "sane" defaults.
_proxmoxve_user
=
"root"
_proxmoxve_user
=
"root"
if
[
!
-z
"
$_proxmoxve_user
"
]
;
then
if
[
-n
"
$_proxmoxve_user
"
]
;
then
_proxmoxve_user
=
"
$DEPLOY_PROXMOXVE_USER
"
_proxmoxve_user
=
"
$DEPLOY_PROXMOXVE_USER
"
fi
fi
_proxmoxve_user_realm
=
"pam"
_proxmoxve_user_realm
=
"pam"
if
[
!
-z
"
$DEPLOY_PROXMOXVE_USER_REALM
"
]
;
then
if
[
-n
"
$DEPLOY_PROXMOXVE_USER_REALM
"
]
;
then
_proxmoxve_user_realm
=
"
$DEPLOY_PROXMOXVE_USER_REALM
"
_proxmoxve_user_realm
=
"
$DEPLOY_PROXMOXVE_USER_REALM
"
fi
fi
_proxmoxve_api_token_name
=
"acme"
_proxmoxve_api_token_name
=
"acme"
if
[
!
-z
"
$DEPLOY_PROXMOXVE_API_TOKEN_NAME
"
]
;
then
if
[
-n
"
$DEPLOY_PROXMOXVE_API_TOKEN_NAME
"
]
;
then
_proxmoxve_api_token_name
=
"
$DEPLOY_PROXMOXVE_API_TOKEN_NAME
"
_proxmoxve_api_token_name
=
"
$DEPLOY_PROXMOXVE_API_TOKEN_NAME
"
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment