Skip to content

Commit

Permalink
Merge pull request #654 from nextcloud/fix/apc-enable
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Aug 22, 2024
2 parents fabf3d6 + fc8506e commit 201865f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shallow-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ RUN apt-get update && \
apt-get autoremove -y && apt-get autoclean && apt-get clean && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*

COPY opcache-recommended.ini /usr/local/etc/php/conf.d/
COPY opcache-recommended.ini /etc/php/8.1/cli/conf.d/99-opcache-recommended.ini
COPY apc-cli-enable.ini /etc/php/8.1/cli/conf.d/99-apc-cli-enable.ini

WORKDIR /var/www/html

Expand Down
1 change: 1 addition & 0 deletions shallow-server/apc-cli-enable.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apc.enable_cli=1
11 changes: 11 additions & 0 deletions shallow-server/initnc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,14 @@ else
php occ config:system:set --type string --value '\\OC\\Memcache\\Redis' memcache.distributed
"
fi

if test -z "$APCU"
then
echo "\$APCU not set, ignoring..."
else
su www-data -c "
php occ config:system:set memcache.local --value '\OC\Memcache\APCu'
php occ config:system:set memcache.distributed --value '\OC\Memcache\APCu'
php occ config:system:set hashing_default_password --value true --type boolean
"
fi

0 comments on commit 201865f

Please sign in to comment.