Skip to content

Commit 353ae15

Browse files
committed
feat: refine user handling in add-user-to-dev script and optimize PHP-FPM detection in Nginx setup
1 parent 3ca96a2 commit 353ae15

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

setup/packages/add-user-to-dev.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if [ "$1" = "--all" ] || [ "$1" = "-a" ]; then
5757
echo ""
5858

5959
added_count=0
60-
while IFS=: read -r username _ uid _ _ home shell; do
60+
while IFS=: read -r username _ uid _ _ home _; do
6161
# Skip if UID < 1000 (system users) or if home doesn't exist
6262
if [ "$uid" -ge 1000 ] && [ -d "$home" ]; then
6363
if add_user_to_group "$username"; then

setup/system/setup-zabbix-nginx.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,11 @@ echo ""
5353

5454
# Detect PHP-FPM version
5555
PHP_FPM_SOCK=""
56-
PHP_VERSION=""
5756

5857
echo "🔍 Detecting PHP-FPM..."
5958
for php_ver in 8.4 8.3 8.2 8.1 8.0 7.4; do
6059
if [ -S "/run/php/php${php_ver}-fpm.sock" ]; then
6160
PHP_FPM_SOCK="/run/php/php${php_ver}-fpm.sock"
62-
PHP_VERSION="$php_ver"
6361
echo "✓ Found PHP ${php_ver} FPM"
6462
break
6563
fi
@@ -68,7 +66,6 @@ done
6866
# Fallback to generic php-fpm
6967
if [ -z "$PHP_FPM_SOCK" ] && [ -S "/run/php/php-fpm.sock" ]; then
7068
PHP_FPM_SOCK="/run/php/php-fpm.sock"
71-
PHP_VERSION="generic"
7269
echo "✓ Found generic PHP FPM"
7370
fi
7471

0 commit comments

Comments
 (0)