mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
No need to declare PKG_MANAGER
, as it's already declared in basic-install
Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
parent
95e3a5944d
commit
3c25094495
1 changed files with 0 additions and 6 deletions
|
@ -57,11 +57,6 @@ fi
|
||||||
# Compatability
|
# Compatability
|
||||||
if [ -x "$(command -v rpm)" ]; then
|
if [ -x "$(command -v rpm)" ]; then
|
||||||
# Fedora Family
|
# Fedora Family
|
||||||
if [ -x "$(command -v dnf)" ]; then
|
|
||||||
PKG_MANAGER="dnf"
|
|
||||||
else
|
|
||||||
PKG_MANAGER="yum"
|
|
||||||
fi
|
|
||||||
PKG_REMOVE="${PKG_MANAGER} remove -y"
|
PKG_REMOVE="${PKG_MANAGER} remove -y"
|
||||||
package_check() {
|
package_check() {
|
||||||
rpm -qa | grep ^$1- > /dev/null
|
rpm -qa | grep ^$1- > /dev/null
|
||||||
|
@ -71,7 +66,6 @@ if [ -x "$(command -v rpm)" ]; then
|
||||||
}
|
}
|
||||||
elif [ -x "$(command -v apt-get)" ]; then
|
elif [ -x "$(command -v apt-get)" ]; then
|
||||||
# Debian Family
|
# Debian Family
|
||||||
PKG_MANAGER="apt-get"
|
|
||||||
PKG_REMOVE="${PKG_MANAGER} -y remove --purge"
|
PKG_REMOVE="${PKG_MANAGER} -y remove --purge"
|
||||||
package_check() {
|
package_check() {
|
||||||
dpkg-query -W -f='${Status}' "$1" 2>/dev/null | grep -c "ok installed"
|
dpkg-query -W -f='${Status}' "$1" 2>/dev/null | grep -c "ok installed"
|
||||||
|
|
Loading…
Reference in a new issue