~fkooman/vpn-maint-scripts

c4291d418191c4ac07d3f90a3fe9f354c28ea6d3 — François Kooman a month ago baf4795
remove some old CentOS stuff
M README.md => README.md +1 -1
@@ 4,7 4,7 @@
server(s). These SHOULD be used for handling day to day operation, like 
applying changes and installing updates. 

**License**:  AGPL-3.0-or-later
**License**: AGPL-3.0-or-later

# Introduction


M bin/vpn-maint-reset-controller => bin/vpn-maint-reset-controller +1 -1
@@ 22,7 22,7 @@ if ! [ "${CONFIRM}" = "y" ] && ! [ "${CONFIRM}" = "Y" ]; then
fi

if [ -f /etc/redhat-release ]; then
    # Fedora, CentOS, RHEL
    # Fedora
    systemctl stop httpd
    systemctl stop php-fpm
    rm -rf /var/lib/vpn-user-portal/*

M bin/vpn-maint-reset-system => bin/vpn-maint-reset-system +1 -1
@@ 35,7 35,7 @@ rm -rf /etc/openvpn/server/*
rm -rf /etc/wireguard/*

if [ -f /etc/redhat-release ]; then
    # Fedora, CentOS, RHEL
    # Fedora
    systemctl stop httpd
    systemctl stop php-fpm
    rm -rf /var/lib/vpn-user-portal/*

M bin/vpn-maint-update-controller => bin/vpn-maint-update-controller +0 -7
@@ 17,13 17,6 @@ if [ -f /etc/fedora-release ]; then
    dnf -y --refresh update
    systemctl start php-fpm
    systemctl start httpd
elif [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
    systemctl stop httpd
    systemctl stop php-fpm
    yum clean expire-cache
    yum -y update
    systemctl start php-fpm
    systemctl start httpd
elif [ -f /etc/debian_version ]; then
    PHP_VERSION=$(/usr/sbin/phpquery -V)
    systemctl stop apache2

M bin/vpn-maint-update-node => bin/vpn-maint-update-node +0 -4
@@ 10,10 10,6 @@ rm -rf /etc/wireguard/*
if [ -f /etc/fedora-release ]; then
    dnf -y --refresh update
    /usr/libexec/vpn-server-node/server-config
elif [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
    yum clean expire-cache
    yum -y update
    /usr/libexec/vpn-server-node/server-config
elif [ -f /etc/debian_version ]; then
    apt update
    apt -y dist-upgrade

M bin/vpn-maint-update-system => bin/vpn-maint-update-system +0 -8
@@ 17,14 17,6 @@ if [ -f /etc/fedora-release ]; then
    systemctl start php-fpm
    systemctl start httpd
    /usr/libexec/vpn-server-node/server-config
elif [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
    systemctl stop httpd
    systemctl stop php-fpm
    yum clean expire-cache
    yum -y update
    systemctl start php-fpm
    systemctl start httpd
    /usr/libexec/vpn-server-node/server-config
elif [ -f /etc/debian_version ]; then
    PHP_VERSION=$(/usr/sbin/phpquery -V)
    systemctl stop apache2