|
@ -15,10 +15,6 @@ function install_host() { |
|
|
|
|
|
|
|
|
[ $(id -u) -ne 0 ] && echo 'root privilege required' && exit 1 |
|
|
[ $(id -u) -ne 0 ] && echo 'root privilege required' && exit 1 |
|
|
|
|
|
|
|
|
# shellcheck disable=SC1091 |
|
|
|
|
|
source "$CURDIR/lib/functions.sh" |
|
|
|
|
|
idem_apt_install "${REQUIRED_PKGS[@]}" |
|
|
|
|
|
|
|
|
|
|
|
if [[ ! $CURDIR == '/opt/debian-bash' ]]; then |
|
|
if [[ ! $CURDIR == '/opt/debian-bash' ]]; then |
|
|
# download and filfull /opt/debian-bash, then run it from folder |
|
|
# download and filfull /opt/debian-bash, then run it from folder |
|
|
|
|
|
|
|
@ -61,6 +57,11 @@ function install_host() { |
|
|
fi |
|
|
fi |
|
|
done |
|
|
done |
|
|
source /etc/bash.bashrc |
|
|
source /etc/bash.bashrc |
|
|
|
|
|
|
|
|
|
|
|
# shellcheck disable=SC1091 |
|
|
|
|
|
source "$CURDIR/lib/functions.sh" |
|
|
|
|
|
idem_apt_install "${REQUIRED_PKGS[@]}" |
|
|
|
|
|
|
|
|
fi |
|
|
fi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|