Bladeren bron

Fixed Nginx PATH

lj2007331 9 jaren geleden
bovenliggende
commit
ec105b81f5
3 gewijzigde bestanden met toevoegingen van 2 en 3 verwijderingen
  1. 1 1
      functions/nginx.sh
  2. 1 1
      functions/tengine.sh
  3. 0 1
      vhost.sh

+ 1 - 1
functions/nginx.sh

@@ -51,7 +51,7 @@ else
 fi
 
 [ -z "`grep ^'export PATH=' /etc/profile`" ] && echo "export PATH=$nginx_install_dir/sbin:\$PATH" >> /etc/profile 
-[ -n "`grep ^'export PATH=' /etc/profile`" -a -z "`grep $nginx_install_dir /etc/profile`" ] && sed -i "s@^export PATH=\(.*\)@export PATH=$nginx_install_dir/bin:\1@" /etc/profile
+[ -n "`grep ^'export PATH=' /etc/profile`" -a -z "`grep $nginx_install_dir /etc/profile`" ] && sed -i "s@^export PATH=\(.*\)@export PATH=$nginx_install_dir/sbin:\1@" /etc/profile
 . /etc/profile
 
 cd ../../

+ 1 - 1
functions/tengine.sh

@@ -53,7 +53,7 @@ else
 fi
 
 [ -z "`grep ^'export PATH=' /etc/profile`" ] && echo "export PATH=$tengine_install_dir/sbin:\$PATH" >> /etc/profile 
-[ -n "`grep ^'export PATH=' /etc/profile`" -a -z "`grep $tengine_install_dir /etc/profile`" ] && sed -i "s@^export PATH=\(.*\)@export PATH=$tengine_install_dir/bin:\1@" /etc/profile
+[ -n "`grep ^'export PATH=' /etc/profile`" -a -z "`grep $tengine_install_dir /etc/profile`" ] && sed -i "s@^export PATH=\(.*\)@export PATH=$tengine_install_dir/sbin:\1@" /etc/profile
 . /etc/profile
 
 cd ../../

+ 0 - 1
vhost.sh

@@ -63,7 +63,6 @@ elif [ -e "$php_install_dir" -a -e "$tomcat_install_dir" -a ! -e "/usr/bin/hhvm"
 elif [ -e "$php_install_dir" -a ! -e "$tomcat_install_dir" -a ! -e "/usr/bin/hhvm" ];then
 	Number=100
 	NGX_FLAG=php
-	echo -e "\t\033[32m1\033[0m. Use php"
 elif [ -e "$php_install_dir" -a ! -e "$tomcat_install_dir" -a -e "/usr/bin/hhvm" ];then
 	Number=101
 	while :