Skip to content

Commit 3da8350

Browse files
authored
Update setup.sh
1 parent e71bfa8 commit 3da8350

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

IoTree_dir/setup.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if [ "$y" = "samesame" ]; then
1919
samesame=true
2020
fi
2121

22+
python3 -m pip install --user virtualenv
2223
# entrys
2324
echo "<<<--- Hallo to IoTree42 --->>>"
2425
echo "ENTER YOUR LINUX USERNAME FOR BUIDING PATHS"
@@ -44,7 +45,7 @@ sudo apt-get install -y inotify-tools
4445
sudo apt-get install -y libopenjp2-7
4546
sudo apt install -y libtiff5
4647
sudo apt-get install -y zip
47-
python3 -m pip install --user virtualenv
48+
4849

4950

5051
# get linux username make password for mqtt get host IP
@@ -198,12 +199,12 @@ mv ./IoTree_Gateway_V_1.1.zip ./home_user/dj_iot/media/downloadfiles
198199
mkdir /etc/iotree
199200
mkdir /home/$myvariable/.ssl
200201
cp -r ./home_user/ssl/* /home/$myvariable/.ssl
201-
cp -r ./home_user/acl /home/$myvariable/.acl
202-
cp -r ./home_user/passwd /home/$myvariable/.passwd
203-
cp -r ./home_user/hashing /home/$myvariable/.hashing
202+
mv ./home_user/acl /home/$myvariable/.acl
203+
mv ./home_user/passwd /home/$myvariable/.passwd
204+
mv ./home_user/hashing /home/$myvariable/.hashing
204205
cp -r ./home_user/* /home/$myvariable/
205206
cp /etc/mosquitto/mosquitto.conf /etc/mosquitto/mosquitto.conf.iotree_save
206-
cp -r ./tmp/mosquitto.conf /etc/mosquitto.conf
207+
cp -r ./tmp/mosquitto.conf /etc/mosquitto/mosquitto.conf
207208
cp -r ./tmp/config.json /etc/iotree
208209
cp -r ./tmp/hash3.sh /etc/iotree
209210
cp -r ./tmp/reload3.sh /etc/iotree

0 commit comments

Comments
 (0)