I have a package that comes in 2 parts - a bin file and digital certificate. This is to be distributed out to Linux sysadmins to install on RHEL systems in the enterprise. The bin file has various configuration options that can be used and I currently have them hard coded in a vary basic script that will allow them to extract the bin and cert to /tmp and run from there. The problem is that despite my instructions many sysadmins are attempting to run the package from various different locations (e.g. /home). My goal is to create a bash script that will do the following:
- Determine the path in which the user is attempting to launch the bin file
- Verify that both files exist in that path (installer.bin & cert.ssl)
- If both files exist launch the bin and if not display warning message
I'm still learning bash so any assistance is greatly appreciated.