docker-images/pluie/alpine-symfony/pre-init.d/10-symfony.sh

15 lines
406 B
Bash
Raw Normal View History

2016-08-09 01:08:26 +00:00
#!/bin/bash
# @app pluie/alpine-symfony
# @author a-Sansara https://git.pluie.org/pluie/docker-images
if [ ! -z "$CREATE_WWW_DIR" ]; then
2016-08-09 01:08:26 +00:00
cd /tmp
symfony new app $SYMFONY_VERSION
rm -rf /app/web
mv -f app/* /app/
2016-08-09 01:08:26 +00:00
chown -R 1000:apache /app/
chmod -R 777 /app/var
CTN_IP=$(ip route | cut -d ' ' -f3 | head -n1)
sed -i "/::1/s//::1', '$CTN_IP/" /app/web/app_dev.php
2016-08-09 01:08:26 +00:00
fi