]> WPIA git - infra.git/blobdiff - modules/hop/templates/commands.epp
upd: rename certificate renewal commands + add force mode
[infra.git] / modules / hop / templates / commands.epp
index cb1720f8566d1fc1714482db8fb8b13b0e7d1872..8cedfd94055612c4bb4c0c054b0308ee502919d6 100755 (executable)
@@ -1,11 +1,11 @@
 #!/bin/bash
 
 com="$SSH_ORIGINAL_COMMAND"
-if [[ "$com" == "ask quiz certs" ]]; then
-    exec ssh <%=$administrativeUser%>@10.0.3.1 "ask quiz certs"
-elif [[ "$com" == "reload quiz certs" ]]; then
+if [[ "$com" == "update certs" || "$com" == "force update certs" ]]; then
+    exec ssh <%=$administrativeUser%>@10.0.3.1 "$com"
+elif [[ "$com" == "reload certs" ]]; then
     # requires sudo --> requires terminal
-    exec ssh -t <%=$administrativeUser%>@10.0.3.1 "reload quiz certs"
+    exec ssh -t <%=$administrativeUser%>@10.0.3.1 "reload certs"
 elif [[ "$com" == "update crls" ]]; then
     exec ssh  <%=$administrativeUser%>@10.0.3.1 "update crls"
 else