mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-21 13:30:56 +00:00
attempt to self-elevate to root user to execute script
This commit is contained in:
parent
362fe627c6
commit
a6edbf091d
@ -17,9 +17,9 @@
|
|||||||
# curl -L install.pi-hole.net | bash
|
# curl -L install.pi-hole.net | bash
|
||||||
|
|
||||||
# Must be root to install
|
# Must be root to install
|
||||||
if [[ $EUID -ne 0 ]]; then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
echo "ERROR: You must run this script as a root user"
|
sudo bash "$0" "$@"
|
||||||
exit 1
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
######## VARIABLES #########
|
######## VARIABLES #########
|
||||||
|
@ -9,11 +9,12 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
# Must be root to uninstall
|
# Must be root to uninstall
|
||||||
if [[ $EUID -ne 0 ]]; then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
echo "ERROR: You must run this script as a root user"
|
sudo bash "$0" "$@"
|
||||||
exit 1
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
######### SCRIPT ###########
|
######### SCRIPT ###########
|
||||||
apt-get -y remove --purge dnsutils bc toilet
|
apt-get -y remove --purge dnsutils bc toilet
|
||||||
apt-get -y remove --purge dnsmasq
|
apt-get -y remove --purge dnsmasq
|
||||||
|
Loading…
Reference in New Issue
Block a user