Fixes
* Symlink for custom PHP config created at build time * Fix ownership issues when switches from old to new runtime
This commit is contained in:
parent
52ec15f971
commit
adfd90b941
@ -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
|
||||
|
@ -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
|
||||
|
7
start.sh
7
start.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user