1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/piwigo_ynh.git synced 2024-09-03 20:06:03 +02:00
This commit is contained in:
monsieur-a 2014-07-07 18:48:34 +02:00
parent 60c3c8ef55
commit 727e29d5cb
3 changed files with 5 additions and 11 deletions

View file

@ -39,7 +39,7 @@ final_path=/var/www/piwigo
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
sed -i "s@ALIASTOCHANGE@$final_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/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 # Copy files to the right place
@ -103,15 +103,7 @@ then
sudo yunohost app setting piwigo protected_uris -v "/" sudo yunohost app setting piwigo protected_uris -v "/"
sudo yunohost app ssowatconf sudo yunohost app ssowatconf
fi 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 # Remove temporary entry in /etc/hosts
sudo sed -i '/yunopiwigo/d' /etc/hosts sudo sed -i '/yunopiwigo/d' /etc/hosts

View file

@ -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 -rf /var/www/piwigo
sudo rm -f /etc/nginx/conf.d/$domain.d/piwigo.conf sudo rm -f /etc/nginx/conf.d/$domain.d/piwigo.conf
sudo rm -rf /home/yunohost.app/piwigo 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 sudo service nginx reload

View file

@ -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 -rf /var/www/piwigo
sudo rm -f /etc/nginx/conf.d/$domain.d/piwigo.conf 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 -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 sudo service nginx reload