diff options
author | Karel Kočí <cynerd@email.cz> | 2020-11-24 12:38:49 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2020-11-24 12:38:49 +0100 |
commit | a52edff7ea8a8b831e88211063280b69153f42fe (patch) | |
tree | 10b5251313edffbfd3a4e21f77c3ee86167219aa /ssh-hook.sh | |
parent | 6ddc7ac584b1ba8aa790f998cf4ef40dfb80fc01 (diff) | |
download | laminar-cnf-a52edff7ea8a8b831e88211063280b69153f42fe.tar.gz laminar-cnf-a52edff7ea8a8b831e88211063280b69153f42fe.tar.bz2 laminar-cnf-a52edff7ea8a8b831e88211063280b69153f42fe.zip |
Rework how we trigger and define jobs
This simplifies jobs management and reduces duplicate input.
Diffstat (limited to 'ssh-hook.sh')
-rwxr-xr-x | ssh-hook.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ssh-hook.sh b/ssh-hook.sh index 2980c03..6b34258 100755 --- a/ssh-hook.sh +++ b/ssh-hook.sh @@ -8,6 +8,10 @@ if [ -z "$SSH_ORIGINAL_COMMAND" ]; then git fetch --prune --force git reset --hard origin/master + echo "Clean up and generate" + git clean -xdff + ./generate.sh + echo "Deploy ssh configuration" cp ssh/config ~/.ssh/config cp ssh/authorized_keys ~/.ssh/authorized_keys |