Closed dirkmueller closed 2 months ago
Hello @dirkmueller, Thanks a lot for your feedback, we really appreciate the time you've taken to help us.
Regarding curl
instead of wget
, we chose to use curl -LO
to make curl follow HTTPS redirects, which is crucial when the target file has been moved to a different location. This is especially important when performing operations like SHA checksum verification, as the correct file must be retrieved for accurate validation. (ref. PB-33239)
With the repo setup script, we chose to use command -v
over test -e
for checking command availability because command -v
is more versatile in verifying all executable types the shell can run, including built-ins, functions, and aliases—not merely executables in the PATH. This ensures a thorough check for command presence. Additionally, using command -v
avoids issues like ShellCheck's SC2065 warning, which flags the misuse of redirections in conditional tests where a command check is intended. (ref PB-33238)
Thanks again.
Best regards, Antony
both works for me. I've validated that this works now. thank you for the quick fix!
Following the instructions at https://passbolt.com/docs/hosting/install/ce/sles/ I have the following suggestions:
avoid use of wget
wget is not a standard installed tool in the minimal system. you can achieve pretty much the same outcome by using
curl -O
instead, sothen, the repo-setup script is using which(1) to determine whether zypper or other tools are available. which is sort of deprecated and might not be installed in really very minimal systems. There is an equivalent bash builtin, which would work the same way: