sutty/ota.sh

11 lines
171 B
Bash
Raw Permalink Normal View History

2021-06-16 15:08:21 +00:00
#!/bin/sh
set -e
cd /srv/http
for patch in /tmp/patches-${1}/*.patch; do
su -c "patch -Np 1 -i ${patch}" app && rm $patch
done
cat tmp/puma.pid | xargs -r kill -USR2