diff options
| author | Hongjiang Zhang <honzhan@microsoft.com> | 2017-02-24 03:47:59 (GMT) |
|---|---|---|
| committer | Hongjiang Zhang <honzhan@microsoft.com> | 2017-02-24 03:47:59 (GMT) |
| commit | f7992aea296be75ce511c6508707bdd6f5a885ee (patch) | |
| tree | ca1713150220e0958803ee7fda7c108ee78174e1 | |
| parent | b7e322cffbf138c01472f6dfdecd912f1e4c31af (diff) | |
fix the configuration issue on FreeBSD
| -rwxr-xr-x | setup.py | 1 | ||||
| -rwxr-xr-x | tools/build-on-freebsd | 6 |
2 files changed, 3 insertions, 4 deletions
@@ -89,7 +89,6 @@ LIB = "/lib" if os.uname()[0] == 'FreeBSD': USR = "/usr/local" USR_LIB_EXEC = "/usr/local/lib" - ETC = "/usr/local/etc" elif os.path.isfile('/etc/redhat-release'): USR_LIB_EXEC = "/usr/libexec" diff --git a/tools/build-on-freebsd b/tools/build-on-freebsd index 8436498..bdf13ca 100755 --- a/tools/build-on-freebsd +++ b/tools/build-on-freebsd @@ -3,7 +3,7 @@ # installing cloud-init. This script takes care of building and installing. It # will optionally make a first run at the end. -fail() { echo "FAILED:" "$@" 1>&2; exit 1; } +warn() { echo "WARNING:" "$@" 1>&2; } # Check dependencies: depschecked=/tmp/c-i.dependencieschecked @@ -27,7 +27,7 @@ pkgs=" python sudo " -[ -f "$depschecked" ] || pkg install ${pkgs} || fail "install packages" +[ -f "$depschecked" ] || pkg install ${pkgs} || warn "install packages" touch $depschecked # Required but unavailable port/pkg: py27-jsonpatch py27-jsonpointer @@ -38,7 +38,7 @@ python setup.py build python setup.py install -O1 --skip-build --prefix /usr/local/ --init-system sysvinit_freebsd # Install the correct config file: -cp config/cloud.cfg-freebsd /usr/local/etc/cloud/cloud.cfg +cp config/cloud.cfg-freebsd /etc/cloud/cloud.cfg # Enable cloud-init in /etc/rc.conf: sed -i.bak -e "/cloudinit_enable=.*/d" /etc/rc.conf |
