mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
Rename PH_TEST to SKIP_INSTALL
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
3d4476c9fb
commit
0a8761ee68
2 changed files with 5 additions and 3 deletions
|
@ -24,8 +24,8 @@ readonly gravityDBfile="/etc/pihole/gravity.db"
|
||||||
|
|
||||||
# Source install script for ${setupVars}, ${PI_HOLE_BIN_DIR} and valid_ip()
|
# Source install script for ${setupVars}, ${PI_HOLE_BIN_DIR} and valid_ip()
|
||||||
readonly PI_HOLE_FILES_DIR="/etc/.pihole"
|
readonly PI_HOLE_FILES_DIR="/etc/.pihole"
|
||||||
# shellcheck disable=SC2034 # used in basic-install
|
# shellcheck disable=SC2034 # used in basic-install to source the script without running it
|
||||||
PH_TEST="true"
|
SKIP_INSTALL="true"
|
||||||
source "${PI_HOLE_FILES_DIR}/automated install/basic-install.sh"
|
source "${PI_HOLE_FILES_DIR}/automated install/basic-install.sh"
|
||||||
|
|
||||||
utilsfile="/opt/pihole/utils.sh"
|
utilsfile="/opt/pihole/utils.sh"
|
||||||
|
|
|
@ -2860,6 +2860,8 @@ main() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "${PH_TEST}" != true ]] ; then
|
# allow to source this script without running it
|
||||||
|
# used in docker-pihole and webpage.sh
|
||||||
|
if [[ "${SKIP_INSTALL}" != true ]] ; then
|
||||||
main "$@"
|
main "$@"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue