diff --git a/scripts/install b/scripts/install index d0b7adf..ee1c271 100644 --- a/scripts/install +++ b/scripts/install @@ -39,7 +39,7 @@ final_path=/var/www/piwigo sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/piwigo.conf - +sudo cp ../conf/php-fpm.conf /etc/php5/fpm/pool.d/piwigo.conf # Copy files to the right place @@ -103,15 +103,7 @@ then sudo yunohost app setting piwigo protected_uris -v "/" sudo yunohost app ssowatconf fi -#configurer php -sudo cp ../conf/php-fpm.conf /etc/php5/fpm/pool.d/piwigo.conf -sudo cp ../conf/php-fpm.ini /etc/php5/fpm/conf.d/20-piwigo.ini -sudo sed -i "s@NAMETOCHANGE@piwigo@g" /etc/php5/fpm/pool.d/piwigo.conf - -sudo service php5-fpm restart -sudo service nginx reload -sudo yunohost app ssowatconf # Remove temporary entry in /etc/hosts sudo sed -i '/yunopiwigo/d' /etc/hosts diff --git a/scripts/remove b/scripts/remove index 4329e0d..4e2c0c0 100644 --- a/scripts/remove +++ b/scripts/remove @@ -10,6 +10,8 @@ mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localh sudo rm -rf /var/www/piwigo sudo rm -f /etc/nginx/conf.d/$domain.d/piwigo.conf sudo rm -rf /home/yunohost.app/piwigo +sudo rm /etc/php5/fpm/pool.d/piwigo.conf +sudo rm /etc/php5/fpm/conf.d/20-piwigo.ini sudo service nginx reload diff --git a/scripts/remove~ b/scripts/remove~ index 60973d0..ee1a40c 100644 --- a/scripts/remove~ +++ b/scripts/remove~ @@ -9,9 +9,9 @@ mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localh sudo rm -rf /var/www/piwigo sudo rm -f /etc/nginx/conf.d/$domain.d/piwigo.conf -sudo rm -f /etc/php5/fpm/pool.d/piwigo.conf -sudo rm -f /etc/php5/fpm/conf.d/20-piwigo.ini sudo rm -rf /home/yunohost.app/piwigo +sudo rm /etc/php5/fpm/pool.d/piwigo.conf +sudo rm/etc/php5/fpm/conf.d/20-piwigo.ini sudo service nginx reload