D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
lib
/
dpkg
/
info
/
Filename :
sw-nginx.prerm
back
Copy
### Copyright 1999-2025. WebPros International GmbH. All rights reserved. [ -z "$PLESK_INSTALLER_DEBUG" ] || set -x [ -z "$PLESK_INSTALLER_STRICT_MODE" ] || set -e switch2apache() { local status local ngmng='/usr/local/psa/admin/sbin/nginxmng' local pkgmng='/usr/local/psa/admin/sbin/packagemng' [ -x "${ngmng}" ] || return 0 if [ "Enabled" = "`${ngmng} --status`" ]; then echo -n "Try to disable nginx proxy in Plesk Panel ... " if ! "${ngmng}" --disable >/dev/null 2>&1; then echo "Warning: command '${ngmng} --disable' execution failed. You should execute it manually." else echo 'done.' fi if [ -x "${pkgmng}" ]; then "${pkgmng}" --set-dirty-flag >/dev/null 2>&1 || : fi fi return 0 } case "$1" in remove|remove-in-favour|deconfigure|deconfigure-in-favour) switch2apache /bin/systemctl stop nginx.service /bin/systemctl disable nginx.service ;; upgrade|failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac exit 0 # vim:ft=sh: