Copy the usrwilleke.tgz file to the root directory '/'. Extract the backup directory and scripts by executing the following command:
tar -zxvf /root/Documents/usrwilleke.tar.gz /This creates the directory:
/root/Documents/usr/local/share/willeke
Create soft link:
ln -s /root/Documents/usr/local/share/willeke /usr/local/share/This creates a soft link of /usr/local/share/willeke -> /root/Documents/usr/local/share/willeke/
This allows for others to be able to reach the scripts but not modify them.
Modify the scripts by changing the variables to be specific to your server and or applications.
For more Information consult Using the Willeke Script Library.
To create the package:
tar -pcvf usrwilleke.tar /root/Documents/usr/local/share/willeke/ tar --append --file=usrwilleke.tar /root/.bashrc gzip usrwilleke.tar
./shared-stub.sh shared-stub.sh Version 1.1A loaded successfully SHAREDFUNCTIONS Version 12.5A loaded successfully No /usr/local/shared/.sharedenv.sh.local found SHAREDENV Version 11.4 loaded successfully 2009-01-31 12:50:46: ./shared-stub.sh Version Started by root 2009-01-31 12:50:46: You are running as root. ====================================================================== 2009-01-31 12:50:46: ./shared-stub.sh Version Exiting as root ======================================================================
The important items to find are:
There should NOT be any errors.
LOGDIR=/var/log LOGFILE=$LOGDIR/shared.log
You can look at the log with:
less /var/log/shared.log