chain updating website commands, this probably didn't work before

This commit is contained in:
Ruben 2025-10-14 08:18:58 -05:00
commit dbf2abca6b
Signed by: sneexy
GPG key ID: 8ECFA045E63BC583

View file

@ -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