Implemented ssh activation

This commit is contained in:
Kevin Frantz 2018-05-07 13:16:01 +02:00
parent da5119bceb
commit 7d7b17e8ab

View File

@ -149,6 +149,8 @@ if [ "$user" != "" ] && [ -f "$ssh_key_source" ]
cat "$ssh_key_source" > "$ssh_key_target" cat "$ssh_key_source" > "$ssh_key_target"
chown -R 1000 "$rootpath/home/alarm/.ssh" chown -R 1000 "$rootpath/home/alarm/.ssh"
chmod -R 400 "$rootpath/home/alarm/.ssh" chmod -R 400 "$rootpath/home/alarm/.ssh"
echo "SSH File wird angelegt..."
echo "" > "$bootpath/ssh"
fi fi
echo "Script rauemt das Verzeichnis auf..." echo "Script rauemt das Verzeichnis auf..."