Compare commits
2 Commits
v6.3
...
fix/declar
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f3183dc95f | ||
|
|
18d4aef37c |
@@ -22,9 +22,8 @@ TestAPIAvailability() {
|
|||||||
local chaos_api_list authResponse authStatus authData apiAvailable DNSport
|
local chaos_api_list authResponse authStatus authData apiAvailable DNSport
|
||||||
|
|
||||||
# as we are running locally, we can get the port value from FTL directly
|
# as we are running locally, we can get the port value from FTL directly
|
||||||
readonly utilsfile="${PI_HOLE_SCRIPT_DIR}/utils.sh"
|
|
||||||
# shellcheck source=./advanced/Scripts/utils.sh
|
# shellcheck source=./advanced/Scripts/utils.sh
|
||||||
. "${utilsfile}"
|
. "/opt/pihole/utils.sh"
|
||||||
|
|
||||||
DNSport=$(getFTLConfigValue dns.port)
|
DNSport=$(getFTLConfigValue dns.port)
|
||||||
|
|
||||||
|
|||||||
@@ -15,15 +15,12 @@ if [[ -f ${coltable} ]]; then
|
|||||||
source ${coltable}
|
source ${coltable}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
readonly PI_HOLE_SCRIPT_DIR="/opt/pihole"
|
|
||||||
utilsfile="${PI_HOLE_SCRIPT_DIR}/utils.sh"
|
|
||||||
# shellcheck source=./advanced/Scripts/utils.sh
|
# shellcheck source=./advanced/Scripts/utils.sh
|
||||||
source "${utilsfile}"
|
source "/opt/pihole/utils.sh"
|
||||||
|
|
||||||
readonly PI_HOLE_FILES_DIR="/etc/.pihole"
|
|
||||||
SKIP_INSTALL="true"
|
SKIP_INSTALL="true"
|
||||||
# shellcheck source="./automated install/basic-install.sh"
|
# shellcheck source="./automated install/basic-install.sh"
|
||||||
source "${PI_HOLE_FILES_DIR}/automated install/basic-install.sh"
|
source "/etc/.pihole/automated install/basic-install.sh"
|
||||||
# stop_service() is defined in basic-install.sh
|
# stop_service() is defined in basic-install.sh
|
||||||
# restart_service() is defined in basic-install.sh
|
# restart_service() is defined in basic-install.sh
|
||||||
|
|
||||||
|
|||||||
@@ -12,14 +12,12 @@ colfile="/opt/pihole/COL_TABLE"
|
|||||||
# shellcheck source="./advanced/Scripts/COL_TABLE"
|
# shellcheck source="./advanced/Scripts/COL_TABLE"
|
||||||
source ${colfile}
|
source ${colfile}
|
||||||
|
|
||||||
readonly PI_HOLE_SCRIPT_DIR="/opt/pihole"
|
|
||||||
utilsfile="${PI_HOLE_SCRIPT_DIR}/utils.sh"
|
|
||||||
# shellcheck source="./advanced/Scripts/utils.sh"
|
# shellcheck source="./advanced/Scripts/utils.sh"
|
||||||
source "${utilsfile}"
|
source "/opt/pihole/utils.sh"
|
||||||
|
|
||||||
SKIP_INSTALL="true"
|
SKIP_INSTALL="true"
|
||||||
# shellcheck source="./automated install/basic-install.sh"
|
# shellcheck source="./automated install/basic-install.sh"
|
||||||
source "${PI_HOLE_FILES_DIR}/automated install/basic-install.sh"
|
source "/etc/.pihole/automated install/basic-install.sh"
|
||||||
# stop_service() is defined in basic-install.sh
|
# stop_service() is defined in basic-install.sh
|
||||||
# restart_service() is defined in basic-install.sh
|
# restart_service() is defined in basic-install.sh
|
||||||
|
|
||||||
|
|||||||
@@ -13,11 +13,6 @@ source "/opt/pihole/COL_TABLE"
|
|||||||
# shellcheck source="./advanced/Scripts/utils.sh"
|
# shellcheck source="./advanced/Scripts/utils.sh"
|
||||||
source "/opt/pihole/utils.sh"
|
source "/opt/pihole/utils.sh"
|
||||||
|
|
||||||
SKIP_INSTALL="true"
|
|
||||||
# shellcheck source="./automated install/basic-install.sh"
|
|
||||||
source "${PI_HOLE_FILES_DIR}/automated install/basic-install.sh"
|
|
||||||
# stop_service() is defined in basic-install.sh
|
|
||||||
|
|
||||||
ADMIN_INTERFACE_DIR=$(getFTLConfigValue "webserver.paths.webroot")$(getFTLConfigValue "webserver.paths.webhome")
|
ADMIN_INTERFACE_DIR=$(getFTLConfigValue "webserver.paths.webroot")$(getFTLConfigValue "webserver.paths.webhome")
|
||||||
readonly ADMIN_INTERFACE_DIR
|
readonly ADMIN_INTERFACE_DIR
|
||||||
|
|
||||||
@@ -50,7 +45,7 @@ readonly PI_HOLE_FILES_DIR="/etc/.pihole"
|
|||||||
SKIP_INSTALL="true"
|
SKIP_INSTALL="true"
|
||||||
# shellcheck source="./automated install/basic-install.sh"
|
# shellcheck source="./automated install/basic-install.sh"
|
||||||
source "${PI_HOLE_FILES_DIR}/automated install/basic-install.sh"
|
source "${PI_HOLE_FILES_DIR}/automated install/basic-install.sh"
|
||||||
|
# stop_service() is defined in basic-install.sh
|
||||||
# package_manager_detect() sourced from basic-install.sh
|
# package_manager_detect() sourced from basic-install.sh
|
||||||
package_manager_detect
|
package_manager_detect
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user