freebsd-ports/net-mgmt/triton-guesttools/files/patch-lib_smartdc_set-root-authorized-keys
2017-11-15 22:43:20 +00:00

11 lines
484 B
Text

--- lib/smartdc/set-root-authorized-keys.orig 2017-05-22 19:41:07 UTC
+++ lib/smartdc/set-root-authorized-keys
@@ -7,7 +7,7 @@
# By default this script is called on each boot
# load common functions and vars
-. /lib/smartdc/common.lib
+. %%PREFIX%%/lib/smartdc/common.lib
if [[ ! -f /root/.ssh/authorized_keys ]]; then
authorized_keys=$($MDATA_GET root_authorized_keys | awk '{ sub(/(ssh-rsa )/,"\n&"); print }' | awk '{ sub(/(ssh-dss )/,"\n&"); print }' 2>>/dev/console)