403Webshell
Server IP : 104.21.4.30  /  Your IP : 104.23.197.86
Web Server : Apache
System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64
User : simottodesign.com_2tntp341vs7 ( 10011)
PHP Version : 8.3.31
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  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/passenger.postinst
### Copyright 1999-2026. WebPros International GmbH. All rights reserved.


drop_obsolete_nginx_configs()
{
	rm -f /etc/nginx/conf.d/passenger.conf
	rm -f /etc/nginx/modules.conf.d/passenger.conf
}

try_restart_nginx()
{
	local pleskrc="/usr/local/psa/admin/sbin/pleskrc"
	$pleskrc nginx exists && $pleskrc nginx try-restart >/dev/null 2>&1 || :
}

[ -z "$PLESK_INSTALLER_DEBUG" ] || set -x
[ -z "$PLESK_INSTALLER_STRICT_MODE" ] || set -e


case "$1" in
	configure|reconfigure)
		drop_obsolete_nginx_configs
		try_restart_nginx
		;;
	abort-upgrade|abort-remove|abort-deconfigure)
		;;
	*)
		echo "postinst called with unknown argument '$1'" >&2
		exit 1
		;;
esac


exit 0

# vim:ft=sh

Youez - 2016 - github.com/yon3zu
LinuXploit