File: postrm

package info (click to toggle)
chrome-gnome-shell 10.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 1,440 kB
  • sloc: python: 444; sh: 18; makefile: 11
file content (20 lines) | stat: -rw-r--r-- 425 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

#DEBHELPER#

case "$1" in
    purge|remove)

    # Avoid a piuparts error. See https://bugs.debian.org/888549
    rm -f /etc/opt/chrome/native-messaging-hosts/org.gnome.chrome_gnome_shell.json
    for dir in /etc/opt/chrome/native-messaging-hosts /etc/opt/chrome; do
        if [ -d "$dir" ]; then
            rmdir --ignore-fail-on-non-empty "$dir"
        fi
    done
    mkdir -p /etc/opt/
esac

exit 0