Skip to content

Commit b3a9f5b

Browse files
committed
pm2 installation included
1 parent 2359f23 commit b3a9f5b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

1_prerequisite.bash

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ if [ $? -eq 0 ]
197197
then
198198
echo "plugin_db creation: passed"
199199
else
200-
echo "plugin_de creation: failed"
200+
echo "plugin_db creation: failed"
201201
exit 1
202202
fi
203203
sudo -u postgres psql -c "alter user postgres PASSWORD 'postgres'"
@@ -210,6 +210,17 @@ else
210210
fi
211211
echo "<<<<<<<<<------------------Creating database - STEP 9/9 Completed--------------------->>>>>>>>>"
212212
#########################################
213+
#########################################npm installation
214+
echo "<<<<<<<<<------------------pm2 installation Started--------------------->>>>>>>>>"
215+
sudo npm install -g pm2
216+
if [ $? -eq 0 ]
217+
then
218+
echo "pm2 installation: passed"
219+
else
220+
echo "pm2 installation: failed"
221+
exit 1
222+
fi
223+
echo "<<<<<<<<<------------------pm2 installation Completed--------------------->>>>>>>>>"
213224
#########################################Plugin Node kickstart
214225
#cd Plugin
215226
echo `date` >>time.txt

0 commit comments

Comments
 (0)