freenet-router |
Subversion Repositories: |
Line No. | Rev | Author | Line |
---|---|---|---|
1 | 2 | simandl | #!/bin/bash |
2 | |
||
3 | set -e |
||
4 | |
||
5 | case "$1" in |
||
6 | remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |
||
7 | ;; |
||
8 | |
||
9 | purge) |
||
10 | # Apache |
||
11 | a2ensite default |
||
12 | a2dissite freenet-router |
||
13 | a2dissite freenet-router-ssl |
||
14 | |
||
15 | # Usefull commands |
||
16 | rm -rf /usr/local/sbin/rw |
||
17 | rm -rf /usr/local/sbin/ro |
||
18 | |
||
19 | # safe user |
||
20 | deluser --remove-home safe |
||
21 | ;; |
||
22 | |
||
23 | *) |
||
24 | echo "postrm called with unknown argument \`\$1'" >&2 |
||
25 | ;; |
||
26 | |
||
27 | esac |
||
28 | |
||
29 | exit 0 |
||
30 | |