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:
parent
95bbf97be9
commit
b7fa5456f7
3 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue