HP/UX changes after site testing
This commit is contained in:
@@ -10,12 +10,26 @@
|
||||
# -v Volume to operate on, logs or data
|
||||
# -o Operation to perform - open or close the MV
|
||||
|
||||
_SCRIPT_="$0"
|
||||
|
||||
get_script_dir() {
|
||||
src="$0"
|
||||
dir=$(cd -P "$(dirname "$src")" >/dev/null 2>&1 && pwd)
|
||||
echo "$dir"
|
||||
script="$1"
|
||||
case "$script" in
|
||||
/*) abs_path="$script" ;;
|
||||
*) abs_path="$PWD/$script" ;;
|
||||
esac
|
||||
while [ -L "$abs_path" ]; do
|
||||
link=$(readlink "$abs_path")
|
||||
case "$link" in
|
||||
/*) abs_path="$link" ;;
|
||||
*) abs_path="$(dirname "$abs_path")/$link" ;;
|
||||
esac
|
||||
done
|
||||
script_dir=$(dirname "$abs_path")
|
||||
cd "$script_dir" 2>/dev/null && pwd
|
||||
}
|
||||
MYDIR=$(get_script_dir)
|
||||
|
||||
MYDIR=$(get_script_dir "$_SCRIPT_")
|
||||
. $MYDIR/rubrik.conf
|
||||
. $MYDIR/oracle_funcs.ksh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user