文件操作 - rsync.postinst
返回文件管理
返回主菜单
删除本文件
文件: /var/lib/dpkg/info/rsync.postinst
编辑文件内容
#!/bin/sh set -e # Automatically added by dh_installinit/13.6ubuntu1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if [ -z "${DPKG_ROOT:-}" ] && [ -x "/etc/init.d/rsync" ]; then update-rc.d rsync defaults >/dev/null if [ -n "$2" ]; then _dh_action=restart else _dh_action=start fi invoke-rc.d --skip-systemd-native rsync $_dh_action || exit 1 fi fi # End automatically added section # Automatically added by dh_installsystemd/13.6ubuntu1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if deb-systemd-helper debian-installed 'rsync.service'; then # This will only remove masks created by d-s-h on package removal. deb-systemd-helper unmask 'rsync.service' >/dev/null || true if deb-systemd-helper --quiet was-enabled 'rsync.service'; then # Create new symlinks, if any. deb-systemd-helper enable 'rsync.service' >/dev/null || true fi fi # Update the statefile to add new symlinks (if any), which need to be cleaned # up on purge. Also remove old symlinks. deb-systemd-helper update-state 'rsync.service' >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.6ubuntu1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if [ -d /run/systemd/system ]; then systemctl --system daemon-reload >/dev/null || true if [ -n "$2" ]; then _dh_action=restart else _dh_action=start fi deb-systemd-invoke $_dh_action 'rsync.service' >/dev/null || true fi fi # End automatically added section
修改文件时间
将文件时间修改为当前时间的前一年
删除文件