Skip to content
Snippets Groups Projects
Commit a0c196dd authored by Bob Mottram's avatar Bob Mottram
Browse files

Use php version variable

parent 4f5fad91
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,6 @@
PROJECT_NAME='freedombone'
PHP_VERSION='7.0'
app_name='noapp'
app_name_lower=$(echo "${app_name}" | tr '[:upper:]' '[:lower:]')
app_name=$app_name_lower
......@@ -844,7 +842,7 @@ if [ $app_webui ]; then
echo " echo ' index index.php;';"
echo " echo ' location ~ \\.php {';"
echo " echo ' include snippets/fastcgi-php.conf;';"
echo " echo ' fastcgi_pass unix:/var/run/php/php${PHP_VERSION}-fpm.sock;';"
echo " echo ' fastcgi_pass unix:/var/run/php/php\${PHP_VERSION}-fpm.sock;';"
echo " echo ' fastcgi_read_timeout 30;';"
echo " echo ' fastcgi_param HTTPS on;';"
echo " echo ' }';"
......@@ -889,7 +887,7 @@ if [ $app_webui ]; then
echo " echo ' index index.php;';"
echo " echo ' location ~ \\.php {';"
echo " echo ' include snippets/fastcgi-php.conf;';"
echo " echo ' fastcgi_pass unix:/var/run/php/php${PHP_VERSION}-fpm.sock;';"
echo " echo ' fastcgi_pass unix:/var/run/php/php\${PHP_VERSION}-fpm.sock;';"
echo " echo ' fastcgi_read_timeout 30;';"
echo " echo ' fastcgi_param HTTPS off;';"
echo " echo ' }';"
......@@ -985,7 +983,7 @@ fi
if [ $app_webui ]; then
if [[ "$app_php" == 'yes' ]]; then
echo ''
echo " systemctl restart php${PHP_VERSION}-fpm"
echo " systemctl restart php\${PHP_VERSION}-fpm"
echo ''
echo ' increment_app_install_progress'
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment