X-Git-Url: https://code.wpia.club/?p=infra.git;a=blobdiff_plain;f=modules%2Fhop%2Ftemplates%2Fcommands.epp;h=8cedfd94055612c4bb4c0c054b0308ee502919d6;hp=cb1720f8566d1fc1714482db8fb8b13b0e7d1872;hb=09f6b5ae971c8941e54e9f984ac2a5344a99a1e3;hpb=b71e7d24baef1c489af6867dd877975349c441e0 diff --git a/modules/hop/templates/commands.epp b/modules/hop/templates/commands.epp index cb1720f..8cedfd9 100755 --- a/modules/hop/templates/commands.epp +++ b/modules/hop/templates/commands.epp @@ -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