Commit 3806bec3 authored by Alan's avatar Alan
Browse files

ASP: set safe defaults for disable_and_create_empty_persistence_conf_file

Will-fix: #15802
parent fc2fd631
...@@ -260,6 +260,11 @@ disable_and_create_empty_persistence_conf_file () ...@@ -260,6 +260,11 @@ disable_and_create_empty_persistence_conf_file ()
local conf="$1" local conf="$1"
local mode="$2" local mode="$2"
if [ -z "$mode" ]
then
mode=0600
fi
mv "$conf" "${conf}.insecure_disabled" \ mv "$conf" "${conf}.insecure_disabled" \
|| error "Failed to disable '$conf': $?" || error "Failed to disable '$conf': $?"
create_empty_persistence_conf_file "$conf" "$mode" create_empty_persistence_conf_file "$conf" "$mode"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment