diff options
Diffstat (limited to 'roles/etherpad/templates')
| -rw-r--r-- | roles/etherpad/templates/update_etherpad | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/etherpad/templates/update_etherpad b/roles/etherpad/templates/update_etherpad new file mode 100644 index 0000000..9268d5a --- /dev/null +++ b/roles/etherpad/templates/update_etherpad @@ -0,0 +1,12 @@ +#!/bin/sh + +cd {{ src_dir }}/etherpad +prev_commit="$(git status --oneline -n 1 | cut -c1-7)" +git pull +new_commit="$(git status --oneline -n 1 | cut -c1-7)" +if [ "$prev_commit" != "$new_commit" ] +then + pnpm install + pnpm run build:ui + rc-service etherpad restart +fi |
