Updated and fixed boot script
This commit is contained in:
parent
5f1dda283b
commit
e7c43aee91
Binary file not shown.
|
@ -241,7 +241,7 @@ step7(){
|
|||
|
||||
# (8) Set up automatic ssh server at start up #
|
||||
echo " (.) Emulate \`systemctl enable ssh.service\`";
|
||||
#sudo ln -fs /lib/systemd/system/ssh.service /mnt/etc/systemd/system/ssh.service;
|
||||
sudo ln -fs /lib/systemd/system/ssh.service /mnt/etc/systemd/system/sshd.service;
|
||||
|
||||
# (9) Define config alias with ssh-key #
|
||||
echo " (.) Define alias config";
|
||||
|
|
|
@ -6,4 +6,4 @@ export WIFI_PASS=" manon adrien ";
|
|||
|
||||
# SERVER SETTINGS
|
||||
export SERVER_HOSTNAME="xdrm.io";
|
||||
export SERVER_USERNAME="gw";
|
||||
export SERVER_USERNAME="satsd";
|
||||
|
|
|
@ -3,27 +3,24 @@
|
|||
# [1] first install (install source code)
|
||||
if [ -e /home/sats/satsd/first_install ]; then
|
||||
|
||||
git 2> /dev/null > /dev/null;
|
||||
|
||||
usegit=1;
|
||||
usegit=1;
|
||||
git > /dev/null 2> /dev/null || usegit=0;
|
||||
|
||||
test $? -ne 0 && usegit=0;
|
||||
# install source code
|
||||
if [ $usegit -eq 1 ]; then
|
||||
|
||||
# install source code
|
||||
if [ "$usegit" -eq 1 ]; then
|
||||
|
||||
git clone ssh://smmp-server/satsd/git /home/sats/satsd/source \
|
||||
&& rm /home/sats/satsd/first_install \
|
||||
|| exit;
|
||||
git clone ssh://smmp-server/satsd/git /home/sats/satsd/source \
|
||||
&& rm /home/sats/satsd/first_install \
|
||||
|| exit;
|
||||
|
||||
else
|
||||
else
|
||||
|
||||
# temporary replacement (without git)
|
||||
scp -r smmp-server:/satsd/scp/source /home/sats/satsd/ \
|
||||
&& rm /home/sats/satsd/first_install \
|
||||
|| exit;
|
||||
fi;
|
||||
|
||||
# temporary replacement (without git)
|
||||
scp -r smmp-server:/satsd/scp/source /home/sats/satsd/ \
|
||||
&& rm /home/sats/satsd/first_install \
|
||||
|| exit;
|
||||
fi;
|
||||
|
||||
fi;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue