]> git.ipfire.org Git - people/stevee/network.git/commitdiff
security-policies: Delete cached content when policy is deleted
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Aug 2017 14:04:57 +0000 (14:04 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Aug 2017 14:04:57 +0000 (14:04 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.vpn-security-policies

index bd24b06606492126901ea6349aa1e62f6d52e6b1..e61e41130797e5d9eeead4f54583145f4a26ecb6 100644 (file)
@@ -874,6 +874,9 @@ vpn_security_policies_destroy() {
 
                log DEBUG "Deleting vpn security policy ${name}"
                settings_remove $(vpn_security_policies_path ${name})
+
+               # Delete cache
+               rm -rf "${NETWORK_CACHE_DIR}/vpn/security-policies/${name}"
        done
 }