mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
echo's don't need sudo
This commit is contained in:
parent
50d16d8215
commit
8c151c62ce
1 changed files with 5 additions and 5 deletions
|
@ -550,8 +550,8 @@ installScripts() {
|
|||
|
||||
installConfigs() {
|
||||
# Install the configs from /etc/.pihole to their various locations
|
||||
${SUDO} echo ":::"
|
||||
${SUDO} echo "::: Installing configs..."
|
||||
echo ":::"
|
||||
echo "::: Installing configs..."
|
||||
versionCheckDNSmasq
|
||||
if [ ! -d "/etc/lighttpd" ]; then
|
||||
${SUDO} mkdir /etc/lighttpd
|
||||
|
@ -567,15 +567,15 @@ installConfigs() {
|
|||
|
||||
stopServices() {
|
||||
# Stop dnsmasq and lighttpd
|
||||
${SUDO} echo ":::"
|
||||
${SUDO} echo -n "::: Stopping services..."
|
||||
echo ":::"
|
||||
echo -n "::: Stopping services..."
|
||||
#$SUDO service dnsmasq stop & spinner $! || true
|
||||
if [ -x "$(command -v systemctl)" ]; then
|
||||
${SUDO} systemctl stop lighttpd & spinner $! || true
|
||||
else
|
||||
${SUDO} service lighttpd stop & spinner $! || true
|
||||
fi
|
||||
${SUDO} echo " done."
|
||||
echo " done."
|
||||
}
|
||||
|
||||
installerDependencies() {
|
||||
|
|
Loading…
Reference in a new issue