Skip to content

Commit b5331be

Browse files
authored
Update setup.sh
1 parent 9978f31 commit b5331be

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

deploy/setup.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,22 @@ cd ../
77

88
CONFIG_MASTER_PASSWORD="admin"
99

10+
echo "Do upgrade packages? [RECOMMENDED] (y,n)"
11+
read answerDemp
12+
13+
if [ "$answerDemp" == "y" ]; then
14+
apt update -y && apt upgrade -y
15+
fi
16+
1017
echo "Do you want to install recommended dependencies? (y,n)"
1118
read answerDemp
1219

1320
if [ "$answerDemp" == "y" ]; then
1421
echo "Installing dependencies (Node js, Postgresql, Nginx, ffmpeg)"
15-
apt install nodejs -y && apt install postgresql-10 -y && apt install ufw -y && apt install goaccess -y && apt install -y nginx && apt install -y ffmpeg && apt install -y npm
22+
apt install openssl -y && apt install ufw -y && apt install postgresql -y && apt install ufw -y && apt install goaccess -y && apt install -y nginx && apt install -y ffmpeg
23+
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
24+
apt update -y
25+
apt install -y nodejs && apt install npm -y
1626
echo "[OK] Dependencies installed!"
1727
echo ""
1828

0 commit comments

Comments
 (0)