From d8c28dd9d30dd67198c14a8a3411a03d99119697 Mon Sep 17 00:00:00 2001 From: Steve Grimes <74994271+sgrimes-irc@users.noreply.github.com> Date: Wed, 28 Apr 2021 09:38:09 -0700 Subject: [PATCH] Update server_setup.sh I believe that the setfacl line needs to be moved below the section where the folder structure gets built - I've revised the steps twice and this is the way I've been able to make it work. Also commented out the redundant cd /apps line. --- ch08-deployment/server/scripts/server_setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ch08-deployment/server/scripts/server_setup.sh b/ch08-deployment/server/scripts/server_setup.sh index 012f85f..b700692 100644 --- a/ch08-deployment/server/scripts/server_setup.sh +++ b/ch08-deployment/server/scripts/server_setup.sh @@ -24,7 +24,6 @@ ufw enable apt install acl -y useradd -M apiuser usermod -L apiuser -setfacl -m u:apiuser:rwx /apps/logs/weather_api # Web app file structure @@ -34,7 +33,8 @@ mkdir /apps/logs mkdir /apps/logs/weather_api mkdir /apps/logs/weather_api/app_log # chmod 777 /apps/logs/weather_api -cd /apps +setfacl -m u:apiuser:rwx /apps/logs/weather_api +# cd /apps # Create a virtual env for the app. cd /apps