diff --git a/conf/nginx.conf b/conf/nginx.conf index 886817a..2155190 100644 --- a/conf/nginx.conf +++ b/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; diff --git a/scripts/_common.sh b/scripts/_common.sh index 6a73103..2d8cdfc 100644 --- a/scripts/_common.sh +++ b/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" diff --git a/scripts/install b/scripts/install index 7cba03e..4bdd3f7 100644 --- a/scripts/install +++ b/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 diff --git a/scripts/restore b/scripts/restore index fe93249..e5ae118 100644 --- a/scripts/restore +++ b/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 diff --git a/scripts/upgrade b/scripts/upgrade index 40ab91e..c54e8c7 100644 --- a/scripts/upgrade +++ b/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