diff --git a/entry.sh b/entry.sh index d8f4e33..26c734b 100755 --- a/entry.sh +++ b/entry.sh @@ -161,14 +161,14 @@ function second_stage(){ echo second_stage done export -f user_install - su jedi -l -c "bash -c user_install" + su jedi -c "bash -c user_install" } function user_install(){ set -e - export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" + export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i/home/jedi/.ssh/id_rsa" #dbus-launch dconf write /org/mate/desktop/interface/gtk-theme "'Materia-dark'" #echo $? @@ -179,7 +179,9 @@ function user_install(){ #dbus-launch dconf write /org/mate/desktop/peripherals/mouse/cursor-theme "'Adwaita'" #echo $? - rsync -a /root/unbox_data/secrets/SSH/ .ssh/ + cd + + rsync -a /root/unbox_data/secrets/SSH/ /home/jedi/.ssh/ ssh git@git.neulandlabor.de -p 2222 || true