mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
22 lines
826 B
Text
22 lines
826 B
Text
--- usr/share/google/first-boot.orig 2014-12-24 22:40:30 UTC
|
|
+++ usr/share/google/first-boot
|
|
@@ -31,7 +31,7 @@ function log() {
|
|
|
|
function get_instance_id() {
|
|
# Do not retry to get the metadata value on failures.
|
|
- MDS_TRIES=1 ${PREFIX}/usr/share/google/get_metadata_value id 2>/dev/null
|
|
+ MDS_TRIES=1 ${PREFIX}%%PREFIX%%/share/google/get_metadata_value id 2>/dev/null
|
|
}
|
|
|
|
# Output the instance id.
|
|
@@ -80,8 +80,8 @@ log "Running first-boot"
|
|
declare -r INSTANCE_ID=$(cat ${INSTANCE_FILE})
|
|
|
|
# Regenerate host keys for ssh.
|
|
-if [[ -x ${PREFIX}/usr/share/google/regenerate-host-keys ]]; then
|
|
- ${PREFIX}/usr/share/google/regenerate-host-keys
|
|
+if [[ -x ${PREFIX}%%PREFIX%%/share/google/regenerate-host-keys ]]; then
|
|
+ ${PREFIX}%%PREFIX%%/share/google/regenerate-host-keys
|
|
fi
|
|
|
|
# Make a per-instance data directory.
|