source: hadoop-0.18.3/debian/hadoop.postrm @ 222

Last change on this file since 222 was 52, checked in by jazz, 16 years ago
  • 新增簡化編譯用的 Makefile
  • Property svn:executable set to *
File size: 338 bytes
RevLine 
[51]1#!/bin/sh
2
3echo "$1"
4
5if [ "$1" != remove ]
6then
7  exit 0
8fi
9
10setup_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
[52]17    rm -rf /tmp/hadoop-hdfsadm*
18    rm -rf /tmp/hsperfdata_*
[51]19  fi
20}
21
22setup_hdfsadm_user
Note: See TracBrowser for help on using the repository browser.