File: postinst

package info (click to toggle)
vidalia 0.2.20-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 30,516 kB
  • sloc: cpp: 22,214; ansic: 3,224; perl: 824; xml: 313; sh: 98; makefile: 70; python: 70
file content (32 lines) | stat: -rw-r--r-- 755 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh 
set -e
if [ -f /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
fi


case "$1" in
  configure|reconfigure)
    # We don't go under this approach since Vidalia 0.2.14-3,
    #  so we need to nicely remove deprecated files
    if dpkg --compare-versions "$2" lt-nl "0.2.14-3"; then
            if [ -f /etc/default/tor.vidalia ]; then
                rm -f /etc/default/tor.vidalia
                if [ -x "/usr/bin/ucf" ]; then
                    ucf --purge /etc/default/tor.vidalia
                fi
            fi
    fi
    
     db_get vidalia/users
     users=$(echo $RET | sed -e 's@,@@g')

     # Add selected users
     for u in $users; do
        adduser --quiet $u debian-tor
     done
  ;;
esac


#DEBHELPER#