mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Rename subroutine start_service() to restart_service() because this is what it does
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
d90d7b6927
commit
cc657c0c26
1 changed files with 3 additions and 3 deletions
|
@ -1437,7 +1437,7 @@ stop_service() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Start/Restart service passed in as argument
|
# Start/Restart service passed in as argument
|
||||||
start_service() {
|
restart_service() {
|
||||||
# Local, named variables
|
# Local, named variables
|
||||||
local str="Starting ${1} service"
|
local str="Starting ${1} service"
|
||||||
printf " %b %s..." "${INFO}" "${str}"
|
printf " %b %s..." "${INFO}" "${str}"
|
||||||
|
@ -2572,7 +2572,7 @@ main() {
|
||||||
if [[ "${INSTALL_WEB_SERVER}" == true ]]; then
|
if [[ "${INSTALL_WEB_SERVER}" == true ]]; then
|
||||||
|
|
||||||
if [[ "${LIGHTTPD_ENABLED}" == true ]]; then
|
if [[ "${LIGHTTPD_ENABLED}" == true ]]; then
|
||||||
start_service lighttpd
|
restart_service lighttpd
|
||||||
enable_service lighttpd
|
enable_service lighttpd
|
||||||
else
|
else
|
||||||
printf " %b Lighttpd is disabled, skipping service restart\\n" "${INFO}"
|
printf " %b Lighttpd is disabled, skipping service restart\\n" "${INFO}"
|
||||||
|
@ -2587,7 +2587,7 @@ main() {
|
||||||
# Fixes a problem reported on Ubuntu 18.04 where trying to start
|
# Fixes a problem reported on Ubuntu 18.04 where trying to start
|
||||||
# the service before enabling causes installer to exit
|
# the service before enabling causes installer to exit
|
||||||
enable_service pihole-FTL
|
enable_service pihole-FTL
|
||||||
start_service pihole-FTL
|
restart_service pihole-FTL
|
||||||
|
|
||||||
# Download and compile the aggregated block list
|
# Download and compile the aggregated block list
|
||||||
runGravity
|
runGravity
|
||||||
|
|
Loading…
Reference in a new issue