15 lines
398 B
Plaintext
15 lines
398 B
Plaintext
|
|
#!/bin/bash
|
||
|
|
set -e
|
||
|
|
|
||
|
|
# Pre-removal script for zabbix-php-monitoring
|
||
|
|
|
||
|
|
echo "Removing zabbix-php-monitoring..."
|
||
|
|
|
||
|
|
# Restart PHP-FPM to clear the auto_prepend_file configuration
|
||
|
|
systemctl reload php8.3-fpm.service || true
|
||
|
|
|
||
|
|
# Note: We don't remove the log files as they may contain important data
|
||
|
|
echo "Log files in /var/log/zabbix/ have been preserved"
|
||
|
|
echo "Configuration files will be removed"
|
||
|
|
|
||
|
|
exit 0
|