mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-01 13:10:15 +00:00
Signed-off-by: Subhaditya Nath <sn03.general@gmail.com>
This commit is contained in:
parent
98867d8d71
commit
e8079620f5
1 changed files with 18 additions and 5 deletions
|
@ -91,11 +91,19 @@ getRemoteVersion(){
|
||||||
#If the above file exists, then we can read from that. Prevents overuse of GitHub API
|
#If the above file exists, then we can read from that. Prevents overuse of GitHub API
|
||||||
if [[ -f "$cachedVersions" ]]; then
|
if [[ -f "$cachedVersions" ]]; then
|
||||||
IFS=' ' read -r -a arrCache < "$cachedVersions"
|
IFS=' ' read -r -a arrCache < "$cachedVersions"
|
||||||
case $daemon in
|
|
||||||
"pi-hole" ) echo "${arrCache[0]}";;
|
if [[ "${INSTALL_WEB_INTERFACE}" == true ]]; then
|
||||||
"AdminLTE" ) echo "${arrCache[1]}";;
|
case $daemon in
|
||||||
"FTL" ) echo "${arrCache[2]}";;
|
"pi-hole" ) echo "${arrCache[0]}";;
|
||||||
esac
|
"AdminLTE" ) echo "${arrCache[1]}";;
|
||||||
|
"FTL" ) echo "${arrCache[2]}";;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
case $daemon in
|
||||||
|
"pi-hole" ) echo "${arrCache[0]}";;
|
||||||
|
"FTL" ) echo "${arrCache[1]}";;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
@ -140,6 +148,11 @@ getLocalBranch(){
|
||||||
}
|
}
|
||||||
|
|
||||||
versionOutput() {
|
versionOutput() {
|
||||||
|
[[ "$1" == "AdminLTE" ]] && [[ "${INSTALL_WEB_INTERFACE}" != true ]] && {
|
||||||
|
echo " WebAdmin not installed"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
[[ "$1" == "pi-hole" ]] && GITDIR=$COREGITDIR
|
[[ "$1" == "pi-hole" ]] && GITDIR=$COREGITDIR
|
||||||
[[ "$1" == "AdminLTE" ]] && GITDIR=$WEBGITDIR
|
[[ "$1" == "AdminLTE" ]] && GITDIR=$WEBGITDIR
|
||||||
[[ "$1" == "FTL" ]] && GITDIR="FTL"
|
[[ "$1" == "FTL" ]] && GITDIR="FTL"
|
||||||
|
|
Loading…
Add table
Reference in a new issue