forked from p15670423/monkey
Node updates and pip installation added
This commit is contained in:
parent
d5bfaa9ad0
commit
eff2c0d244
|
@ -62,6 +62,12 @@ if [[ ${python_version} == *"command not found"* ]] || [[ ${python_version} != *
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
log_message "Updating package list"
|
||||||
|
sudo apt-get update
|
||||||
|
|
||||||
|
log_message "Installing pip"
|
||||||
|
sudo apt-get install python-pip
|
||||||
|
|
||||||
log_message "Installing island requirements"
|
log_message "Installing island requirements"
|
||||||
requirements="$ISLAND_PATH/requirements.txt"
|
requirements="$ISLAND_PATH/requirements.txt"
|
||||||
python -m pip install --user -r ${requirements} || handle_error
|
python -m pip install --user -r ${requirements} || handle_error
|
||||||
|
@ -122,6 +128,11 @@ ${ISLAND_PATH}/linux/create_certificate.sh || handle_error
|
||||||
log_message "Installing npm"
|
log_message "Installing npm"
|
||||||
sudo apt-get install npm
|
sudo apt-get install npm
|
||||||
|
|
||||||
|
# Update node
|
||||||
|
log_message "Updating node"
|
||||||
|
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
|
||||||
|
sudo apt-get install -y nodejs
|
||||||
|
|
||||||
log_message "Generating front end"
|
log_message "Generating front end"
|
||||||
cd "$ISLAND_PATH/cc/ui" || handle_error
|
cd "$ISLAND_PATH/cc/ui" || handle_error
|
||||||
npm update
|
npm update
|
||||||
|
|
Loading…
Reference in New Issue