File: screen.postrm

package info (click to toggle)
screen 4.8.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,208 kB
  • sloc: ansic: 40,067; sh: 1,779; makefile: 352; perl: 63
file content (20 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -e

if [ "$1" = purge ] || [ "$1" = remove ]; then
  rm -rf /run/screen
fi

if [ "$1" = purge ]; then
  rm -vf /etc/tmpfiles.d/screen-cleanup.conf

  # LP #1462692
  rm -f /lib/systemd/system/screen-cleanup.service
  rmdir -p --ignore-fail-on-non-empty /lib/systemd/system
fi

if [ "$1" = disappear ]; then
  remove-shell /usr/bin/screen || true
fi

#DEBHELPER#