]> WPIA git - infra.git/blobdiff - modules/hop/templates/commands.epp
upd: remove unneccesary quotes in [[
[infra.git] / modules / hop / templates / commands.epp
index 8cedfd94055612c4bb4c0c054b0308ee502919d6..7c91e146a67c644d541ac7e57e367f44f5d10cc0 100755 (executable)
@@ -1,12 +1,12 @@
 #!/bin/bash
 
 com="$SSH_ORIGINAL_COMMAND"
-if [[ "$com" == "update certs" || "$com" == "force update certs" ]]; then
+if [[ $com == "update certs" || $com == "force update certs" ]]; then
     exec ssh <%=$administrativeUser%>@10.0.3.1 "$com"
-elif [[ "$com" == "reload certs" ]]; then
+elif [[ $com == "reload certs" ]]; then
     # requires sudo --> requires terminal
     exec ssh -t <%=$administrativeUser%>@10.0.3.1 "reload certs"
-elif [[ "$com" == "update crls" ]]; then
+elif [[ $com == "update crls" ]]; then
     exec ssh  <%=$administrativeUser%>@10.0.3.1 "update crls"
 else
     echo $com