summaryrefslogtreecommitdiff
path: root/sysvinit/freebsd/cloudconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysvinit/freebsd/cloudconfig')
-rwxr-xr-xsysvinit/freebsd/cloudconfig6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysvinit/freebsd/cloudconfig b/sysvinit/freebsd/cloudconfig
index 985fb259..44c216b3 100755
--- a/sysvinit/freebsd/cloudconfig
+++ b/sysvinit/freebsd/cloudconfig
@@ -6,6 +6,8 @@
. /etc/rc.subr
+export CLOUD_CFG=/usr/local/etc/cloud/cloud.cfg
+
name="cloudconfig"
command="/usr/local/bin/cloud-init"
start_cmd="cloudconfig_start"
@@ -14,8 +16,6 @@ rcvar="cloudinit_enable"
start_precmd="cloudinit_override"
start_cmd="cloudconfig_start"
-: ${cloudinit_config:="/usr/local/etc/cloud/cloud.cfg"}
-
cloudinit_override()
{
# If there exist sysconfig/defaults variable override files use it...
@@ -27,7 +27,7 @@ cloudinit_override()
cloudconfig_start()
{
echo "${command} starting"
- ${command} -f ${cloudinit_config} modules --mode config
+ ${command} modules --mode config
}
load_rc_config $name