]> WPIA git - infra.git/blob - modules/hop/templates/commands.epp
initial import
[infra.git] / modules / hop / templates / commands.epp
1 #!/bin/bash
2
3 com="$SSH_ORIGINAL_COMMAND"
4 if [[ "$com" == "ask quiz certs" ]]; then
5     exec ssh <%=$administrativeUser%>@10.0.3.1 "ask quiz certs"
6 elif [[ "$com" == "reload quiz certs" ]]; then
7     # requires sudo --> requires terminal
8     exec ssh -t <%=$administrativeUser%>@10.0.3.1 "reload quiz certs"
9 elif [[ "$com" == "update crls" ]]; then
10     exec ssh  <%=$administrativeUser%>@10.0.3.1 "update crls"
11 else
12     echo $com
13 fi
14