We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7614034 commit 2aed45fCopy full SHA for 2aed45f
misc/build.func
@@ -827,6 +827,7 @@ build_container() {
827
export PASSWORD="$PW"
828
export VERBOSE="$VERB"
829
export SSH_ROOT="${SSH}"
830
+ export SSH_AUTHORIZED_KEY
831
export CTID="$CT_ID"
832
export CTTYPE="$CT_TYPE"
833
export PCT_OSTYPE="$var_os"
misc/install.func
@@ -255,4 +255,11 @@ EOF
255
fi
256
echo "bash -c \"\$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/${app}.sh)\"" >/usr/bin/update
257
chmod +x /usr/bin/update
258
+
259
+ if [[ -n "${SSH_AUTHORIZED_KEY}" ]]; then
260
+ mkdir -p /root/.ssh
261
+ echo "${SSH_AUTHORIZED_KEY}" > /root/.ssh/authorized_keys
262
+ chmod 700 /root/.ssh
263
+ chmod 600 /root/.ssh/authorized_keys
264
+ fi
265
}
0 commit comments