updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / slurm-llnl-git / slurm-llnl-git.install
bloba698349d17f96146c68c84b98091131f31fef034
1 ## arg 1:  the new package version
2 post_install() {
3   echo "Adding slurm system group... "
4   groupadd -r slurm
6   echo "Adding slurm system user... "
7   uidopt=""
8   [ -v SLURM_USER_ID ] && uidopt="-u ${SLURM_USER_ID}"
9   useradd -r -c "Slurm Daemon" -d /var/log/slurm -g slurm ${uidopt} slurm 
11   echo "Locking Slurm User Account..."
12   passwd -l slurm &>/dev/null
15 ## arg 1:  the old package version
16 post_remove() {
17   echo "Removing slurm system user/group "
18   userdel slurm
21 # vim:set ts=2 sw=2 et: