From: Marcin Krol Date: Mon, 10 Jul 2023 22:03:13 +0000 (+0200) Subject: - use /etc/php* dirs, release 4 X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=2a7d78486f1bfa80e40896f7e7ff3616aadfad68;p=packages%2Fphp-dirs.git - use /etc/php* dirs, release 4 --- 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)