]> TLD Linux GIT Repositories - packages/php-dirs.git/commitdiff
- use /etc/php* dirs, release 4
authorMarcin Krol <hawk@tld-linux.org>
Mon, 10 Jul 2023 22:03:13 +0000 (00:03 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Mon, 10 Jul 2023 22:03:13 +0000 (00:03 +0200)
php-dirs.spec
php-session.sh

index d6b320a00bd95713675fbbfe2ef8ccbe1c01af42..753a55c698540cf594b971a6e354ea467a74eedd 100644 (file)
@@ -6,7 +6,7 @@ Summary:        Common dirs for PHP
 Summary(pl.UTF-8):     Wspólne katalogi dla PHP
 Name:          php-dirs
 Version:       1.10
-Release:       3
+Release:       4
 License:       GPL
 Group:         Base
 Source0:       php-session.sh
index 19bffe2cf118241611a5ab8d46e482742549e609..54dc8654011d419283153c1e5cce336039c85a0b 100755 (executable)
@@ -23,7 +23,7 @@ cleanup_dir() {
 find_gc_time() {
        gc_time=0
        local gc php
-       for php in php $(cd /usr/bin && ls -1 php[0-9] php[0-9][0-9] 2> /dev/null); do
+       for php in php $(cd /etc && ls -1d php[0-9] php[0-9][0-9] 2> /dev/null); do
                gc=
                if [ -x /usr/bin/$php ]; then
                        gc=$($php -r 'echo max(round(ini_get("session.gc_maxlifetime")/3600), 1);' 2> /dev/null)