Sfoglia il codice sorgente

Fixed mysql-server package replacement

Serghey Rodin 7 anni fa
parent
commit
b6e26ac479
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      install/vst-install-rhel.sh

+ 2 - 2
install/vst-install-rhel.sh

@@ -32,7 +32,7 @@ software="awstats bc bind bind-libs bind-utils clamav-server clamav-update
 
 # Fix for old releases
 if [ "$release" -lt 7 ]; then
-    software=$(echo "$software" |sed -e "s/mariadb/mysql/")
+    software=$(echo "$software" |sed -e "s/mariadb/mysql/g")
     software=$(echo "$software" |sed -e "s/clamav-server/clamd/")
     software=$(echo "$software" |sed -e "s/clamav-update//")
     software=$(echo "$software" |sed -e "s/iptables-services//")
@@ -956,7 +956,7 @@ if [ -z "$ZONE" ]; then
     ZONE='UTC'
 fi
 for pconf in $(find /etc/php* -name php.ini); do
-    sed -i "s/;date.timezone =/date.timezone = $ZONE/g" $pconf
+    sed -i "s|;date.timezone =|date.timezone = $ZONE|g" $pconf
     sed -i 's%_open_tag = Off%_open_tag = On%g' $pconf
 done