Skip to content

Commit 41ee65a

Browse files
committed
install ntp, change alt port from 8080 to 8090
1 parent e8b0584 commit 41ee65a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ curl -L http://adafruit-download.s3.amazonaws.com/webide-0.3.8.tar.gz | tar xzf
7070
echo "**** Installing required libraries ****"
7171
echo "**** (redis-server git restartd libcap2-bin avahi-daemon i2c-tools python-smbus) ****"
7272
apt-get update
73-
apt-get install nodejs nodejs-legacy redis-server git restartd libcap2-bin avahi-daemon i2c-tools python-smbus -y
73+
apt-get install nodejs nodejs-legacy redis-server git restartd libcap2-bin avahi-daemon i2c-tools python-smbus ntp -y
7474

7575
echo "**** Create webide user and group ****"
7676
groupadd webide || true
@@ -124,11 +124,11 @@ echo "Attempting to force reload date and time from ntp server"
124124
PORT_USED=""
125125
if netstat -lnt | awk '$6 == "LISTEN" && $4 ~ ".80"' | grep -q "LISTEN"
126126
then
127-
redis-cli HMSET server port 8080
128-
PORT_USED=":8080"
129-
echo "**** WARNING: PORT 80 IN USE. FALLING BACK TO 8080. ****"
127+
redis-cli HMSET server port 8090
128+
PORT_USED=":8090"
129+
echo "**** WARNING: PORT 80 IN USE. FALLING BACK TO 8090. ****"
130130
echo "**** TO CHOOSE A DIFFERENT PORT USE THE FOLLOWING COMMAND: ****"
131-
echo "**** redis-cli HMSET server port 8080 ****"
131+
echo "**** redis-cli HMSET server port 8090 ****"
132132
echo "**** AND RESTART THE SERVER ****"
133133
fi
134134

0 commit comments

Comments
 (0)