Overview#
Use Entirely at Your Own Risk
CISUS.COM nor anyone else is responsible if you use a tool or any information on this site and causes damages to anyone or anything! This is only Example code
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
Testing the installation#
You can execute the ??? and the response should be something similar to shown below:./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:
- SHAREDFUNCTIONS Version 12.5A loaded successfully
- SHAREDENV Version 11.4 loaded successfully
There should NOT be any errors.
Log Files#
The log files for the scripts are controlled by the following variables in the Shared Script Variables:LOGDIR=/var/log LOGFILE=$LOGDIR/shared.log
You can look at the log with:
less /var/log/shared.log