| Server IP : 64.223.137.62 / Your IP : 104.23.197.96 Web Server : Apache/2.4.52 (Ubuntu) System : Linux webserver9 5.15.0-170-generic #180-Ubuntu SMP Fri Jan 9 16:10:31 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/lib/dpkg/info/ |
Upload File : |
#!/bin/bash
LINUX_SERVICE="synology-active-backup-business-linux-service"
main()
{
action="$1"
case "${action}" in
install)
action_install $@
;;
upgrade)
action_upgrade $@
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument '$1'" >&2
exit 1
;;
esac
return $?
}
action_install()
{
exist=$(systemctl | grep ${LINUX_SERVICE})
# if string is not empty
if [ -n "${exist}" ]; then
systemctl stop "${LINUX_SERVICE}"
fi
return 0
}
action_upgrade()
{
systemctl stop ${LINUX_SERVICE}
return 0
}
main $@
exit $?