Fixed pi permissions in order to execute /home/sats/satsd/source/daemon script

This commit is contained in:
xdrm-brackets 2017-09-27 16:10:50 +02:00
parent 1556513bee
commit 40c1f82b26
1 changed files with 11 additions and 1 deletions

View File

@ -5,5 +5,15 @@ if [ ! -e /target/sync ]; then
exit 1;
fi;
# [1] Propagate script to DAEMON
# [1] Override permissions if not
sudo chown sats:pi /home/sats/satsd/source;
sudo chown sats:pi /home/sats/satsd/source/daemon;
sudo chown -R sats:pi /home/sats/satsd/log/;
sudo chmod 750 /home/sats/satsd/source;
sudo chmod 750 /home/sats/satsd/source/daemon;
sudo chmod -R 770 /home/sats/satsd/log/;
# [2] Propagate script to DAEMON
/bin/bash /home/sats/satsd/source/daemon | sudo -u sats tee -a /home/sats/satsd/log/daemon.log;