From eceb52a67a2948e2c7c05ee4eeaf597c3228ec3a Mon Sep 17 00:00:00 2001 From: Jacob <630000+stickpin@users.noreply.github.com> Date: Tue, 29 Oct 2024 14:45:40 +0100 Subject: [PATCH] Change update script (#4005) Change update script to make sure that it overwrites all the local changes in the local browserless git folder --- ct/changedetection.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ct/changedetection.sh b/ct/changedetection.sh index 85067c6b..b7881b08 100644 --- a/ct/changedetection.sh +++ b/ct/changedetection.sh @@ -63,7 +63,8 @@ fi pip3 install changedetection.io --upgrade &>/dev/null pip3 install playwright --upgrade &>/dev/null if [[ -f /etc/systemd/system/browserless.service ]]; then - git -C /opt/browserless/ pull &>/dev/null + git -C /opt/browserless/ fetch --all &>/dev/null + git -C /opt/browserless/ reset --hard origin/main &>/dev/null npm update --prefix /opt/browserless &>/dev/null npm run build --prefix /opt/browserless &>/dev/null npm run build:function --prefix /opt/browserless &>/dev/null