sphinxrelay: set git identity with the correct user (#1812)

This commit is contained in:
openoms
2020-11-27 15:58:25 +00:00
committed by rootzoll
parent c1bc338b8f
commit 3dc3e894e3

View File

@@ -417,8 +417,8 @@ if [ "$1" = "update" ]; then
# https://github.com/stakwork/sphinx-relay/blob/master/docs/raspiblitz_deployment.md#fast-method # https://github.com/stakwork/sphinx-relay/blob/master/docs/raspiblitz_deployment.md#fast-method
echo "# Stashing the config" echo "# Stashing the config"
if [ $(sudo -u sphinxrelay git stash|grep -c "Please tell me who you are") -gt 0 ]; then if [ $(sudo -u sphinxrelay git stash|grep -c "Please tell me who you are") -gt 0 ]; then
git config user.email "you@example.com" sudo -u sphinxrelay git config user.email "you@example.com"
git config user.name "Your Name" sudo -u sphinxrelay git config user.name "Your Name"
fi fi
sudo -u sphinxrelay git stash sudo -u sphinxrelay git stash
echo "# Pulling latest changes..." echo "# Pulling latest changes..."