#! /bin/bash
# Generated by MANIFEST
# See INSTALL for details of format

depend -d /var/adm/sysman/modules
if [ $? -eq 254 ]; then
  log "You must install the 'base' module of the System Manager" y 
  log "before installing this module." y 
  log "" y 
  exit
fi
#! /bin/bash
#
# The System Manager
# An Administration Tool For UNIX
#
# Copyright (c) 1994 Stuart Herbert
# Released under the GNU GPL v2
#
# Bugs/comments/contributions to S.Herbert@Sheffield.ac.uk

if [ -n "$1" ]; then
  case "$1" in
    --SysmanInstall)
      echo "Y : Y : USERS : Create/Destroy Users :$0"
      exit
      ;;
    --SysmanAuthor)
      source /var/adm/sysman/bin/ParseMod
      ;;
  esac
fi

title   "Users - A Module For The System Manager"
author  "Stuart Herbert" "S.Herbert@Sheffield.ac.uk"
comment
comment "Currently, this module only provides options to create and delete"
comment "users on a local system.  However, I plan to expand this to be"
comment "of far more use to networked systems."
endinfo

require useradd
if [ $? -eq 254 ]; then
  log "You need to install the program 'useradd', which is used by this module."
  log "useradd is part of the Shadow Passwords suite.  You do NOT need to be"
  log "using shadow passwords - you just need this utility."
  log
fi

require userdel
if [ $? -eq 254 ]; then
  log "You need to install the program 'userdel', which is used by this module."
  log "userdel is part of the Shadow Passwords suite.  You do NOT need to be"
  log "using shadow passwords - you just need this utility."
  log
fi

target /var/adm sysman
dir $TARGETDIR/modules/Users 755 y
file modules/Users/AddANewUser /var/adm/sysman/modules/Users/AddANewUser 755
file modules/Users/DeleteAUser /var/adm/sysman/modules/Users/DeleteAUser 755
file modules/Users/README.module /var/adm/sysman/modules/Users/README.module 755
