mirror of
https://github.com/YunoHost-Apps/flarum_ynh.git
synced 2024-09-03 18:36:24 +02:00
Adjustments on access permissions
This commit is contained in:
parent
84a7b51d41
commit
3b11c21df4
1 changed files with 3 additions and 1 deletions
|
@ -26,7 +26,8 @@ sudo cp -a ../sources/. $src_path
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
# you may need to make some file and/or directory writeable by www-data (nginx user)
|
# you may need to make some file and/or directory writeable by www-data (nginx user)
|
||||||
sudo chown -R root: $src_path
|
sudo chown -R www-data:www-data $src_path
|
||||||
|
sudo chmod -R 755 $src_path
|
||||||
|
|
||||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||||
nginx_conf=../conf/nginx.conf
|
nginx_conf=../conf/nginx.conf
|
||||||
|
@ -36,6 +37,7 @@ sed -i "s@YNH_WWW_ALIAS@$src_path/@g" $nginx_conf
|
||||||
#
|
#
|
||||||
sed -i "s@YNH_WWW_APP@$app@g" $nginx_conf
|
sed -i "s@YNH_WWW_APP@$app@g" $nginx_conf
|
||||||
sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
|
sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
|
sudo chmod 644 /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
|
|
||||||
### PHP ###
|
### PHP ###
|
||||||
# If a dedicated php-fpm process is used:
|
# If a dedicated php-fpm process is used:
|
||||||
|
|
Loading…
Add table
Reference in a new issue