Quellcode durchsuchen

Add star for conflict uninstall to be sure to remove every package.

Raphael Schneeberger vor 6 Jahren
Ursprung
Commit
3e2ce6ca7b
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      install/hst-install-debian.sh
  2. 1 1
      install/hst-install-ubuntu.sh

+ 1 - 1
install/hst-install-debian.sh

@@ -328,7 +328,7 @@ tmpfile=$(mktemp -p /tmp)
 dpkg --get-selections > $tmpfile
 dpkg --get-selections > $tmpfile
 for pkg in exim4 mariadb-server apache2 nginx hestia postfix; do
 for pkg in exim4 mariadb-server apache2 nginx hestia postfix; do
     if [ ! -z "$(grep $pkg $tmpfile)" ]; then
     if [ ! -z "$(grep $pkg $tmpfile)" ]; then
-        conflicts="$pkg $conflicts"
+        conflicts="$pkg* $conflicts"
     fi
     fi
 done
 done
 rm -f $tmpfile
 rm -f $tmpfile

+ 1 - 1
install/hst-install-ubuntu.sh

@@ -306,7 +306,7 @@ tmpfile=$(mktemp -p /tmp)
 dpkg --get-selections > $tmpfile
 dpkg --get-selections > $tmpfile
 for pkg in exim4 mariadb-server apache2 nginx hestia postfix ufw; do
 for pkg in exim4 mariadb-server apache2 nginx hestia postfix ufw; do
     if [ ! -z "$(grep $pkg $tmpfile)" ]; then
     if [ ! -z "$(grep $pkg $tmpfile)" ]; then
-        conflicts="$pkg $conflicts"
+        conflicts="$pkg* $conflicts"
     fi
     fi
 done
 done
 rm -f $tmpfile
 rm -f $tmpfile