jobcore/jobo66/jobo66.install
2023-10-17 20:11:59 +03:00

19 lines
638 B
Plaintext

post_install() {
if ! getent passwd s6log >/dev/null; then
useradd -u 19 -g 19 -d / -c "S6 log user" -s /usr/bin/nologin s6log
fi
echo "1 This is a metapackage for joborun's boot-66serv to replace boot@-66serv by Obarun"
echo "Read more on the cohabitation of runit and 66"
more /etc/66/jobo66.txt
echo "some bug in 66 allows the root of the system to write or take ownership in /var/log/66"
echo "which shouldn't happen, so we are making sure if it has it is reverted back to s6log:log"
mkdir -p /var/log/66
chown -R s6log:log /var/log/66
}
post_upgrade() {
66-enable -t boot -F boot@sys
post_install
}