make sure postgres is enabled and running. update npm
This commit is contained in:
parent
4b84062d62
commit
bca85933f7
|
@ -3,6 +3,7 @@ FROM node:12-alpine AS builder
|
|||
WORKDIR /home/node/app
|
||||
|
||||
COPY ./web/package.json .
|
||||
RUN npm install -g npm
|
||||
RUN npm install
|
||||
|
||||
COPY ./web .
|
||||
|
|
|
@ -216,6 +216,7 @@ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
|||
sudo apt update
|
||||
sudo apt install -y gcc g++ make
|
||||
sudo apt install -y nodejs
|
||||
sudo npm install -g npm
|
||||
|
||||
print_green 'Installing MongoDB'
|
||||
|
||||
|
@ -251,6 +252,10 @@ echo "$postgresql_repo" | sudo tee /etc/apt/sources.list.d/pgdg.list
|
|||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
||||
sudo apt update
|
||||
sudo apt install -y postgresql-13
|
||||
sleep 2
|
||||
sudo systemctl enable postgresql
|
||||
sudo systemctl restart postgresql
|
||||
sleep 5
|
||||
|
||||
print_green 'Creating database for the rmm'
|
||||
|
||||
|
|
|
@ -133,6 +133,7 @@ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
|||
sudo apt update
|
||||
sudo apt install -y gcc g++ make
|
||||
sudo apt install -y nodejs
|
||||
sudo npm install -g npm
|
||||
|
||||
print_green 'Restoring Nginx'
|
||||
|
||||
|
@ -205,9 +206,8 @@ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-
|
|||
sudo apt update
|
||||
sudo apt install -y postgresql-13
|
||||
sleep 2
|
||||
|
||||
|
||||
|
||||
sudo systemctl enable postgresql
|
||||
sudo systemctl restart postgresql
|
||||
|
||||
print_green 'Restoring MongoDB'
|
||||
|
||||
|
|
|
@ -172,6 +172,10 @@ printf >&2 "${GREEN}Stopping ${i} service...${NC}\n"
|
|||
sudo systemctl stop ${i}
|
||||
done
|
||||
|
||||
printf >&2 "${GREEN}Restarting postgresql database${NC}\n"
|
||||
sudo systemctl restart postgresql
|
||||
sleep 5
|
||||
|
||||
rm -f /rmm/api/tacticalrmm/app.ini
|
||||
|
||||
numprocs=$(nproc)
|
||||
|
@ -255,6 +259,8 @@ if ! [[ $HAS_NATS220 ]]; then
|
|||
rm -rf ${nats_tmp}
|
||||
fi
|
||||
|
||||
sudo npm install -g npm
|
||||
|
||||
cd /rmm
|
||||
git config user.email "admin@example.com"
|
||||
git config user.name "Bob"
|
||||
|
|
Loading…
Reference in New Issue