summaryrefslogtreecommitdiffstats
path: root/autoscripts/postinst-init-tmpfiles
blob: f2582933bc548a09f1920f5d2d91c9035825a38e (plain)
1
2
3
4
5
6
7
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
	# In case this system is running systemd, we need to ensure that all
	# necessary tmpfiles (if any) are created before starting.
	if [ -d /run/systemd/system ] ; then
		systemd-tmpfiles --create #TMPFILES# >/dev/null || true
	fi
fi