-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from diginc/v2.11.1
V2.11.1+ update - from github official repo & installer rather than sub modules.
- Loading branch information
Showing
24 changed files
with
279 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +0,0 @@ | ||
[submodule "pi-hole"] | ||
path = pi-hole | ||
url = https://github.com/pi-hole/pi-hole.git | ||
[submodule "AdminLTE"] | ||
path = AdminLTE | ||
url = https://github.com/pi-hole/AdminLTE.git | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ python: | |
install: | ||
- pip install -r requirements.txt | ||
|
||
script: py.test -vv | ||
script: py.test -vv test/ |
Submodule AdminLTE
deleted from
3e6955
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
# lazy cheap service script patch for alpine | ||
dnsmasq_start() { | ||
dnsmasq -7 /etc/dnsmasq.d | ||
} | ||
|
||
dnsmasq_stop() { | ||
kill -9 $(pidof dnsmasq) | ||
} | ||
|
||
dnsmasq_restart() { | ||
dnsmasq_stop; dnsmasq_start; | ||
} | ||
|
||
status() { | ||
if pidof $service 2&>1 > /dev/null ; then | ||
echo "$service running" | ||
else | ||
echo "$service not running" | ||
fi; | ||
} | ||
|
||
nginx_start() { | ||
nginx -t && \ | ||
nginx | ||
} | ||
nginx_stop() { | ||
nginx -t && \ | ||
kill -9 $(pidof nginx) | ||
} | ||
nginx_restart() { | ||
nginx_stop | ||
nginx_start | ||
} | ||
dnsmasq_status() { | ||
status | ||
} | ||
nginx_status() { | ||
status | ||
} | ||
|
||
service="$1" | ||
command="$2" | ||
if [[ "$service" == 'lighttpd' ]] ; then | ||
echo -e "Lighttpd replaced by nginx in diginc/pi-hole:alpine\nrunning service nginx $command instead"; | ||
service='nginx' | ||
fi; | ||
|
||
|
||
if [[ "$service" == 'dnsmasq' ]] || [[ "$service" == 'nginx' ]] ; then | ||
${service}_${command} || echo "Unknown option $command" | ||
else | ||
echo "$service service wrapper not patched into alpine container" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.