disable all services at boot to test troubles

This commit is contained in:
xdrm-brackets 2017-01-25 13:55:14 +01:00
parent 622c97a106
commit cfa9a9e0c1
4 changed files with 27 additions and 10 deletions

Binary file not shown.

View File

@ -181,7 +181,7 @@ step7(){
test ! -e ./server/authorized_keys && touch ./server/authorized_keys;
cat ./tmp/id_ecdsa.pub >> ./server/authorized_keys;
# (3) Create ssh file system #
# (3) Create ssh file system #
echo " (.) Init ssh folder (/home/sats/.ssh)";
sudo mkdir -p /mnt/home/sats/.ssh;
@ -209,7 +209,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/ssh.service;
# (9) Define config alias with ssh-key #
echo " (.) Define alias config";
@ -289,7 +289,7 @@ step10(){
# (4) Enable startup service unit #
echo " (.) Emulate \`systemctl enable sats.service\`";
sudo mkdir -p /mnt/etc/systemd/system/multi-user.target.wants;
sudo ln -fs /lib/systemd/system/sats.service /mnt/etc/systemd/system/multi-user.target.wants/sats.service;
#sudo ln -fs /lib/systemd/system/sats.service /mnt/etc/systemd/system/multi-user.target.wants/sats.service;
# (5) Adjust permissions #
echo " (.) Adjust permissions";

View File

@ -3,13 +3,29 @@
# [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;
git 2> /dev/null > /dev/null;
fi
usegit=1;
test $? -ne 0 && usegit=0;
# 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;
else
# temporary replacement (without git)
scp -r smmp-server:/satsd/scp/source /home/sats/satsd/ \
&& rm /home/sats/satsd/first_install \
|| exit;
fi;
fi;
# [2] Propagate script
sh /home/sats/satsd/source/boot $*;
sh /home/sats/satsd/source/boot $* 2>> /home/sats/satsd/log/boot.log >> /home/sats/satsd/log/boot.log;

View File

@ -1,2 +1,3 @@
pi:$6$k0vFWRoG$bEBdFcFBWw2fLEA.5LsVKOtLWdWSkZMnEikqOG4jHCneRrWEBnEt6.ROe60ggdA7DbdU.l2ZO35WFvi3q6Ays/:17130:0:99999:7:::
sats:$6$NvC.M5Yz$IRr1rOWhgSQNstmaZK9VLHJzqHebJaEBDaro8M6WyeWQjdLyas4cg5qDwziTVLBC9CI22sPGY.us8saZW0xMl0:17185:0:999999:7::
sats:$6$k0ddNARW$TDcFuts/WK62gt5QIlFCqN.4MSwj4Q3SsJZ6tUvcbjZXjt2TsiVdkkv9PgO/0yR.on8.Aj2/.WHHU28GXwdo51:17185:0:999999:7::