correct check for bashio fs.directory_exists

This commit is contained in:
litinoveweedle
2026-01-29 16:51:57 +01:00
parent 10b743e6fd
commit ffaec60c47
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ declare interface_name=""
declare openvpn_username
declare openvpn_password
if bashio::file_exists "${OPENVPN_STATE_DIR}"; then
if bashio::fs.directory_exists "${OPENVPN_STATE_DIR}"; then
bashio::log.warning "Previous OpenVPN state directory found, cleaning up."
rm -Rf "${OPENVPN_STATE_DIR}"
fi

View File

@@ -8,7 +8,7 @@ declare wireguard_config=""
declare wireguard_runtime_config=""
declare interface_name=""
if bashio::file_exists "${WIREGUARD_STATE_DIR}"; then
if bashio::fs.directory_exists "${WIREGUARD_STATE_DIR}"; then
bashio::log.warning "Previous WireGuard state directory found, cleaning up."
rm -Rf "${WIREGUARD_STATE_DIR}"
fi