From 2a7d78486f1bfa80e40896f7e7ff3616aadfad68 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Tue, 11 Jul 2023 00:03:13 +0200 Subject: [PATCH] - use /etc/php* dirs, release 4 --- 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 d6b320a..753a55c 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: 3 +Release: 4 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) -- 2.46.0