文件操作 - lsphp83-mysql.postinst
返回文件管理
返回主菜单
删除本文件
文件: /var/lib/dpkg/info/lsphp83-mysql.postinst
编辑文件内容
#!/bin/sh #set -ex #EXTRA# if [ "$1" = "configure" ]; then inidir=/usr/local/lsws/lsphp83/etc/php/8.3/mods-available if [ -e /usr/local/lsws/lsphp83/bin/php-maintscript-helper ] ; then . /usr/local/lsws/lsphp83/bin/php-maintscript-helper elif [ -e /usr/lib/php/php-maintscript-helper ] ; then . /usr/lib/php/php-maintscript-helper fi for dsoname in mysqli pdo_mysql; do inifile=${dsoname}.ini # Register new conffile with UCF ucf /usr/local/lsws/lsphp83/share/lsphp83-mysql/mysql/${inifile} ${inidir}/${inifile} ucfr --force lsphp83-mysql ${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/lsphp83/bin/phpenmod ] ; then /usr/local/lsws/lsphp83/bin/phpenmod ALL ALL ${dsoname} elif [ -e /usr/sbin/phpenmod ] ; then phpenmod ALL ALL ${dsoname} fi done fi exit 0
修改文件时间
将文件时间修改为当前时间的前一年
删除文件