文件操作 - lsphp74-intl.postinst
返回文件管理
返回主菜单
删除本文件
文件: /var/lib/dpkg/info/lsphp74-intl.postinst
编辑文件内容
#!/bin/sh #set -ex #EXTRA# if [ "$1" = "configure" ]; then inidir=/usr/local/lsws/lsphp74/etc/php/7.4/mods-available if [ -e /usr/local/lsws/lsphp74/bin/php-maintscript-helper ] ; then . /usr/local/lsws/lsphp74/bin/php-maintscript-helper elif [ -e /usr/lib/php/php-maintscript-helper ] ; then . /usr/lib/php/php-maintscript-helper fi for dsoname in intl; do inifile=${dsoname}.ini # Register new conffile with UCF ucf /usr/local/lsws/lsphp74/share/lsphp74-intl/intl/${inifile} ${inidir}/${inifile} ucfr --force lsphp74-intl ${inidir}/${inifile} if [ -f "${inidir}/${inifile}.dpkg-new" ]; then md5sum="$(md5sum ${inidir}/${inifile}.dpkg-new | sed -e 's/ .*//')" old_md5sum="$(md5sum ${inidir}/${inifile} | sed -e 's/ .*//')" if [ "$md5sum" = "$old_md5sum" ]; then mv "${inidir}/${inifile}.dpkg-new" "${inidir}/${inifile}" fi fi if [ -e /usr/local/lsws/lsphp74/bin/phpenmod ] ; then /usr/local/lsws/lsphp74/bin/phpenmod ALL ALL ${dsoname} elif [ -e /usr/sbin/phpenmod ] ; then phpenmod ALL ALL ${dsoname} fi done fi exit 0
修改文件时间
将文件时间修改为当前时间的前一年
删除文件