Skip to content

Commit 72c8510

Browse files
author
Dmytro Lukianenko
committed
create docker image dmi3yy/evolution-cms
1 parent aedb999 commit 72c8510

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker/entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ if [ "$EVO_AUTO_INSTALL" = "true" ] && [ ! -f "/var/www/html/config.php" ]; then
9595
if [ -n "$EVO_MAIN_PACKAGE_NAME" ]; then
9696
echo "📦 Creating main package: $EVO_MAIN_PACKAGE_NAME"
9797
php artisan package:create "$EVO_MAIN_PACKAGE_NAME"
98-
echo "<?php return \"EvolutionCMS\\\\$EVO_MAIN_PACKAGE_NAME\\\\Controllers\\\\\"; ?>" > custom/config/cms/settings/ControllerNamespace.php
98+
# Write PHP namespace string with proper escaping and trailing backslash
99+
echo "<?php return 'EvolutionCMS\\\\$EVO_MAIN_PACKAGE_NAME\\\\Controllers\\\\'; ?>" > custom/config/cms/settings/ControllerNamespace.php
99100
fi
100101

101102
# Install TinyMCE5 if enabled

0 commit comments

Comments
 (0)