1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-18 06:08:21 +00:00

echo's don't need sudo

This commit is contained in:
Dan Schaper 2016-10-05 10:46:10 -07:00
parent 50d16d8215
commit 8c151c62ce

View File

@ -550,8 +550,8 @@ installScripts() {
installConfigs() { installConfigs() {
# Install the configs from /etc/.pihole to their various locations # Install the configs from /etc/.pihole to their various locations
${SUDO} echo ":::" echo ":::"
${SUDO} echo "::: Installing configs..." echo "::: Installing configs..."
versionCheckDNSmasq versionCheckDNSmasq
if [ ! -d "/etc/lighttpd" ]; then if [ ! -d "/etc/lighttpd" ]; then
${SUDO} mkdir /etc/lighttpd ${SUDO} mkdir /etc/lighttpd
@ -567,15 +567,15 @@ installConfigs() {
stopServices() { stopServices() {
# Stop dnsmasq and lighttpd # Stop dnsmasq and lighttpd
${SUDO} echo ":::" echo ":::"
${SUDO} echo -n "::: Stopping services..." echo -n "::: Stopping services..."
#$SUDO service dnsmasq stop & spinner $! || true #$SUDO service dnsmasq stop & spinner $! || true
if [ -x "$(command -v systemctl)" ]; then if [ -x "$(command -v systemctl)" ]; then
${SUDO} systemctl stop lighttpd & spinner $! || true ${SUDO} systemctl stop lighttpd & spinner $! || true
else else
${SUDO} service lighttpd stop & spinner $! || true ${SUDO} service lighttpd stop & spinner $! || true
fi fi
${SUDO} echo " done." echo " done."
} }
installerDependencies() { installerDependencies() {