simple npm check

This commit is contained in:
Ruben 2025-10-13 11:00:21 -05:00
commit e6d9e96026
Signed by: sneexy
GPG key ID: 8ECFA045E63BC583

View file

@ -192,7 +192,7 @@ function update_docker_container {
fi
}
# deno install - installs/updates deno if required on the system, only used for neptunium currently
# deno install - just runs the demo script which will install/update deno, only used for neptunium currently for pds-dash
function deno_install {
if [ "$synth_current_system" = "neptunium" ]; then # only used on neptunium
echo "${blue}Running Deno installer.${normal}"
@ -239,7 +239,11 @@ function system_upgrade {
update_docker_container "/srv/docker/forgejo" "runner" "compose.yaml"
# sites/others
echo "${blue}Pulling main site...${normal}"
git pull /var/www/site # main site
if [ ! -x "$(command -v npm)" ]; then # npm is required - don't continue if it's not installed
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
# pds-dash
echo "${blue}Updating pds-dash...${normal}"
git pull /var/www/pds-dash