mirror of
https://github.com/YunoHost-Apps/phpbb_ynh.git
synced 2024-09-03 19:56:36 +02:00
Update of php-fpm configuration
This commit is contained in:
parent
51cc183326
commit
e9eb8d46fc
3 changed files with 5 additions and 3 deletions
|
@ -12,6 +12,8 @@ admin_email=$6
|
|||
lang=$7
|
||||
curl_inst=$8
|
||||
|
||||
sudo yunohost app setting $app domain -v $domain
|
||||
|
||||
# Removal of trailing /
|
||||
path=${path%/}
|
||||
|
||||
|
@ -63,7 +65,7 @@ sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf
|
|||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
|
||||
sed -i "s@NAMETOCHANGE@$app@g" ../conf/php-fpm.conf
|
||||
finalphpconf=/etc/php5/fpm/pool.d/$app.conf
|
||||
finalphpconf=/etc/php5/fpm/pool.d/$domain\_$app.conf
|
||||
sudo cp ../conf/php-fpm.conf $finalphpconf
|
||||
sudo chown root: $finalphpconf
|
||||
sudo chmod 644 $finalphpconf
|
||||
|
|
|
@ -11,7 +11,7 @@ domain=$(sudo yunohost app setting $app domain)
|
|||
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
|
||||
sudo rm -rf /var/www/$app
|
||||
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
sudo rm -f /etc/php5/fpm/pool.d/$app.conf
|
||||
sudo rm -f /etc/php5/fpm/pool.d/$domain\_$app.conf
|
||||
|
||||
sudo service php5-fpm restart
|
||||
sudo service nginx reload
|
||||
|
|
|
@ -34,7 +34,7 @@ sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf
|
|||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
|
||||
sed -i "s@NAMETOCHANGE@$app@g" ../conf/php-fpm.conf
|
||||
finalphpconf=/etc/php5/fpm/pool.d/$app.conf
|
||||
finalphpconf=/etc/php5/fpm/pool.d/$domain\_$app.conf
|
||||
sudo cp ../conf/php-fpm.conf $finalphpconf
|
||||
sudo chown root: $finalphpconf
|
||||
sudo chmod 644 $finalphpconf
|
||||
|
|
Loading…
Reference in a new issue