From c9cc660e54d147f185c99ae92367ade375c34ce3 Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 21 Jun 2020 01:53:24 +0900 Subject: [PATCH] Update production upgrade script to update main repo, announce hostname --- production/mempool-upgrade-all | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/production/mempool-upgrade-all b/production/mempool-upgrade-all index 8c6a01327..f7a36d90c 100755 --- a/production/mempool-upgrade-all +++ b/production/mempool-upgrade-all @@ -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"