From 40c1f82b267c337877051768d7343acea40802e8 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 27 Sep 2017 16:10:50 +0200 Subject: [PATCH] Fixed pi permissions in order to execute /home/sats/satsd/source/daemon script --- clone/utility/sats-loop | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/clone/utility/sats-loop b/clone/utility/sats-loop index 5f6738c..d2de912 100644 --- a/clone/utility/sats-loop +++ b/clone/utility/sats-loop @@ -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; \ No newline at end of file