From 3823520830bd066a361e379f4244d3851ab5d180 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 13 May 2021 16:17:34 +0200 Subject: [PATCH] Fix permissions in install --- scripts/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 2643c4f..1af354d 100644 --- a/scripts/install +++ b/scripts/install @@ -215,9 +215,10 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path mkdir -pm 0755 ${final_path}/ cp -a ../sources/* ${final_path}/ -chown -R $app: ${final_path}/ +chown -R $app:$app ${final_path}/ chmod -R 0644 ${final_path}/* find ${final_path}/ -type d -exec chmod +x {} \; +chmod o-rwx ${final_path} #================================================= # NGINX CONFIGURATION @@ -249,6 +250,7 @@ echo "DAEMON_CONF=/etc/hostapd/hostapd.conf" > /etc/default/hostapd # Apply configuration ynh_add_config --template="config.php.tpl" --destination="$final_path/config.php" +chown $app:$app "$final_path/config.php" # Set default inits # The boot order of these services are important, so they are disabled by default