403Webshell
Server IP : 64.223.137.62  /  Your IP : 104.23.243.125
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/synosnap.postrm
#!/bin/bash

set -e

main()
{
	action="$1"

	case "${action}" in
		purge)
			action_purge $@
		;;
		remove)
			action_remove $@
		;;
		upgrade)
			action_upgrade $@
		;;
		failed-upgrade)
			action_failed_upgrade $@
		;;
		abort-install)
			action_abort_install $@
		;;
		abort-upgrade)
			action_abort_upgrade $@
		;;
		disappear)
			action_disappear $@
		;;
		*)
			echo "postrm called with unknown arguemnts '$1'" >&2
			return 1
		;;
	esac

	return $?
}

action_purge()
{
	return 0
}

action_remove()
{
	for i in $(mount | cut -d ' ' -f 3);do
		exist=$(ls $i/.synosnap_data 2>/dev/null || true)

		if [[ -n "$exist" ]];then
			rm -rf $i/.synosnap_data
		fi

		exist=$(ls $i/snapshot_data/.synosnap.raw 2>/dev/null || true)

		if [[ -n "$exist" ]];then
			rm -rf $i/snapshot_data
		fi
	done
	rm -rf /opt/synosnap
	return 0
}

action_upgrade()
{
	new_version="$2"

	return 0
}

action_failed_upgrade()
{
	old_version="$2"

	return 0
}

action_abort_install()
{
	old_version="$2"

	return 0
}

action_abort_upgrade()
{
	old_version="$2"

	return 0
}

action_disappear()
{
	overwriter="$2"
	overwriter_version="$3"

	return 0
}

main $@
exit $?


Youez - 2016 - github.com/yon3zu
LinuXploit