Merge "nodepool elements: create suse boot rc directory"

This commit is contained in:
Zuul 2021-04-12 07:02:25 +00:00 committed by Gerrit Code Review
commit 9ce1291e71

View File

@ -101,6 +101,11 @@ chown unbound /var/log/unbound.log
chmod 0644 /var/log/unbound.log chmod 0644 /var/log/unbound.log
if [[ "$DISTRO_NAME" =~ (opensuse) ]] ; then if [[ "$DISTRO_NAME" =~ (opensuse) ]] ; then
# NOTE(ianw) 2021-03-17 : something about building the suse chroot
# has changed and /etc/init.d/ is no longer available. However,
# it rc-local.service (part of systemd) still runs. We should
# probably convert this all to a systemd job; but for now...
mkdir -p /etc/init.d
rclocal=/etc/init.d/boot.local rclocal=/etc/init.d/boot.local
elif [[ "${DISTRO_NAME}" =~ "gentoo" ]]; then elif [[ "${DISTRO_NAME}" =~ "gentoo" ]]; then
rclocal=/etc/local.d/unbound.start rclocal=/etc/local.d/unbound.start