get full path to restored cn config file
This commit is contained in:
parent
d7d7f1eae1
commit
b033828165
@ -467,12 +467,12 @@ if [ $extract = 'true' ]; then
|
|||||||
# remove TLS configuration
|
# remove TLS configuration
|
||||||
if [ "$removeTLS" = 'true' ]; then
|
if [ "$removeTLS" = 'true' ]; then
|
||||||
# get newest config-? file in outputLocation/restore directory
|
# get newest config-? file in outputLocation/restore directory
|
||||||
cnConfigFile=$( ls "${outputLocation%/}/restore" -t | head -n1 )
|
cnConfigFile=$( ls -Adt ${outputLocation%/}/restore/config-* | head -n1 )
|
||||||
# remove TLS configuration entries
|
# remove TLS configuration entries
|
||||||
logInfo 'task' "Removing TLS configuration $cnConfigFile... "
|
logInfo 'task' "Removing TLS configuration from '$cnConfigFile'"
|
||||||
sed -i -e '/^olcTLS/d' "$cnConfigFile"
|
sed -i -e '/^olcTLS/d' "$cnConfigFile" 2>> "$logfile"
|
||||||
# check our work
|
# check our work
|
||||||
if ! grep -q '^olcTLS' "$cnConfigFile"; then
|
if ! grep -q '^olcTLS' "$cnConfigFile" 2>> "$logfile"; then
|
||||||
logInfo 'done'
|
logInfo 'done'
|
||||||
else
|
else
|
||||||
logInfo 'err'
|
logInfo 'err'
|
||||||
|
Loading…
Reference in New Issue
Block a user