* Symlink for custom PHP config created at build time
* Fix ownership issues when switches from old to new runtime
This commit is contained in:
Adam Štrauch 2021-03-28 13:00:53 +02:00
parent 52ec15f971
commit adfd90b941
Signed by: cx
GPG Key ID: 018304FFA8988F8D
3 changed files with 9 additions and 2 deletions

View File

@ -80,3 +80,5 @@ echo "no" | /opt/techs/php-$VERSION/bin/pecl install imagick
echo "zend_extension=opcache.so" > /opt/techs/php-$VERSION/etc/conf.d/extensions.ini
echo "extension=redis.so" >> /opt/techs/php-$VERSION/etc/conf.d/extensions.ini
ln -s /srv/conf/php-fpm/php.ini /opt/techs/php-$VERSION/etc/conf.d/99-app.ini

View File

@ -75,3 +75,5 @@ echo "extension=redis.so" >> /opt/techs/php-$VERSION/etc/conf.d/extensions.ini
# https://github.com/Imagick/imagick/issues/358
# echo "no" | /opt/techs/php-$VERSION/bin/pecl install imagick
# echo "extension=imagick.so" >> /opt/techs/php-$VERSION/etc/conf.d/extensions.ini
ln -s /srv/conf/php-fpm/php.ini /opt/techs/php-$VERSION/etc/conf.d/99-app.ini

View File

@ -5,7 +5,10 @@
##################################
for d in /srv/log /srv/conf /srv/run /srv/conf/supervisor.d /srv/var; do
test ! -e $d && mkdir -p $d
if [ ! -e $d ]; then
mkdir -p $d
chown app:app $d
fi
done
# Bin directory where active tech is located along other tools
@ -32,7 +35,7 @@ rm -f /srv/run/*.pid
if [ -e /srv/.rosti ]; then
echo "app:`cat /srv/.rosti`" | chpasswd
# file with ssh password has different owner
test chown root:root /srv/.rosti
chown root:root /srv/.rosti
chmod 600 /srv/.rosti
fi
if [ -n "$SSHPASS" ]; then