-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaliases
21 lines (18 loc) · 1.07 KB
/
aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export HOST='loki.websages.com'
alias go='ssh root@${HOST} "(cd /usr/share/pkild/;git pull)";
ssh root@${HOST} /etc/init.d/apache2 stop
ssh root@${HOST} "echo -e \"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\" >> /var/log/apache2/error.log";
ssh root@loki.websages.com /etc/init.d/apache2 start
./client/run_tests.pl'
# now you can just do the followingn for a CI test:
# git commit -a -m "${COMMIT_MSG}"; git push; go
# and tail -f /var/log/apache2/error.log in another window
alias redo='ssh root@${HOST} rm -fr /var/lib/pkild/certificate_authority/c\=US;
ssh root@${HOST} "(cd /usr/share/pkild/;git pull)";
ssh root@${HOST} /etc/init.d/apache2 stop
ssh root@${HOST} "echo -e \"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\" >> /var/log/apache2/error.log";
ssh root@loki.websages.com /etc/init.d/apache2 start
./client/run_tests.pl'
# now you can just do the followingn for a CI test:
# git commit -a -m "${COMMIT_MSG}"; git push; go
# and tail -f /var/log/apache2/error.log in another window