Uninstall sysstat and cleanup metrics data
This commit is contained in:
20
install.sh
20
install.sh
@@ -3244,6 +3244,17 @@ uninstall() {
|
||||
rm -f /etc/systemd/system/jabali-queue.service
|
||||
rm -rf /etc/systemd/system/jabali-queue.service.d
|
||||
|
||||
systemctl stop sysstat-collect.timer 2>/dev/null || true
|
||||
systemctl disable sysstat-collect.timer 2>/dev/null || true
|
||||
systemctl stop sysstat-summary.timer 2>/dev/null || true
|
||||
systemctl disable sysstat-summary.timer 2>/dev/null || true
|
||||
systemctl stop sysstat-rotate.timer 2>/dev/null || true
|
||||
systemctl disable sysstat-rotate.timer 2>/dev/null || true
|
||||
systemctl stop sysstat 2>/dev/null || true
|
||||
systemctl disable sysstat 2>/dev/null || true
|
||||
rm -rf /etc/systemd/system/sysstat-collect.timer.d
|
||||
rm -rf /etc/systemd/system/sysstat-summary.timer.d
|
||||
|
||||
local services=(
|
||||
nginx
|
||||
php-fpm
|
||||
@@ -3260,6 +3271,7 @@ uninstall() {
|
||||
fail2ban
|
||||
clamav-daemon
|
||||
clamav-freshclam
|
||||
sysstat
|
||||
)
|
||||
|
||||
for service in "${services[@]}"; do
|
||||
@@ -3358,6 +3370,9 @@ uninstall() {
|
||||
clamav
|
||||
clamav-daemon
|
||||
clamav-freshclam
|
||||
|
||||
# Metrics
|
||||
sysstat
|
||||
)
|
||||
|
||||
for pkg in "${packages[@]}"; do
|
||||
@@ -3410,6 +3425,11 @@ uninstall() {
|
||||
rm -rf /var/lib/clamav
|
||||
rm -rf /var/log/clamav
|
||||
|
||||
# Metrics
|
||||
rm -rf /etc/sysstat
|
||||
rm -rf /etc/default/sysstat
|
||||
rm -rf /var/log/sysstat
|
||||
|
||||
# SSL certificates (Let's Encrypt)
|
||||
rm -rf /etc/letsencrypt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user