文件操作 - chrony.prerm
返回文件管理
返回主菜单
删除本文件
文件: /var/lib/dpkg/info/chrony.prerm
编辑文件内容
#!/bin/sh # prerm script for chrony # # see: dh_installdeb(1) set -e # targets: remove|upgrade|deconfigure|failed-upgrade case "$1" in remove|upgrade|deconfigure) ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. # Automatically added by dh_installsystemd/13.14.1ubuntu5 if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then deb-systemd-invoke stop 'chrony.service' >/dev/null || true fi # End automatically added section # Automatically added by dh_installinit/13.14.1ubuntu5 if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -x "/etc/init.d/chrony" ] ; then invoke-rc.d --skip-systemd-native chrony stop || exit 1 fi # End automatically added section # Automatically added by dh_installdeb/13.14.1ubuntu5 dpkg-maintscript-helper rm_conffile /etc/NetworkManager/dispatcher.d/20-chrony 3.5-7\~ chrony -- "$@" # End automatically added section exit 0
修改文件时间
将文件时间修改为当前时间的前一年
删除文件