[fix] minfix

This commit is contained in:
xdrm-brackets 2017-07-24 18:37:54 +02:00
parent cca5071ac3
commit b39bd55e3f
2 changed files with 7 additions and 7 deletions

View File

@ -51,17 +51,17 @@ 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 fi;
sudo -u sats git clone -b $BRANCH ssh://smmp-server/satsd/git /home/sats/satsd/source \ sudo -u sats git clone -b $BRANCH ssh://smmp-server/satsd/git /home/sats/satsd/source \
&& slog " > done" \ && slog " > done" \
|| failexit; || failexit;
fi;

View File

@ -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