Update production upgrade script to update main repo, announce hostname

This commit is contained in:
wiz 2020-06-21 01:53:24 +09:00
parent 0609ce91d0
commit c9cc660e54
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

@ -6,6 +6,10 @@ touch $HOME/lock
echo 'rebuilding mempool sites'|wall
cd "$HOME/mempool"
git pull origin master
cd "$HOME/"
for site in mainnet liquid testnet
do
cd "$HOME/${site}"
@ -27,6 +31,7 @@ done
ps uaxw|grep 'node dist/index'|grep -v grep|awk '{print $2}'|xargs -n 1 kill
keybase chat send --channel dev mempool "All mempool sites updated to ${hash}"
hostname=$(hostname)
keybase chat send --channel dev mempool "${hostname} updated to ${hash}"
rm "$HOME/lock"