Skip to content

Commit 36630cd

Browse files
[openvpn] Fix shell compatibility and ensure QA compliance #572
- Updated shebang to /bin/bash to match script usage (function, [[ ]]) - Applied formatting fixes to satisfy QA checks - Ensured script passes shell validation Fixes #572
1 parent e6735a6 commit 36630cd

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

images/common/utils.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
function init_conf {
44
default_psql_vars
@@ -236,8 +236,7 @@ function openvpn_config_checksum {
236236
}
237237

238238
function openvpn_config_download {
239-
curl --silent --retry 10 --retry-delay 5 --retry-max-time 300\
240-
--insecure --output vpn.tar.gz \
239+
curl --silent --retry 10 --retry-delay 5 --retry-max-time 300 --insecure --output vpn.tar.gz \
241240
${API_INTERNAL}/controller/vpn/download-config/$UUID/?key=$KEY
242241
curl --silent --insecure --output checksum \
243242
${API_INTERNAL}/controller/vpn/checksum/$UUID/?key=$KEY
@@ -255,7 +254,7 @@ function openvpn_config_download {
255254

256255
function crl_download {
257256
curl --silent --insecure --output revoked.crl \
258-
${DASHBOARD_INTERNAL}/admin/pki/ca/x509/ca/${CA_UUID}.crl
257+
${DASHBOARD_INTERNAL}/admin/pki/ca/x509/ca/${CA_UUID}.crl
259258
}
260259

261260
function init_send_network_topology {

0 commit comments

Comments
 (0)