From b39bd55e3fc6f55c2093199e5d1ebb7de6d83414 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 24 Jul 2017 18:37:54 +0200 Subject: [PATCH] [fix] minfix --- clone/utility/sats-install | 12 ++++++------ clone/utility/sats-sync.service | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/clone/utility/sats-install b/clone/utility/sats-install index ccadf49..e30c229 100644 --- a/clone/utility/sats-install +++ b/clone/utility/sats-install @@ -51,18 +51,18 @@ test $? -eq 0 \ || failexit; -BRANCH=$(sudo cat /home/sats/satsd/conf/machine.branch) > /dev/null; +BRANCH=$(sudo -u sats cat /home/sats/satsd/conf/machine.branch) > /dev/null; # (2) With git if installed # slog " * 7. Cloning source"; if `sudo -u sats test -d /home/sats/satsd/source`; then - slog " > done (already cloned)"; -else - sudo -u sats git clone -b $BRANCH ssh://smmp-server/satsd/git /home/sats/satsd/source \ - && slog " > done" \ - || failexit; + sudo rm -r /home/sats/satsd/source; fi; +sudo -u sats git clone -b $BRANCH ssh://smmp-server/satsd/git /home/sats/satsd/source \ + && slog " > done" \ + || failexit; + # (2) Enable SPI device # diff --git a/clone/utility/sats-sync.service b/clone/utility/sats-sync.service index 06af576..39d9913 100644 --- a/clone/utility/sats-sync.service +++ b/clone/utility/sats-sync.service @@ -11,4 +11,4 @@ RemainAfterExit=yes User=sats Group=sats -ExecStart=/usr/sbin/test -e /target/sync \ No newline at end of file +ExecStart=/usr/bin/test -e /target/sync \ No newline at end of file