1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minchat_ynh.git synced 2024-09-03 19:36:29 +02:00

[fix] change owner file & root install

This commit is contained in:
magikcypress 2017-05-31 14:04:02 +02:00
parent 95bbf97be9
commit b7fa5456f7
No known key found for this signature in database
GPG key ID: 3B3C7CD61957AC9A
3 changed files with 6 additions and 3 deletions

View file

@ -1,12 +1,12 @@
location __PATH__ { location __PATH__ {
alias __FINALPATH__; alias __FINALPATH__/;
index index.html index.php ; index index.html index.php ;
try_files $uri $uri/ index.php; try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) { location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.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; fastcgi_index index.php;
include fastcgi_params; include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user; fastcgi_param REMOTE_USER $remote_user;

View file

@ -62,7 +62,7 @@ extract_source() {
local DESTDIR=$1 local DESTDIR=$1
# retrieve and extract Minichat tarball # 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" \ sudo wget -q -O "$rc_tarball" "$MINCHAT_SOURCE_URL" \
|| ynh_die "Unable to download source tarball" || ynh_die "Unable to download source tarball"
echo "$MINCHAT_SOURCE_SHA256 $rc_tarball" | sha256sum -c >/dev/null \ echo "$MINCHAT_SOURCE_SHA256 $rc_tarball" | sha256sum -c >/dev/null \

View file

@ -44,6 +44,9 @@ ynh_nginx_config
# Create the php-fpm pool config # Create the php-fpm pool config
ynh_fpm_config ynh_fpm_config
# Change owner
sudo chown $app: -R $final_path
# Set ssowat config # Set ssowat config
if [ $is_public -eq 0 ] if [ $is_public -eq 0 ]
then then