source:
hadoop-1.0.4/debian/hadoop.postrm
Last change on this file was 52, checked in by jazz, 16 years ago | |
---|---|
|
|
File size: 338 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 /var/log/hadoop |
17 | rm -rf /tmp/hadoop-hdfsadm* |
18 | rm -rf /tmp/hsperfdata_* |
19 | fi |
20 | } |
21 | |
22 | setup_hdfsadm_user |
Note: See TracBrowser
for help on using the repository browser.