Browse Source

Fix rights

yalh76 3 years ago
parent
commit
c206729f62
5 changed files with 5 additions and 5 deletions
  1. 1 1
      conf/nginx.conf
  2. 1 1
      scripts/_common.sh
  3. 1 1
      scripts/install
  4. 1 1
      scripts/restore
  5. 1 1
      scripts/upgrade

+ 1 - 1
conf/nginx.conf

@@ -27,7 +27,7 @@ location __PATH__/ {
   }
 
   index index.php;
-  
+
   # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
   client_max_body_size 10G;
 

+ 1 - 1
scripts/_common.sh

@@ -4,7 +4,7 @@
 # COMMON VARIABLES
 #=================================================
 
-pkg_dependencies="sipcalc hostapd iptables iw dnsmasq"
+pkg_dependencies="sipcalc hostapd iptables iw dnsmasq kmod"
 nonfree_firmware_packages="firmware-atheros firmware-realtek firmware-ralink firmware-libertas atmel-firmware firmware-zd1211"
 free_firmware_packages="firmware-ath9k-htc"
 

+ 1 - 1
scripts/install

@@ -221,7 +221,7 @@ cp -a ../sources/* ${final_path}/
 chmod -R 0644 ${final_path}/*
 chmod 750 "$final_path"
 chmod -R o-rwx "$final_path"
-chown -R $app:$app "$final_path"
+chown -R $app:www-data "$final_path"
 
 #=================================================
 # NGINX CONFIGURATION

+ 1 - 1
scripts/restore

@@ -103,7 +103,7 @@ ynh_script_progression --message="Restoring user rights..."
 chmod -R 0644 ${final_path}/*
 chmod 750 "$final_path"
 chmod -R o-rwx "$final_path"
-chown -R $app:$app "$final_path"
+chown -R $app:www-data "$final_path"
 
 #=================================================
 # RESTORE THE PHP-FPM CONFIGURATION

+ 1 - 1
scripts/upgrade

@@ -113,7 +113,7 @@ fi
 chmod -R 0644 ${final_path}/*
 chmod 750 "$final_path"
 chmod -R o-rwx "$final_path"
-chown -R $app:$app "$final_path"
+chown -R $app:www-data "$final_path"
 
 #=================================================
 # NGINX CONFIGURATION