mirror of https://github.com/tteck/Proxmox.git
Update pihole_setup.sh
This commit is contained in:
parent
d646ecf1fd
commit
54c145a774
|
@ -27,7 +27,7 @@ function msg() {
|
||||||
echo -e "$TEXT"
|
echo -e "$TEXT"
|
||||||
}
|
}
|
||||||
|
|
||||||
msg "Setting up LXC OS..."
|
echo -e "${CHECKMARK} \e[1;92m Setting up LXC OS... \e[0m"
|
||||||
sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen
|
sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen
|
||||||
locale-gen >/dev/null
|
locale-gen >/dev/null
|
||||||
while [ "$(hostname -I)" = "" ]; do
|
while [ "$(hostname -I)" = "" ]; do
|
||||||
|
@ -42,21 +42,20 @@ while [ "$(hostname -I)" = "" ]; do
|
||||||
done
|
done
|
||||||
echo -e "${CHECKMARK} \e[1;92m Network Connected: \e[0m $(hostname -I)"
|
echo -e "${CHECKMARK} \e[1;92m Network Connected: \e[0m $(hostname -I)"
|
||||||
|
|
||||||
# Update container OS
|
echo -e "${CHECKMARK} \e[1;92m Updating Container OS... \e[0m"
|
||||||
msg "Updating container OS..."
|
|
||||||
apt-get update &>/dev/null
|
apt-get update &>/dev/null
|
||||||
apt-get -qqy upgrade &>/dev/null
|
apt-get -qqy upgrade &>/dev/null
|
||||||
|
|
||||||
msg "Installing Prerequisites..."
|
echo -e "${CHECKMARK} \e[1;92m Installing Dependencies... \e[0m"
|
||||||
apt-get update &>/dev/null
|
apt-get update &>/dev/null
|
||||||
apt-get -qqy install \
|
apt-get -qqy install \
|
||||||
curl \
|
curl \
|
||||||
sudo &>/dev/null
|
sudo &>/dev/null
|
||||||
|
|
||||||
msg "Installing Pi-hole.."
|
echo -e "${CHECKMARK} \e[1;92m Installing Pi-hole... \e[0m"
|
||||||
curl -sSL https://install.pi-hole.net | bash
|
curl -sSL https://install.pi-hole.net | bash
|
||||||
|
|
||||||
msg "Customizing LXC..."
|
echo -e "${CHECKMARK} \e[1;92m Customizing LXC... \e[0m"
|
||||||
rm /etc/motd
|
rm /etc/motd
|
||||||
rm /etc/update-motd.d/10-uname
|
rm /etc/update-motd.d/10-uname
|
||||||
touch ~/.hushlogin
|
touch ~/.hushlogin
|
||||||
|
@ -70,5 +69,5 @@ EOF
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||||
|
|
||||||
msg "Cleanup..."
|
echo -e "${CHECKMARK} \e[1;92m Cleanup... \e[0m"
|
||||||
rm -rf /pihole_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*
|
rm -rf /pihole_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*
|
||||||
|
|
Loading…
Reference in New Issue