Skip to content

Commit 1e936bf

Browse files
author
Dmitry Smirnov
committed
shell fixes
1 parent 5ef8f92 commit 1e936bf

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

bin/start-nginx.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ if ! kill -0 $NGINX_PID 2>/dev/null; then
5151
fi
5252

5353
# Log successful start with PID and paths
54-
START_TIME=$(date +%s)
5554
echo "✅ Service: NGINX is running"
5655
echo " PID $NGINX_PID"
5756
echo " Started at $(date '+%Y-%m-%d %H:%M:%S')"

bin/start-php-fpm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if [ -f "${PHP_POOL_CONFIG}" ]; then
4141
echo " [www] "
4242
# Rest of the configuration
4343
grep -v '^;' "${PHP_POOL_CONFIG}" | grep -v '^$' | grep -v '\[www\]' | while IFS='=' read -r key value; do
44-
if [ ! -z "$key" ]; then
44+
if [ -n "$key" ]; then
4545
printf " %-15s %s\n" "${key// /}" "${value// /}"
4646
fi
4747
done
@@ -60,4 +60,4 @@ echo " Error log ${PHP_ERROR_LOG}"
6060

6161
# Start PHP-FPM
6262
echo " * Starting PHP-FPM..."
63-
exec php-fpm${PHP_VERSION} --nodaemonize --fpm-config "${PHP_FPM_CONFIG}"
63+
exec php-fpm"${PHP_VERSION}" --nodaemonize --fpm-config "${PHP_FPM_CONFIG}"

0 commit comments

Comments
 (0)