K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / var / lib / dpkg / info /
server ip : 104.21.89.46

your ip : 108.162.241.221

H O M E


Filename/var/lib/dpkg/info/cron.postinst
Size2.51 kb
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified09-Feb-2013 15:02
Last accessed06-Jul-2025 22:26
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh
set -e

crondir="/var/spool/cron"
action="$1"

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


# LEGACY: This hasn't been relevant to Debian cron since the last Millenium,
# but we keep it here to preserve the upgrade path...
# Copy existing allow/deny files
pausemessage="F"
for fname in allow deny ; do
if [ -f $crondir/$fname ] ; then
if [ ! -f $/etc/cron.$fname ] ; then
mv $crondir/$fname /etc/cron.$fname
echo " "
echo "Moving $crondir/$fname to /etc/cron.$fname to comply with Debian policy"
pausemessage="T"
else
echo " "
echo "Warning:"
echo "Both $crondir/$fname and /etc/cron.$fname exist -- cron will"
echo "use /etc/cron.$fname"
pausemessage="T"
fi
fi
done

# Conffiles that are now obsolete
dpkg-maintscript-helper rm_conffile /etc/cron.monthly/standard "3.0pl1-113" -- "$@"
dpkg-maintscript-helper rm_conffile /etc/cron.daily/standard "3.0pl1-124" -- "$@"
# If dpkg-maintscript-helper renames it instead of removing it because it has
# local modifications, we must rename it back to a valid name, or crond
# will not accept it. Thanks to Raphaël Hertzog for the tip.
if [ -e /etc/cron.monthly/standard.dpkg-bak ]; then
mv /etc/cron.monthly/standard.dpkg-bak \
/etc/cron.monthly/standard-obsolete-please-verify-and-remove
fi


# Add group for crontabs
getent group crontab > /dev/null 2>&1 || addgroup --system crontab

# Fixup crontab binary for new group 'crontab'.
if ! dpkg-statoverride --list /usr/bin/crontab > /dev/null ; then
dpkg-statoverride --update --add root crontab 2755 /usr/bin/crontab
fi

# Fixup crontab , directory and files for new group 'crontab'.
# Can't use dpkg-statoverride for this because it doesn't cooperate nicely
# with cron alternatives such as bcron
if [ -d $crondir/crontabs ] ; then
chown root:crontab $crondir/crontabs
chmod 1730 $crondir/crontabs
# This used to be done conditionally. For versions prior to "3.0pl1-81"
# It has been disabled to suit cron alternative such as bcron.
cd $crondir/crontabs
set +e
ls -1 | xargs -r -n 1 --replace=xxx chown 'xxx:crontab' 'xxx'
ls -1 | xargs -r -n 1 chmod 600
set -e
fi


# Automatically added by dh_installinit
if [ -x "/etc/init.d/cron" ]; then
if [ ! -e "/etc/init/cron.conf" ]; then
update-rc.d cron start 89 2 3 4 5 . stop 11 1 . >/dev/null
fi
invoke-rc.d cron start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f cron remove >/dev/null || exit $?
# End automatically added section