Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /Data/.backup/script/fcron-3.3.0/debian/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //Data/.backup/script/fcron-3.3.0/debian/postrm
#! /bin/sh
# postrm script for fcron
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <postrm> `remove'
#        * <postrm> `purge'
#        * <old-postrm> `upgrade' <new-version>
#        * <new-postrm> `failed-upgrade' <old-version>
#        * <new-postrm> `abort-install'
#        * <new-postrm> `abort-install' <old-version>
#        * <new-postrm> `abort-upgrade' <old-version>
#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
# for details, see /usr/share/doc/packaging-manual/

case "$1" in
       purge)

       # Purge fcrontabs
       rm -rf /var/spool/fcron || true

       # Purge statoverrides
       dpkg-statoverride --remove /usr/bin/fcrontab || true
       dpkg-statoverride --remove /usr/bin/fcronsighup || true

       # Remove user fcron
       userdel fcron || true
        ;;

       remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
        ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 0

esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

if [ "$1" = remove -a -e /etc/suid.conf ] && \
   command -v suidunregister >/dev/null 2>&1; then
        suidunregister -s fcron /usr/bin/fcrontab
fi
exit 0

ZeroDay Forums Mini