Shadow-Here


Server : Apache
System : Linux methusalix2 3.16.0-11-amd64 #1 SMP Debian 3.16.84-1 (2020-06-09) x86_64
User : hios ( 1437)
PHP Version : 5.6.40-0+deb8u12
Disable Function : proc_close,proc_open,dl,shell_exec,passthru
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :
Current File : //var/lib/dpkg/info/openvpn.prerm
#!/bin/sh
# Copyright 2004 Alberto Gonzalez Iniesta <agi@agi.as>
# Licensed under the GNU General Public License, version 2.  See the file
# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
#

set -e
test $DEBIAN_SCRIPT_DEBUG && set -v -x

stop_vpn () {
  if [ -x "/etc/init.d/openvpn" ]; then
          if [ -x /usr/sbin/invoke-rc.d ] ; then
                  invoke-rc.d openvpn stop
          else
                  /etc/init.d/openvpn stop
          fi
  fi
}


case "$1" in
  upgrade)
    # don't stop the vpn, it will be restarted after the upgrade
    true
  ;;
  *)
    stop_vpn
  ;;
esac



exit 0
# vim:set ai et sts=2 sw=2 tw=0:

Samx