[fix] minfix
This commit is contained in:
parent
cca5071ac3
commit
b39bd55e3f
|
@ -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;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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