You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
539 B

post_install() {
if ! getent group log >/dev/null; then
groupadd -r -g 19 log
fi
if ! getent passwd s6log >/dev/null; then
useradd -u 19 -g 19 -d / -c "S6 log user" -s /usr/bin/nologin s6log
fi
mv /etc/66/{halt,poweroff,reboot,shutdown} /usr/bin
mv /etc/66/init /usr/bin/66-linux-init
}
post_upgrade() {
post_install
printf "%s\n" "==> WARNING: According to the skarnet recommendations about the s6-svscan and skalibs library changes, you need to reboot after your 66 package upgrade."
}