source:
nutchez-0.1/debian/nutchez.postrm
@
66
Last change on this file since 66 was 66, checked in by waue, 15 years ago | |
---|---|
|
|
File size: 324 bytes |
Line | |
---|---|
1 | #!/bin/sh |
2 | |
3 | echo "$1" |
4 | |
5 | if [ "$1" != remove ] |
6 | then |
7 | exit 0 |
8 | fi |
9 | |
10 | setup_hdfsadm_user() { |
11 | if ! getent passwd hdfsadm >/dev/null; then |
12 | echo "no account found: 'hdfsadm'." |
13 | else |
14 | userdel hdfsadm |
15 | rm -rf /home/hdfsadm |
16 | rm -rf /opt/nutch |
17 | rm -rf /tmp/hadoop* |
18 | rm -rf /tmp/hsperfdata* |
19 | fi |
20 | } |
21 | |
22 | setup_hdfsadm_user |
Note: See TracBrowser
for help on using the repository browser.