File: code-aster-gui.postrm

package info (click to toggle)
astk 1.13.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,896 kB
  • sloc: tcl: 24,251; python: 19,546; sh: 279; makefile: 51
file content (21 lines) | stat: -rw-r--r-- 565 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

if [ "$1" = "purge" -a -e /usr/share/debconf/confmodule ]; then
    # Source debconf library.
    . /usr/share/debconf/confmodule
    # Remove my changes to the db.
    db_purge
    
    # Remove files in /etc/codeaster/astkrc
    rm -f /etc/codeaster/astkrc/config_serveurs
    rm -f /etc/codeaster/astkrc/outils
    rm -f /etc/codeaster/astkrc/prefs    
    rm -f /etc/codeaster/astkrc/ASTKRC_INFO.txt
    
    find /etc/codeaster/astkrc  -type d -empty | xargs -r rmdir
    find /etc/codeaster  -type d -empty | xargs -r rmdir
fi

#DEBHELPER#