Przeglądaj źródła

Remove -i in sed command

Jaap Marcus 4 lat temu
rodzic
commit
36345fa345
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      install/hst-install-debian.sh
  2. 1 1
      install/hst-install-ubuntu.sh

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

@@ -347,7 +347,7 @@ conflicts_pkg="exim4 mariadb-server apache2 nginx hestia postfix"
 
 
 # Drop postfix from the list if exim should not be installed
 # Drop postfix from the list if exim should not be installed
 if [ "$exim" = 'no' ]; then
 if [ "$exim" = 'no' ]; then
-    conflicts_pkg=$(echo $conflicts_pkg | sed -i 's/postfix//g' | xargs)
+    conflicts_pkg=$(echo $conflicts_pkg | sed 's/postfix//g' | xargs)
 fi
 fi
 
 
 for pkg in $conflicts_pkg; do
 for pkg in $conflicts_pkg; do

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

@@ -321,7 +321,7 @@ conflicts_pkg="exim4 mariadb-server apache2 nginx hestia postfix ufw"
 
 
 # Drop postfix from the list if exim should not be installed
 # Drop postfix from the list if exim should not be installed
 if [ "$exim" = 'no' ]; then
 if [ "$exim" = 'no' ]; then
-    conflicts_pkg=$(echo $conflicts_pkg | sed -i 's/postfix//g' | xargs)
+    conflicts_pkg=$(echo $conflicts_pkg | sed 's/postfix//g' | xargs)
 fi
 fi
 
 
 for pkg in $conflicts_pkg; do
 for pkg in $conflicts_pkg; do