|
@ -36,11 +36,24 @@ function install_host() { |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
else |
|
|
else |
|
|
apt-get update |
|
|
|
|
|
apt-get install -y "${REQUIRED_PKGS[@]}" |
|
|
|
|
|
./init.sh |
|
|
|
|
|
|
|
|
echo "--------------------------------" |
|
|
|
|
|
echo "debian-bash has been deprecated!" |
|
|
|
|
|
echo "--------------------------------" |
|
|
|
|
|
|
|
|
|
|
|
read -rn1 -p 'Would you like to migrate to the new project named `miaou-bash`, (yN)?' answer |
|
|
|
|
|
if [[ "$answer" == 'y' ]];then |
|
|
|
|
|
pushd /tmp |
|
|
|
|
|
pushd /opt/debian-bash |
|
|
|
|
|
./uninstall.sh |
|
|
|
|
|
popd |
|
|
|
|
|
rm -rf /opt/debian-bash |
|
|
|
|
|
curl https://git.artcode.re/miaou/miaou-bash/raw/branch/main/install.sh | sudo bash -s |
|
|
|
|
|
source /etc/bash.bashrc |
|
|
|
|
|
exit 0 |
|
|
|
|
|
fi |
|
|
|
|
|
echo "cancelled!" |
|
|
|
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function install_containers() { |
|
|
function install_containers() { |
|
|