Skip to content

Commit

Permalink
Fixes #566 Remove redundant opcache configuration (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
Iolaum authored and nachoparker committed Jul 23, 2018
1 parent d3f5f5d commit 965716d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ EOF
install_script nc-backup.sh
cd - &>/dev/null

# remove redundant opcache configuration. Leave until update bug is fixed -> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815968
[[ "$( ls -l /etc/php/7.0/fpm/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.0/fpm/conf.d/*-opcache.ini | tail -1 )"
[[ "$( ls -l /etc/php/7.0/cli/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.0/cli/conf.d/*-opcache.ini | tail -1 )"

} # end - only live updates

exit 0
Expand Down

0 comments on commit 965716d

Please sign in to comment.