log DEBUG "Adding '${key}' = '${value}'"
fi
- make_parent_dir "${path}"
+ make_parent_directory "${path}"
print "${value}" > "${path}"
}
local proposal=$(_vpn_security_policies_make_ike_proposal "${name}")
# Write proposal to cache
- if ! make_parent_dir "${cache_path}" || ! fwrite "${cache_path}" "${proposal}"; then
+ if ! make_parent_directory "${cache_path}" || ! fwrite "${cache_path}" "${proposal}"; then
log WARNING "Could not write to cache: ${cache_path}"
fi
local proposal=$(_vpn_security_policies_make_esp_proposal "${name}")
# Write proposal to cache
- if ! make_parent_dir "${cache_path}" || ! fwrite "${cache_path}" "${proposal}"; then
+ if ! make_parent_directory "${cache_path}" || ! fwrite "${cache_path}" "${proposal}"; then
log WARNING "Could not write to cache: ${cache_path}"
fi
esac
# Ensure we can write the file
- make_parent_dir "${file}"
+ make_parent_directory "${file}"
config_header "WPA supplicant configuration file" > ${file}