This commit is contained in:
2024-08-27 13:18:49 +02:00
parent 521d2bae02
commit 32df69286e

View File

@@ -38,7 +38,7 @@ SCHEDULER_SERVICEFILE_GENERATE_TEST=${SCHEDULER_SERVICEFILE_GENERATE_TEST:-false
check_installer_key() { check_installer_key() {
mkdir -p /root/.ssh mkdir -p /root/.ssh
if [ -f /etc/user/data/installer ]; then if [ -f /etc/user/data/installer ]; then
if [ -f /root/ssh/id_rsa ]; then # remove symlink if exists if [ -f /root/.ssh/id_rsa ]; then # remove symlink if exists
rm /root/.ssh/id_rsa rm /root/.ssh/id_rsa
fi; fi;
ln -s /etc/user/data/installer /root/.ssh/id_rsa ln -s /etc/user/data/installer /root/.ssh/id_rsa