diff --git a/tools/install.sh b/tools/install.sh index 0bbb693..3f5d461 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -12,18 +12,24 @@ set -e -if [ -d /proc/vz ] && [ ! -d /proc/vz/beancounter ] && [ ! $DONTINSTALL ]; then - apt-get -yq install curl dialog git nano screen zsh -else - if [ "$UID" != 0 ]; then CMD_PREFIX="sudo"; else CMD_PREFIX=""; fi +if [ ! -n "$DONTINSTALL" ]; then + DONTINSTALL="1" +fi + +if [ ! $DONTINSTALL ]; then + if [ -d /proc/vz ] && [ ! -d /proc/vz/beancounter ]; then + apt-get -yq install curl dialog git nano screen zsh + else + if [ "$UID" != 0 ]; then CMD_PREFIX="sudo"; else CMD_PREFIX=""; fi - if [ "$SHELL" != "$(which zsh)" ]; then - echo "$(which zsh)" - $CMD_PREFIX echo "enter pass...." + if [ "$SHELL" != "$(which zsh)" ]; then + echo "$(which zsh)" + $CMD_PREFIX echo "enter pass...." - echo "ok" + echo "ok" - $CMD_PREFIX apt-get -yq install curl dialog git nano zsh + $CMD_PREFIX apt-get -yq install curl dialog git nano zsh + fi fi fi