FusionPBX 2 лет назад
Родитель
Сommit
ac87158a4b
1 измененных файлов с 7 добавлено и 7 удалено
  1. 7 7
      debian/resources/upgrade/php.sh

+ 7 - 7
debian/resources/upgrade/php.sh

@@ -36,7 +36,7 @@ if [ ."$php_version" = ."8.2" ]; then
 	apt-get install -y php8.2 php8.2-cli php8.2-dev php8.2-fpm php8.2-pgsql php8.2-sqlite3 php8.2-odbc php8.2-curl php8.2-imap php8.2-xml php8.2-gd php8.2-mbstring php8.2-ldap
 	apt-get install -y php8.2 php8.2-cli php8.2-dev php8.2-fpm php8.2-pgsql php8.2-sqlite3 php8.2-odbc php8.2-curl php8.2-imap php8.2-xml php8.2-gd php8.2-mbstring php8.2-ldap
 
 
  	#update the unix socket name
  	#update the unix socket name
-	sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php8.2-fpm.sock;#g'
+	/usr/bin/sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php8.2-fpm.sock;#g'
 
 
 	#set the PHP ini file path
 	#set the PHP ini file path
 	php_ini_file='/etc/php/8.2/fpm/php.ini'
 	php_ini_file='/etc/php/8.2/fpm/php.ini'
@@ -52,7 +52,7 @@ if [ ."$php_version" = ."8.1" ]; then
 	apt-get install -y php8.1 php8.1-cli php8.1-dev php8.1-fpm php8.1-pgsql php8.1-sqlite3 php8.1-odbc php8.1-curl php8.1-imap php8.1-xml php8.1-gd php8.1-mbstring php8.1-ldap
 	apt-get install -y php8.1 php8.1-cli php8.1-dev php8.1-fpm php8.1-pgsql php8.1-sqlite3 php8.1-odbc php8.1-curl php8.1-imap php8.1-xml php8.1-gd php8.1-mbstring php8.1-ldap
  
  
   	#update the unix socket name
   	#update the unix socket name
-	sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php8.1-fpm.sock;#g'
+	/usr/bin/sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php8.1-fpm.sock;#g'
 
 
 	#set the PHP ini file path
 	#set the PHP ini file path
 	php_ini_file='/etc/php/8.1/fpm/php.ini'
 	php_ini_file='/etc/php/8.1/fpm/php.ini'
@@ -66,17 +66,17 @@ if [ ."$php_version" = ."7.4" ]; then
 	apt-get install -y php7.4 php7.4-cli php7.4-dev php7.4-fpm php7.4-pgsql php7.4-sqlite3 php7.4-odbc php7.4-curl php7.4-imap php7.4-xml php7.4-gd php7.4-mbstring php7.4-ldap
 	apt-get install -y php7.4 php7.4-cli php7.4-dev php7.4-fpm php7.4-pgsql php7.4-sqlite3 php7.4-odbc php7.4-curl php7.4-imap php7.4-xml php7.4-gd php7.4-mbstring php7.4-ldap
  
  
   	#update the unix socket name
   	#update the unix socket name
-	sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php7.4-fpm.sock;#g'
+	/usr/bin/sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php7.4-fpm.sock;#g'
 
 
 	#set the PHP ini file path
 	#set the PHP ini file path
 	php_ini_file='/etc/php/7.4/fpm/php.ini'
 	php_ini_file='/etc/php/7.4/fpm/php.ini'
 fi
 fi
 
 
 #update config if source is being used
 #update config if source is being used
-sed 's#post_max_size = .*#post_max_size = 80M#g' -i $php_ini_file
-sed 's#upload_max_filesize = .*#upload_max_filesize = 80M#g' -i $php_ini_file
-sed 's#;max_input_vars = .*#max_input_vars = 8000#g' -i $php_ini_file
-sed 's#; max_input_vars = .*#max_input_vars = 8000#g' -i $php_ini_file
+/usr/bin/sed 's#post_max_size = .*#post_max_size = 80M#g' -i $php_ini_file
+/usr/bin/sed 's#upload_max_filesize = .*#upload_max_filesize = 80M#g' -i $php_ini_file
+/usr/bin/sed 's#;max_input_vars = .*#max_input_vars = 8000#g' -i $php_ini_file
+/usr/bin/sed 's#; max_input_vars = .*#max_input_vars = 8000#g' -i $php_ini_file
 
 
 #restart nginx
 #restart nginx
 service nginx restart
 service nginx restart