diff --git a/helperbot b/helperbot index 8f2fbe2..90afd3c 100755 --- a/helperbot +++ b/helperbot @@ -243,11 +243,16 @@ function system_upgrade { echo "${red}Error(site)${normal}: npm is not installed. Please install it and try again. Beep!" exit 1 fi - cd /var/www/site && /var/www/site/gen.sh + cd /var/www/site && git pull && \ + npm install && \ + rm -rf ./_site && \ + npx @11ty/eleventy && \ + npx -y pagefind --site _site # pds-dash echo "${blue}Updating pds-dash...${normal}" - git pull /var/www/pds-dash - cd /var/www/pds-dash && deno install && deno task build + cd /var/www/pds-dash && git pull && \ + deno install && \ + deno task build # done echo "${green}System upgrade finished! beep!~${normal}" fi