[packages/php-dirs] Rel 2; base on /etc/php directories since these always exist (while binaries are optional)

arekm arekm at pld-linux.org
Fri Jun 24 10:42:59 CEST 2022


commit 8b8822b9a17c06cd1d3f0b803e6a9830c962353e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Jun 24 10:42:47 2022 +0200

    Rel 2; base on /etc/php directories since these always exist (while binaries are optional)

 php-dirs.spec  | 2 +-
 php-session.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/php-dirs.spec b/php-dirs.spec
index 5ac3a67..0764c7b 100644
--- a/php-dirs.spec
+++ b/php-dirs.spec
@@ -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:	1
+Release:	2
 License:	GPL
 Group:		Base
 Source0:	php-session.sh
diff --git a/php-session.sh b/php-session.sh
index 19bffe2..54dc865 100755
--- a/php-session.sh
+++ b/php-session.sh
@@ -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)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-dirs.git/commitdiff/8b8822b9a17c06cd1d3f0b803e6a9830c962353e



More information about the pld-cvs-commit mailing list