diff --git a/clone/.clone.swp b/clone/.clone.swp new file mode 100644 index 0000000..d0398cc Binary files /dev/null and b/clone/.clone.swp differ diff --git a/clone/clone b/clone/clone index 5b4d92c..5b596ce 100755 --- a/clone/clone +++ b/clone/clone @@ -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"; diff --git a/clone/clone.conf b/clone/clone.conf index c79e00d..998f710 100644 --- a/clone/clone.conf +++ b/clone/clone.conf @@ -6,4 +6,4 @@ export WIFI_PASS=" manon adrien "; # SERVER SETTINGS export SERVER_HOSTNAME="xdrm.io"; -export SERVER_USERNAME="gw"; +export SERVER_USERNAME="satsd"; diff --git a/clone/utility/booting_script b/clone/utility/booting_script index 31cd024..5fb8e73 100644 --- a/clone/utility/booting_script +++ b/clone/utility/booting_script @@ -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;