File: /var/lib/dpkg/info/inithooks.postinst
#!/bin/sh
set -e
mkdir -p /var/run/turnkey-init-fence
if [ -f /etc/default/turnkey-init-fence ]; then
RUNAS=$(sed -n 's/^RUNAS=//p' /etc/default/turnkey-init-fence)
if [ -n "$RUNAS" ]; then
chown -R $RUNAS /var/run/turnkey-init-fence
fi
fi
chmod 755 /usr/lib/inithooks/bin/inithooks_cache.py
# Automatically added by dh_python3
if command -v py3compile >/dev/null 2>&1; then
py3compile -p inithooks
fi
if command -v pypy3compile >/dev/null 2>&1; then
pypy3compile -p inithooks || true
fi
if command -v py3compile >/dev/null 2>&1; then
py3compile -p inithooks /usr/lib/inithooks
fi
if command -v pypy3compile >/dev/null 2>&1; then
pypy3compile -p inithooks /usr/lib/inithooks || true
fi
# End automatically added section
exit 0