Skip to content

Commit

Permalink
fix syntax err caus of docker syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
rnsrk committed Nov 8, 2024
1 parent 9547687 commit 5e6800b
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,26 @@ echo -e "\n"

# Output buffering is not enabled. This may degrade Drupal's performance.
# You can enable output buffering by default in your PHP settings.
RUN { \
echo 'output_buffering = 4096'; \
} >> /usr/local/etc/php/conf.d/99-drupal-recommended.ini;
echo -e "\033[0;33mSET PHP OUTPUT BUFFERING.\033[0m"
{ \
echo 'output_buffering = 4096'; \
} >> /usr/local/etc/php/conf.d/99-drupal-recommended.ini;
echo -e "\033[0;32mOUTPUT BUFFERING SET.\033[0m\n"

# see https://secure.php.net/manual/en/opcache.installation.php
RUN { \
echo -e "\033[0;33mSET PHP OPCACHE RECOMMENDED SETTINGS.\033[0m"
{ \
echo 'opcache.memory_consumption=128'; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=4000'; \
echo 'opcache.revalidate_freq=0'; \
echo 'opcache.fast_shutdown=1'; \
} >> /usr/local/etc/php/conf.d/99-opcache-recommended.ini;
} >> /usr/local/etc/php/conf.d/99-opcache-recommended.ini;
echo -e "\033[0;32mOPCACHE RECOMMENDED SETTINGS SET.\033[0m\n"

# set memory settings for WissKi
RUN { \
echo -e "\033[0;33mSET PHP MEMORY SETTINGS.\033[0m"
{ \
echo 'max_execution_time = 1200'; \
echo 'max_input_time = 600'; \
echo 'max_input_nesting_level = 640'; \
Expand All @@ -47,7 +52,8 @@ RUN { \
echo 'upload_max_filesize = 512M'; \
echo 'max_file_uploads = 50'; \
echo 'post_max_size = 512M'; \
} >> /usr/local/etc/php/conf.d/99-wisski-recommended.ini;
} >> /usr/local/etc/php/conf.d/99-wisski-recommended.ini;
echo -e "\033[0;32mPHP MEMORY SETTINGS SET.\033[0m\n"

# Define the path to the settings.php file
SETTINGS_FILE="/opt/drupal/web/sites/default/settings.php"
Expand Down

0 comments on commit 5e6800b

Please sign in to comment.