update: inverter a ordem do chown
This commit is contained in:
parent
4baca11562
commit
51b3d99985
1 changed files with 3 additions and 3 deletions
6
run.sh
6
run.sh
|
|
@ -498,10 +498,10 @@ fi
|
||||||
# Rodar o sistema
|
# Rodar o sistema
|
||||||
# Start service
|
# Start service
|
||||||
run_service() {
|
run_service() {
|
||||||
chmod -R 751 /home/$USERNAME
|
chown -R $USERNAME:$USERNAME /home/$USERNAME
|
||||||
chmod -R 755 /home/$USERNAME/$APP
|
chmod -R 751 /home/$USERNAME &&
|
||||||
|
chmod -R 755 /home/$USERNAME/$APP &&
|
||||||
chmod 664 /etc/systemd/system/$SERVICE &&
|
chmod 664 /etc/systemd/system/$SERVICE &&
|
||||||
chown -R $USERNAME:$USERNAME /home/$USERNAME &&
|
|
||||||
systemctl daemon-reload &&
|
systemctl daemon-reload &&
|
||||||
systemctl enable nginx &&
|
systemctl enable nginx &&
|
||||||
systemctl start nginx &&
|
systemctl start nginx &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue