source: nutchez-0.1/debian/nutchez.postrm @ 66

Last change on this file since 66 was 66, checked in by waue, 15 years ago

NutchEz - an easy way to nutch

  • Property svn:executable set to *
File size: 324 bytes
Line 
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 /opt/nutch
17    rm -rf /tmp/hadoop*
18    rm -rf /tmp/hsperfdata*
19  fi
20}
21
22setup_hdfsadm_user
Note: See TracBrowser for help on using the repository browser.