Update debian.sh

This commit is contained in:
Xiufeng Guo 2023-07-22 21:46:18 +10:00
parent c4e85e5974
commit 92809914cc
Signed by: showfom
GPG Key ID: 29A7777777777777

View File

@ -134,7 +134,7 @@ function install_packages() {
bash-completion git whois rsyslog \ bash-completion git whois rsyslog \
fail2ban iptables haveged gnupg vnstat lrzsz jq \ fail2ban iptables haveged gnupg vnstat lrzsz jq \
unattended-upgrades apt-listchanges \ unattended-upgrades apt-listchanges \
htop iftop p7zip-full htop iftop p7zip-full systemd-timesyncd
printf "\E[0;35;40m" printf "\E[0;35;40m"
echo '### Updating system... ###' echo '### Updating system... ###'
printf "\E[0m" printf "\E[0m"
@ -353,7 +353,7 @@ function add_docker_repo() {
echo '### Add Docker CE repo ###' echo '### Add Docker CE repo ###'
printf "\E[0m" printf "\E[0m"
curl -sS https://download.docker.com/linux/debian/gpg | gpg --dearmor > /usr/share/keyrings/docker-ce.gpg curl -sS https://download.docker.com/linux/debian/gpg | gpg --dearmor > /usr/share/keyrings/docker-ce.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-ce.gpg] https://mirror-cdn.xtom.com/docker-ce/linux/debian $(lsb_release -sc) stable" > /etc/apt/sources.list.d/docker.list echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-ce.gpg] https://download.docker.com/linux/debian $(lsb_release -sc) stable" > /etc/apt/sources.list.d/docker.list
printf "\E[0;33;40m" printf "\E[0;33;40m"
echo "### Docker CE repo added ###" echo "### Docker CE repo added ###"
printf "\E[0m" printf "\E[0m"