403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/lib/dpkg/info/synology-active-backup-business-linux-service.prerm
#!/bin/bash
# Copyright (c) 2017 Synology Inc. All rights reserved.
# prerm script for synology-cloud-station package

LINUX_SERVICE="synology-active-backup-business-linux-service"
APP_NAME="synology-active-backup-business-linux-service"

main()
{
	action="$1"

	case "${action}" in
		remove)
			action_remove $@
		;;
		upgrade)
			action_upgrade $@
		;;
		deconfigure)
			action_deconfigure $@
		;;
		failed-upgrade)
			action_failed_upgrade $@
		;;
		*)
			echo "prerm called with unknown arguemnts '$1'" >&2
			return 1
		;;
	esac

	return $?
}

action_remove()
{
	in_favour_package_name="$3"
	new_version="$4"

	systemctl stop ${LINUX_SERVICE}

	LD_LIBRARY_PATH=/opt/Synology/ActiveBackupforBusiness/lib /opt/Synology/ActiveBackupforBusiness/bin/service-ctrl uninstall

	rm -rf "/opt/Synology/ActiveBackupforBusiness"
	rm -rf "/bin/abb-cli"

	return 0
}

action_upgrade()
{
	new_version="$2"
	installed_version=$(dpkg-query --show --showformat='${Version}' ${APP_NAME})

	dpkg --compare-versions "${new_version}" "gt" "${installed_version}"

	# same version of abb is not allowed to install
	if [ $? -ne 0 ]; then
		echo "installed ${APP_NAME} version is newer or equal"
		return 1
	fi

	return 0
}

action_deconfigure()
{
	in_favour_package_name="$3"
	in_favour_package_version="$4"
	conflicting_package_name="$6"
	conflicting_package_version="$7"

	return 0
}

action_failed_upgrade()
{
	old_version="$2"

	return 0
}

main $@
exit $?


Youez - 2016 - github.com/yon3zu
LinuXploit