Skip to content

Commit 8bba911

Browse files
author
Aleksei Shpakovskii
committed
ENT-2614 Clean php extensions directory before install
Issue was that we had old ones there. We copy new ones there on install, see https://github.com/cfengine/buildscripts/blob/master/packaging/common/cfengine-hub/postinstall.sh#L70
1 parent 79e2b98 commit 8bba911

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packaging/common/cfengine-hub/preinstall.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,10 @@ if [ -d $PREFIX/httpd/htdocs ]; then
347347
find $PREFIX/httpd/htdocs -depth -type d -exec rmdir {} \;
348348
fi
349349

350+
if [ -d $PREFIX/httpd/php/lib/php/extensions/no-debug-non-zts-20170718 ]; then
351+
rm $PREFIX/httpd/php/lib/php/extensions/no-debug-non-zts-20170718/*
352+
fi
353+
350354
# Make a backup of the key CFE_CLIENT_SECRET_KEY, if any, and restore the
351355
# original file content.
352356
#

0 commit comments

Comments
 (0)