From b7fa5456f758446a0a8f0ea88efe21669a56d450 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Wed, 31 May 2017 14:04:02 +0200 Subject: [PATCH] [fix] change owner file & root install --- conf/nginx.conf | 4 ++-- scripts/_common | 2 +- scripts/install | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 4aca440..998914e 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,12 +1,12 @@ location __PATH__ { - alias __FINALPATH__; + alias __FINALPATH__/; index index.html index.php ; try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; - fastcgi_pass unix:/var/run/php5-fpm.sock; + fastcgi_pass unix:/var/run/php5-fpm-__NAME__.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param REMOTE_USER $remote_user; diff --git a/scripts/_common b/scripts/_common index 0611a9f..734d05a 100644 --- a/scripts/_common +++ b/scripts/_common @@ -62,7 +62,7 @@ extract_source() { local DESTDIR=$1 # retrieve and extract Minichat tarball - rc_tarball="${DESTDIR}/privatebin.tar.gz" + rc_tarball="${DESTDIR}/master.tar.gz" sudo wget -q -O "$rc_tarball" "$MINCHAT_SOURCE_URL" \ || ynh_die "Unable to download source tarball" echo "$MINCHAT_SOURCE_SHA256 $rc_tarball" | sha256sum -c >/dev/null \ diff --git a/scripts/install b/scripts/install index 62ffb29..86ceb6f 100644 --- a/scripts/install +++ b/scripts/install @@ -44,6 +44,9 @@ ynh_nginx_config # Create the php-fpm pool config ynh_fpm_config +# Change owner +sudo chown $app: -R $final_path + # Set ssowat config if [ $is_public -eq 0 ] then