~fkooman/vpn-maint-scripts

2ad5ea18ea35ca15ca95d3ef82d3d5d83b7ba597 — François Kooman 6 months ago 4660004
remove keys directories instead of files

Fixes: https://todo.sr.ht/~eduvpn/server/57
2 files changed, 6 insertions(+), 6 deletions(-)

M bin/vpn-maint-reset-controller
M bin/vpn-maint-reset-system
M bin/vpn-maint-reset-controller => bin/vpn-maint-reset-controller +2 -2
@@ 26,7 26,7 @@ if [ -f /etc/redhat-release ]; then
    systemctl stop httpd
    systemctl stop php-fpm
    rm -rf /var/lib/vpn-user-portal/*
    rm -rf /etc/vpn-user-portal/keys/*
    rm -rf /etc/vpn-user-portal/keys
    rm -rf /var/lib/php/session/*
    /usr/libexec/vpn-user-portal/generate-secrets
    systemctl start php-fpm


@@ 37,7 37,7 @@ elif [ -f /etc/debian_version ]; then
    systemctl stop apache2
    systemctl stop "php${PHP_VERSION}-fpm"
    rm -rf /var/lib/vpn-user-portal/*
    rm -rf /etc/vpn-user-portal/keys/*
    rm -rf /etc/vpn-user-portal/keys
    rm -rf /var/lib/php/sessions/*
    /usr/lib/vpn-user-portal/generate-secrets
    systemctl start "php${PHP_VERSION}-fpm"

M bin/vpn-maint-reset-system => bin/vpn-maint-reset-system +4 -4
@@ 39,8 39,8 @@ if [ -f /etc/redhat-release ]; then
    systemctl stop httpd
    systemctl stop php-fpm
    rm -rf /var/lib/vpn-user-portal/*
    rm -rf /etc/vpn-user-portal/keys/*
    rm -f /etc/vpn-server-node/keys/*
    rm -rf /etc/vpn-user-portal/keys
    rm -rf /etc/vpn-server-node/keys
    rm -rf /var/lib/php/session/*
    /usr/libexec/vpn-user-portal/generate-secrets
    /usr/libexec/vpn-server-node/generate-secrets


@@ 54,8 54,8 @@ elif [ -f /etc/debian_version ]; then
    systemctl stop apache2
    systemctl stop "php${PHP_VERSION}-fpm"
    rm -rf /var/lib/vpn-user-portal/*
    rm -rf /etc/vpn-user-portal/keys/*
    rm -f /etc/vpn-server-node/keys/*
    rm -rf /etc/vpn-user-portal/keys
    rm -rf /etc/vpn-server-node/keys
    rm -rf /var/lib/php/sessions/*
    /usr/lib/vpn-user-portal/generate-secrets
    /usr/lib/vpn-server-node/generate-secrets