diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2021-02-19 20:53:50 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2021-02-20 08:59:50 +0100 |
commit | 782ab7566ebf43eb6feeedace1c58e6632f37e10 (patch) | |
tree | 60111bab7fbd4e32c69f6049ae8c78ceb4aba782 /extra/source/php8/doinst.sh | |
parent | ee1a7d961cd6886f9beadcf29069ecdf36113168 (diff) | |
download | current-782ab7566ebf43eb6feeedace1c58e6632f37e10.tar.gz current-782ab7566ebf43eb6feeedace1c58e6632f37e10.tar.xz |
Fri Feb 19 20:53:50 UTC 202120210219205350
d/autoconf-archive-2021.02.19-noarch-1.txz: Upgraded.
d/python3-3.9.2-x86_64-1.txz: Upgraded.
kde/libksysguard-5.21.0-x86_64-2.txz: Rebuilt.
Patched to fix crash without systemd. Thanks to LuckyCyborg.
l/imagemagick-7.0.11_0-x86_64-1.txz: Upgraded.
extra/php8/php8-8.0.2-x86_64-1.txz: Added.
Diffstat (limited to 'extra/source/php8/doinst.sh')
-rw-r--r-- | extra/source/php8/doinst.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/extra/source/php8/doinst.sh b/extra/source/php8/doinst.sh new file mode 100644 index 000000000..cd084784e --- /dev/null +++ b/extra/source/php8/doinst.sh @@ -0,0 +1,29 @@ +if [ "`cat etc/httpd/mod_php.conf 2> /dev/null`" = "" ]; then + cp -a etc/httpd/mod_php.conf.new etc/httpd/mod_php.conf +fi + +config() { + NEW="$1" + OLD="`dirname $NEW`/`basename $NEW .new`" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} +# Keep same perms on rc.php-fpm.new: +if [ -e etc/rc.d/rc.php-fpm ]; then + cp -a etc/rc.d/rc.php-fpm etc/rc.d/rc.php-fpm.new.incoming + cat etc/rc.d/rc.php-fpm.new > etc/rc.d/rc.php-fpm.new.incoming + mv etc/rc.d/rc.php-fpm.new.incoming etc/rc.d/rc.php-fpm.new +fi +config etc/rc.d/rc.php-fpm.new +cp -a etc/php.ini-production etc/php.ini.new +config etc/php.ini.new +cp -a etc/php-fpm.conf.default etc/php-fpm.conf.new +config etc/php-fpm.conf.new +cp -a etc/php-fpm.conf.default etc/php-fpm.conf.new +config etc/php-fpm.conf.new +config etc/httpd/mod_php.conf.new |