From 51b3d99985aec111820fb1d588efd88d1cef9f9f Mon Sep 17 00:00:00 2001 From: Lucas F Date: Mon, 24 Jul 2023 14:45:41 -0300 Subject: [PATCH] update: inverter a ordem do chown --- run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index e55333a..f7e9036 100755 --- a/run.sh +++ b/run.sh @@ -498,10 +498,10 @@ fi # Rodar o sistema # Start service run_service() { - chmod -R 751 /home/$USERNAME - chmod -R 755 /home/$USERNAME/$APP + chown -R $USERNAME:$USERNAME /home/$USERNAME + chmod -R 751 /home/$USERNAME && + chmod -R 755 /home/$USERNAME/$APP && chmod 664 /etc/systemd/system/$SERVICE && - chown -R $USERNAME:$USERNAME /home/$USERNAME && systemctl daemon-reload && systemctl enable nginx && systemctl start nginx &&