16 lines
302 B
Bash
16 lines
302 B
Bash
#!/bin/sh
|
|
|
|
# [1] first install (install source code)
|
|
if [ -e /home/sats/satsd/first_install ]; then
|
|
|
|
# install source code
|
|
git clone ssh://smmp-server/satsd /home/sats/satsd/source \
|
|
&& rm /home/sats/satsd/first_install \
|
|
|| exit;
|
|
|
|
fi
|
|
|
|
|
|
# [2] Propagate script
|
|
sh /home/sats/satsd/source/boot $*;
|