Compare commits
No commits in common. "8126efc7e17c6f6fbe48400d3b19ba6b66dee391" and "974e5e06f563681d51e3d0cb9f958b845cfb42dd" have entirely different histories.
8126efc7e1
...
974e5e06f5
@ -43,7 +43,6 @@ logfile="$scriptPath/${scriptName%.*}.log"
|
|||||||
# with '.params' extension
|
# with '.params' extension
|
||||||
encParams="$scriptPath/${scriptName%.*}.params"
|
encParams="$scriptPath/${scriptName%.*}.params"
|
||||||
# backup mode by default
|
# backup mode by default
|
||||||
unset removeTLS
|
|
||||||
unset backupFile
|
unset backupFile
|
||||||
extract=false
|
extract=false
|
||||||
decrypt=false
|
decrypt=false
|
||||||
@ -323,10 +322,6 @@ while [ $# -gt 0 ]; do
|
|||||||
encParams="$2"
|
encParams="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--removeTLS)
|
|
||||||
# remove olcTLS entries from cn=config
|
|
||||||
removeTLS=true
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
printf "%s\nUnknown option: %s\n" "$err" "$1"
|
printf "%s\nUnknown option: %s\n" "$err" "$1"
|
||||||
printf "Use '--help' for valid options.\n\n%s" "$norm"
|
printf "Use '--help' for valid options.\n\n%s" "$norm"
|
||||||
@ -380,7 +375,7 @@ if [ -d "$outputLocation" ]; then
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# create directory
|
# create directory
|
||||||
if ! mkdir -p "${outputLocation%/}" > /dev/null 2>&1; then
|
if ! mkdir -p "$outputLocation" > /dev/null 2>&1; then
|
||||||
exitError '1' "Unable to create output path: $outputLocation" 'nc'
|
exitError '1' "Unable to create output path: $outputLocation" 'nc'
|
||||||
else
|
else
|
||||||
logInfo "Writing output to: $outputLocation"
|
logInfo "Writing output to: $outputLocation"
|
||||||
@ -560,7 +555,7 @@ elif [ $extract = 'false' ]; then
|
|||||||
exitError 6 'Unable to copy backup archive from container to host.'
|
exitError 6 'Unable to copy backup archive from container to host.'
|
||||||
fi
|
fi
|
||||||
logInfo 'done'
|
logInfo 'done'
|
||||||
logInfo "Backup file: ${outputLocation%/}/ldap-${fileDate}.tar.gz"
|
logInfo "Backup file: $outputLocation/ldap-${fileDate}.tar.gz"
|
||||||
|
|
||||||
## cleanup and log success
|
## cleanup and log success
|
||||||
cleanup
|
cleanup
|
||||||
|
Loading…
Reference in New Issue
Block a user