Fix php symlink part II

This commit is contained in:
Wildan M 2025-09-28 23:53:47 +07:00
parent 2050bb106b
commit ad86bbb88c

View File

@ -74,7 +74,7 @@ mv ${COOKBOOK_STAGE}/usr/sbin/* ${COOKBOOK_STAGE}/usr/bin/
for bin in "php-cgi" "php-config" "php" "phpdbg" "phpize" "php-fpm"; do
ln -s "$bin$SUFFIX" ${COOKBOOK_STAGE}/usr/bin/$bin
done
rm ${COOKBOOK_STAGE}/usr/bin/phar$SUFFIX
mkdir -p ${COOKBOOK_STAGE}/etc/php/$SUFFIX/conf.d
# will not exist on bash but exist on other shell
rm -f ${COOKBOOK_STAGE}/usr/bin/phar$SUFFIX
cp ${COOKBOOK_SOURCE}/php.ini* ${COOKBOOK_STAGE}/etc/php/$SUFFIX/
"""