|
|
|
|
@ -68,10 +68,6 @@ fi
|
|
|
|
|
# Ensure pidfile is removed before start |
|
|
|
|
rm -f "$PIDFILE" |
|
|
|
|
|
|
|
|
|
# Fix git remote redirect (http -> https) |
|
|
|
|
GIT_URL=$(git remote get-url origin 2>/dev/null) |
|
|
|
|
case "$GIT_URL" in http://*) echo "Fixing git remote: $GIT_URL -> https://${GIT_URL#http://}" && git remote set-url origin "https://${GIT_URL#http://}" ;; esac |
|
|
|
|
|
|
|
|
|
# Git pull |
|
|
|
|
echo "Pulling latest changes..." |
|
|
|
|
if ! git pull; then |
|
|
|
|
|