mirror of https://github.com/k3s-io/k3s
AWS: Don't use policy-rc.d to prevent starting daemons until we're ready
It isn't requiredpull/6/head
parent
ffb0e7f9b8
commit
23b1a22203
|
@ -66,19 +66,6 @@ install-salt() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Based on
|
|
||||||
# https://major.io/2014/06/26/install-debian-packages-without-starting-daemons/
|
|
||||||
# We do this to prevent Salt from starting the salt-minion
|
|
||||||
# daemon. The other packages don't have relevant daemons. (If you
|
|
||||||
# add a package that needs a daemon started, add it to a different
|
|
||||||
# list.)
|
|
||||||
cat > /usr/sbin/policy-rc.d <<EOF
|
|
||||||
#!/bin/sh
|
|
||||||
echo "Salt shall not start." >&2
|
|
||||||
exit 101
|
|
||||||
EOF
|
|
||||||
chmod 0755 /usr/sbin/policy-rc.d
|
|
||||||
|
|
||||||
for deb in "${DEBS[@]}"; do
|
for deb in "${DEBS[@]}"; do
|
||||||
echo "== Installing ${deb}, ignore dependency complaints (will fix later) =="
|
echo "== Installing ${deb}, ignore dependency complaints (will fix later) =="
|
||||||
dpkg --skip-same-version --force-depends -i "${deb}"
|
dpkg --skip-same-version --force-depends -i "${deb}"
|
||||||
|
@ -91,8 +78,6 @@ EOF
|
||||||
echo sleep 5
|
echo sleep 5
|
||||||
done
|
done
|
||||||
|
|
||||||
rm /usr/sbin/policy-rc.d
|
|
||||||
|
|
||||||
# Log a timestamp
|
# Log a timestamp
|
||||||
echo "== Finished installing Salt =="
|
echo "== Finished installing Salt =="
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue