File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ if [ "$NOT_ADMIN" = "1" ]; then
2727else
2828 echo -e " \033[0;33mAdmin mode\033[0m"
2929 echo -e " \033[0;31mWARNING: unsafe installation, this will not create a wrapper and remove it if previously installed.\033[0m"
30- echo -e " \033[0;31mYou will need to use 'sudo true' before using commands and set the env variable NETKIT_ADMIN to 1.\033[0m"
3130 sudo rm $NETKIT_HOME /wrapper/bin/netkit_dw
31+ sudo cp $NETKIT_HOME /wrapper/bin/fake_wrapper $NETKIT_HOME /wrapper/bin/netkit_dw
3232fi
3333
3434echo " Setting permissions"
Original file line number Diff line number Diff line change 3434
3535if PLATFORM != WINDOWS :
3636 DOCKER_BIN = os .environ ['NETKIT_HOME' ] + '/wrapper/bin/netkit_dw'
37- if os .environ ['NETKIT_ADMIN' ] == '1' and PLATFORM != WINDOWS :
38- DOCKER_BIN = 'sudo docker'
3937
4038SEPARATOR_WINDOWS = ' & '
4139BASH_SEPARATOR = ' ; '
Original file line number Diff line number Diff line change 11#! /bin/bash
2-
3- docker $@
2+ sudo true
3+ sudo docker $@
You can’t perform that action at this time.
0 commit comments