@@ -4,9 +4,10 @@ if [ "$SHOW_WELCOME_MESSAGE" = "false" ] || [ "$LOG_OUTPUT_LEVEL" = "off" ] || [
44 echo " 👉 $0 : Container info was display was skipped."
55 fi
66 # Skip the rest of the script
7- return 0
7+ exit 0
88fi
99
10+ # Get OPcache status
1011PHP_OPCACHE_STATUS=$( php -r ' echo ini_get("opcache.enable");' )
1112
1213if [ " $PHP_OPCACHE_STATUS " = " 1" ]; then
1516 PHP_OPCACHE_MESSAGE=" ❌ Disabled"
1617fi
1718
19+ # Get memory limits
20+ MEMORY_LIMIT=$( php -r ' echo ini_get("memory_limit");' )
21+ UPLOAD_LIMIT=$( php -r ' echo ini_get("upload_max_filesize");' )
22+
1823echo '
1924-------------------------------------
2025ℹ️ Container Information
21- -------------------------------------'
22- echo "
23- OS: $( . /etc/os-release; echo " ${PRETTY_NAME} " )
24- Docker user: $( whoami)
25- Docker uid: $( id -u)
26- Docker gid: $( id -g)
27- OPcache: $PHP_OPCACHE_MESSAGE
28- PHP Version: $( php -r ' echo phpversion();' )
29- Image Version: $( cat /etc/serversideup-php-version)
30- "
26+ -------------------------------------
27+ 📦 Versions
28+ • Image: ' " $( cat /etc/serversideup-php-version) " '
29+ • PHP: ' " $( php -r ' echo phpversion();' ) " '
30+ • OS: ' " $( . /etc/os-release; echo " ${PRETTY_NAME} " ) " '
31+
32+ 👤 Container User
33+ • User: ' " $( whoami) " '
34+ • UID: ' " $( id -u) " '
35+ • GID: ' " $( id -g) " '
36+
37+ ⚡ Performance
38+ • OPcache: ' " $PHP_OPCACHE_MESSAGE " '
39+ • Memory Limit: ' " $MEMORY_LIMIT " '
40+ • Upload Limit: ' " $UPLOAD_LIMIT " '
41+
42+ 🔄 Runtime
43+ • Docker CMD: ' " $DOCKER_CMD " '
44+ '
3145
3246if [ " $PHP_OPCACHE_STATUS " = " 0" ]; then
3347 echo " 👉 [NOTICE]: Improve PHP performance by setting PHP_OPCACHE_ENABLE=1 (recommended for production)."
0 commit comments