Changeset 68 for nutchez-0.1/debian


Ignore:
Timestamp:
May 22, 2009, 6:36:48 PM (16 years ago)
Author:
waue
Message:

big modification

Location:
nutchez-0.1/debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.1/debian/nutchez.postinst

    r66 r68  
    77  exit 0
    88fi
     9
     10ln -sf /opt/nutch/bin/nutchez /usr/local/sbin/
    911
    1012setup_hdfsadm_user() {
     
    4749}
    4850show_message() {
     51  echo "You can use the instruction : \" nutchez\" to easyly use nutch"
     52  echo "Enjoy"
     53}
     54show_old_message() {
    4955  echo "You can quickly start by following ways [in /opt/nutch/ with root privilege]:"
    5056  echo "(1) Modify the urls/urls.txt file with indicate urls, one site one line."
  • nutchez-0.1/debian/nutchez.postrm

    r67 r68  
    88fi
    99
    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     rm /usr/local/sbin/nutchez*
    20   fi
    21 }
     10rm -rf /tmp/hsperfdata*
     11if [ -e HOME/.nutchez ]; then
     12  rm -rf $HOME/.nutchez
     13fi
     14rm /usr/local/sbin/nutchez*
    2215
    23 setup_hdfsadm_user
Note: See TracChangeset for help on using the changeset viewer.