1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/emailpoubelle_ynh.git synced 2024-09-03 18:26:29 +02:00

update php conf / Remove unwanted remove steps

This commit is contained in:
Krakinou 2019-05-19 18:16:58 +02:00
parent 9d7922e93d
commit 982f9ca531
2 changed files with 14 additions and 9 deletions

View file

@ -1,4 +1,4 @@
location __PATH__/ {
location __PATH__ {
# Path to source
alias __FINALPATH__/ ;
@ -10,6 +10,16 @@ location __PATH__/ {
### PHP configuration
index www/index.php;
try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;

View file

@ -69,19 +69,14 @@ ynh_remove_nginx_config
# Remove a cron file
ynh_secure_remove --file="/etc/cron.d/$app"
# Remove a directory securely
ynh_secure_remove --file="/etc/$app/"
# Remove the log files
ynh_secure_remove --file="/var/log/$app/"
sleep 1s
#=================================================
#removing aliases
#=================================================
ynh_replace_string "/devnull:\/dev\/null/d" /etc/aliases
sleep 1s
newaliases
sleep 1s
# Remove hook for postfix conf
ynh_secure_remove "/usr/share/yunohost/hooks/conf_regen/98-postfix_emailpoubelle"