mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 12:32:30 +01:00
18 lines
329 B
Plaintext
18 lines
329 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
set -e
|
||
|
oldrev=$1
|
||
|
newrev=$2
|
||
|
|
||
|
run() {
|
||
|
[ -x $1 ] && $1 $oldrev $newrev
|
||
|
}
|
||
|
|
||
|
echo files changed: $(git diff $oldrev $newrev --diff-filter=ACDMR --name-only | wc -l)
|
||
|
|
||
|
umask 002
|
||
|
|
||
|
git submodule sync && git submodule update --init --recursive
|
||
|
|
||
|
run deploy/before_restart
|
||
|
run deploy/restart && run deploy/after_restart
|