simple npm check
This commit is contained in:
parent
b826e7a0a0
commit
e6d9e96026
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue