aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-08-29 18:15:01 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-08-29 18:15:01 -0300
commit601e055e2f718db7fef7deb3c9f5341861514ad5 (patch)
tree880af456d9e8392b382269d54f2621f383e515af /share
parent09e3e76ab4848656b1e96183ca5441eeb0528684 (diff)
downloadhydra-601e055e2f718db7fef7deb3c9f5341861514ad5.tar.gz
hydra-601e055e2f718db7fef7deb3c9f5341861514ad5.tar.bz2
Minor fixes at import-certs
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/import-certs6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/hydra/import-certs b/share/hydra/import-certs
index 8f77594..9d3cc88 100755
--- a/share/hydra/import-certs
+++ b/share/hydra/import-certs
@@ -80,9 +80,9 @@ EOF
# Post-processing
$HYDRA_CONNECT $hostname <<EOF
# Symlinks for the main cert and key
- if [ "$prefix" == "$domain" ] && [ -e "" ]; then
- cd /etc/ssl/certs && sudo ln -s $cert cert.crt
- cd /etc/ssl/private && sudo ln -s $priv cert.pem
+ if [ "$prefix" = "$domain" ] && [ ! -e "/etc/ssl/certs/cert.crt" ]; then
+ cd /etc/ssl/certs && sudo ln -sf $cert cert.crt
+ cd /etc/ssl/private && sudo ln -sf $priv cert.pem
fi
# Concatenated cert