1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/baikal_ynh.git synced 2024-09-03 18:16:11 +02:00

[fix] Remove PHP-FPM commented commands - will see later

This commit is contained in:
Jérôme Lebleu 2016-05-07 01:48:50 +02:00
parent 2dfe7a0bda
commit 8daf0ee6e6
6 changed files with 0 additions and 29 deletions

View file

@ -25,9 +25,7 @@ or from the Web administration:
## TODO
* Test the upgrade from the current official package
* Update `config.php` and `config.system.php` at upgrade
* Add a PHP-FPM pool for Baïkal?
## Links ##

View file

@ -22,7 +22,6 @@ ynh_backup "$DESTDIR" "sources"
# Copy the conf files
ynh_backup "/etc/nginx/conf.d/${domain}.d/${app}.conf" "nginx.conf"
#ynh_backup "/etc/php5/fpm/pool.d/${app}.conf" "php-fpm.conf"
# Dump the database
mysqldump -u "$dbuser" -p"$dbpass" --no-create-db "$dbname" > ./dump.sql

View file

@ -69,14 +69,6 @@ sed -i "s@#LOCATION#@${path:-/}@g" ../conf/nginx.conf
sed -i "s@#DESTDIR#@${DESTDIR}@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf "$nginx_conf"
# Copy and set php-fpm configuration
#phpfpm_conf="/etc/php5/fpm/pool.d/${app}.conf"
#sed -i "s@#POOLNAME#@${app}@g" ../conf/php-fpm.conf
#sed -i "s@#DESTDIR#@${DESTDIR}/@g" ../conf/php-fpm.conf
#sudo cp ../conf/php-fpm.conf "$phpfpm_conf"
#sudo chown root: $phpfpm_conf
#sudo chmod 644 $phpfpm_conf
# Save app settings
ynh_app_setting_set "$app" password "$password"
ynh_app_setting_set "$app" encrypt_key "$deskey"
@ -87,5 +79,4 @@ ynh_app_setting_set "$app" skipped_uris "/"
ynh_app_setting_set "$app" protected_uris "/admin/"
# Reload services
#sudo service php5-fpm restart || true
sudo service nginx reload || true

View file

@ -19,9 +19,7 @@ domain=$(ynh_app_setting_get $app domain)
# Delete app directory and configurations
sudo rm -rf "/var/www/${app}"
#sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf"
[[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf"
# Reload services
#sudo service php5-fpm restart || true
sudo service nginx reload || true

View file

@ -31,10 +31,6 @@ nginx_conf="/etc/nginx/conf.d/${domain}.d/${app}.conf"
[[ -f $nginx_conf ]] && ynh_die \
"The NGINX configuration already exists at '${nginx_conf}'.
You should safely delete it before restoring this app."
#phpfpm_conf="/etc/php5/fpm/pool.d/${app}.conf"
#[[ -f $phpfpm_conf ]] && ynh_die \
#"The PHP FPM configuration already exists at '${phpfpm_conf}'.
# You should safely delete it before restoring this app."
# Restore the app files and set permissions
sudo cp -a ./sources "$DESTDIR"
@ -46,8 +42,6 @@ ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ./dump.sql
# Restore configuration files
sudo cp -a ./nginx.conf "$nginx_conf"
#sudo cp -a ./php-fpm.conf "$phpfpm_conf"
# Reload services
#sudo service php5-fpm restart || true
sudo service nginx reload || true

View file

@ -50,18 +50,9 @@ sed -i "s@#LOCATION#@${path:-/}@g" ../conf/nginx.conf
sed -i "s@#DESTDIR#@${DESTDIR}@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf "$nginx_conf"
# Copy and set php-fpm configuration
#phpfpm_conf="/etc/php5/fpm/pool.d/${app}.conf"
#sed -i "s@#POOLNAME#@${app}@g" ../conf/php-fpm.conf
#sed -i "s@#DESTDIR#@${DESTDIR}/@g" ../conf/php-fpm.conf
#sudo cp ../conf/php-fpm.conf "$phpfpm_conf"
#sudo chown root: $phpfpm_conf
#sudo chmod 644 $phpfpm_conf
# Set SSOwat rules
ynh_app_setting_set "$app" skipped_uris "/"
ynh_app_setting_set "$app" protected_uris "/admin/"
# Reload services
#sudo service php5-fpm restart || true
sudo service nginx reload || true