HEX
Server: nginx/1.18.0
System: Linux oas2 6.8.0-1039-oracle #40~22.04.1-Ubuntu SMP Wed Oct 29 05:11:00 UTC 2025 aarch64
User: root (0)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
File: //var/lib/dpkg/info/unified-monitoring-agent.preinst
#! /bin/sh

set -e

echo "Running pre installation script"
if [ -d "/etc/systemd/system/" ]
then
  echo "Removing systemd unit files from /etc/systemd/system/..."
  rm -f /etc/systemd/system/unified-monitoring-agent.service
  rm -f /etc/systemd/system/unified-monitoring-agent_restarter.service
  rm -f /etc/systemd/system/unified-monitoring-agent_restarter.path
  rm -f /etc/systemd/system/unified-monitoring-agent_config_downloader.service
  rm -f /etc/systemd/system/unified-monitoring-agent_config_downloader.timer

  
  rm -f /etc/systemd/system/unified-monitoring-agent_mysql.timer
  rm -f /etc/systemd/system/unified-monitoring-agent_mysql.service
  rm -f /lib/systemd/system/unified-monitoring-agent_mysql.timer
  rm -f /lib/systemd/system/unified-monitoring-agent_mysql.service
  

  
  echo "Done."

  echo "Reloading systemd daemon..."
  systemctl daemon-reload
  echo "Done."
fi