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 GitHub
parent e6fbb752dc
commit 0a0d20cfa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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