2017-05-05 05:37:26 +02:00
|
|
|
#!/usr/bin/with-contenv bash
|
2018-07-02 13:45:39 +02:00
|
|
|
set -e
|
2017-05-05 05:37:26 +02:00
|
|
|
|
2018-01-04 04:37:19 +01:00
|
|
|
bashCmd='bash -e'
|
2017-12-11 17:28:05 +01:00
|
|
|
if [ "${PH_VERBOSE:-0}" -gt 0 ] ; then
|
|
|
|
set -x ;
|
2018-01-04 05:34:31 +01:00
|
|
|
bashCmd='bash -e -x'
|
2017-12-11 17:28:05 +01:00
|
|
|
fi
|
2017-05-05 05:37:26 +02:00
|
|
|
|
2018-07-04 21:11:18 +02:00
|
|
|
# used to start dnsmasq here for gravity to use...now that conflicts port 53
|
2018-01-27 01:26:46 +01:00
|
|
|
|
|
|
|
$bashCmd /start.sh
|
2018-12-11 04:28:53 +01:00
|
|
|
# Gotta go fast, no time for gravity
|
|
|
|
if [ -n "$PYTEST" ]; then
|
|
|
|
sed -i 's/^gravity_spinup$/#gravity_spinup # DISABLED FOR PYTEST/g' "$(which gravity.sh)"
|
|
|
|
fi
|
2018-01-05 05:30:40 +01:00
|
|
|
gravity.sh
|
2018-01-27 01:26:46 +01:00
|
|
|
|
|
|
|
# Kill dnsmasq because s6 won't like it if it's running when s6 services start
|
2018-07-03 07:19:01 +02:00
|
|
|
kill -9 $(pgrep pihole-FTL) || true
|
2020-02-04 06:39:03 +01:00
|
|
|
|
|
|
|
pihole -v
|