Skip to content

Commit fec00f1

Browse files
committed
fix issue #3
1 parent 16f22c8 commit fec00f1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/install

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ if [ "$NOT_ADMIN" = "1" ]; then
2626
sudo gcc -std=c99 $NETKIT_HOME/wrapper/netkit_dw.c -o $NETKIT_HOME/wrapper/bin/netkit_dw
2727
else
2828
echo -e "\033[0;33mAdmin mode\033[0m"
29-
echo -e "\033[0;31mWARNING: unsafe installation, this will not create a wrapper and remove it if previously installed.\033[0m"
29+
echo -e "\033[0;31mWARNING: This will not create a wrapper or remove it if previously installed.\033[0m"
30+
echo -e "\033[0;33mIt will also require sudo to start network nodes and access them.\033[0m"
3031
sudo rm $NETKIT_HOME/wrapper/bin/netkit_dw
3132
sudo cp $NETKIT_HOME/wrapper/bin/fake_wrapper $NETKIT_HOME/wrapper/bin/netkit_dw
3233
fi
@@ -38,7 +39,7 @@ if [ "$NOT_ADMIN" = "1" ]; then
3839
sudo chattr -i $NETKIT_HOME/wrapper/bin/netkit_dw
3940
sudo chmod 000 $NETKIT_HOME/wrapper/netkit_dw.c
4041
sudo rm $NETKIT_HOME/../config
41-
echo "unix_bin=/wrapper/bin/netkit_dw" > $NETKIT_HOME/../config
42+
echo "unix_bin=$NETKIT_HOME/wrapper/bin/netkit_dw" > $NETKIT_HOME/../config
4243

4344
else
4445
sudo rm $NETKIT_HOME/../config

0 commit comments

Comments
 (0)