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 #
|
# (8) Set up automatic ssh server at start up #
|
||||||
echo " (.) Emulate \`systemctl enable ssh.service\`";
|
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 #
|
# (9) Define config alias with ssh-key #
|
||||||
echo " (.) Define alias config";
|
echo " (.) Define alias config";
|
||||||
|
|
|
@ -6,4 +6,4 @@ export WIFI_PASS=" manon adrien ";
|
||||||
|
|
||||||
# SERVER SETTINGS
|
# SERVER SETTINGS
|
||||||
export SERVER_HOSTNAME="xdrm.io";
|
export SERVER_HOSTNAME="xdrm.io";
|
||||||
export SERVER_USERNAME="gw";
|
export SERVER_USERNAME="satsd";
|
||||||
|
|
|
@ -3,14 +3,11 @@
|
||||||
# [1] first install (install source code)
|
# [1] first install (install source code)
|
||||||
if [ -e /home/sats/satsd/first_install ]; then
|
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
|
# install source code
|
||||||
if [ "$usegit" -eq 1 ]; then
|
if [ $usegit -eq 1 ]; then
|
||||||
|
|
||||||
git clone ssh://smmp-server/satsd/git /home/sats/satsd/source \
|
git clone ssh://smmp-server/satsd/git /home/sats/satsd/source \
|
||||||
&& rm /home/sats/satsd/first_install \
|
&& rm /home/sats/satsd/first_install \
|
||||||
|
|
Loading…
Reference in New Issue