Skip to content

Commit 3f86123

Browse files
committed
feta: tee
1 parent eda105b commit 3f86123

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/opcache-setup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

33
if [[ ${OPCACHE_ENABLED} == true ]]; then
4-
echo "opcache.enable=1" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
4+
echo "opcache.enable=1" | tee -a /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
55
echo "opcache.max_accelerated_files=$(echo $[ 1000 + $(find . -type f -name "*.php" | wc -l) ])" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
66
else
7-
echo "opcache.enable=0" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
7+
echo "opcache.enable=0" | tee -a /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
88
fi

0 commit comments

Comments
 (0)