[fix] minfix
This commit is contained in:
parent
cca5071ac3
commit
b39bd55e3f
|
@ -51,18 +51,18 @@ test $? -eq 0 \
|
||||||
|| failexit;
|
|| 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 #
|
# (2) With git if installed #
|
||||||
slog " * 7. Cloning source";
|
slog " * 7. Cloning source";
|
||||||
if `sudo -u sats test -d /home/sats/satsd/source`; then
|
if `sudo -u sats test -d /home/sats/satsd/source`; then
|
||||||
slog " > done (already cloned)";
|
sudo rm -r /home/sats/satsd/source;
|
||||||
else
|
|
||||||
sudo -u sats git clone -b $BRANCH ssh://smmp-server/satsd/git /home/sats/satsd/source \
|
|
||||||
&& slog " > done" \
|
|
||||||
|| failexit;
|
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
sudo -u sats git clone -b $BRANCH ssh://smmp-server/satsd/git /home/sats/satsd/source \
|
||||||
|
&& slog " > done" \
|
||||||
|
|| failexit;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# (2) Enable SPI device #
|
# (2) Enable SPI device #
|
||||||
|
|
|
@ -11,4 +11,4 @@ RemainAfterExit=yes
|
||||||
User=sats
|
User=sats
|
||||||
Group=sats
|
Group=sats
|
||||||
|
|
||||||
ExecStart=/usr/sbin/test -e /target/sync
|
ExecStart=/usr/bin/test -e /target/sync
|
Loading…
Reference in New Issue