diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 03:30:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 03:30:44 +0000 |
commit | 1d1b5c2a2854ce0385a89401c504711270c6f7a3 (patch) | |
tree | 045f1bf9d39fb409f8f9bc1a46ce2f8ee8c67908 /debian/screen.postinst | |
parent | Adding upstream version 4.9.1. (diff) | |
download | screen-1d1b5c2a2854ce0385a89401c504711270c6f7a3.tar.xz screen-1d1b5c2a2854ce0385a89401c504711270c6f7a3.zip |
Adding debian version 4.9.1-1.debian/4.9.1-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/screen.postinst | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/debian/screen.postinst b/debian/screen.postinst new file mode 100644 index 0000000..3c2d74f --- /dev/null +++ b/debian/screen.postinst @@ -0,0 +1,35 @@ +#!/bin/sh +set -e + +. /usr/share/debconf/confmodule + +if [ "$1" = configure ]; then + if ! test -d /run/screen; then + install -g utmp -m 0775 -d /run/screen + fi + perms="`stat -c%a /usr/bin/screen`" + override=/etc/tmpfiles.d/screen-cleanup.conf + if [ $perms -eq 4755 ]; then + chmod 0755 /run/screen + if [ ! -f $override ]; then + echo "# This file is generated by $0 upon package configuration" > $override + echo 'd /run/screen 0755 root utmp' >> $override + fi + elif [ $perms -eq 755 ]; then + chmod 1777 /run/screen + if [ ! -f $override ]; then + echo "# This file is generated by $0 upon package configuration" > $override + echo 'd /run/screen 1777 root utmp' >> $override + fi + fi + + # LP #1462692 + servicedir=/lib/systemd/system + servicefile=$servicedir/screen-cleanup.service + mkdir -p $servicedir + if [ ! -e $servicefile ]; then + ln -s /dev/null $servicefile + fi +fi + +#DEBHELPER# |