#!/bin/bash if [ ! $1 ] ; then echo need username as an argument "./installplugs64.sh nagios" for example exit fi tar zxvf lin64plugs_2.1.tar.gz -C / if ! id $1 ; then useradd $1 fi chown -R $1.$1 /usr/local/groundwork mv /usr/local/groundwork/nagios.bashrc /home/$1/.bashrc ln -s /usr/local/groundwork/nagios/libexec /home/$1/libexec