1
0
mirror of https://github.com/newnius/YAO-Dockerfiles.git synced 2025-12-16 02:26:43 +00:00

update yao-portal

This commit is contained in:
2019-04-24 09:57:37 +08:00
parent 607c372b1f
commit dbc3be09f4
3 changed files with 90 additions and 0 deletions

23
yao-portal/dev/bootstrap.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
if [[ -d /config/ ]]; then
if [[ ! -f /config/config.js ]]; then
cp /var/www/html/static/config.js /config/config.js
fi
if [[ ! -f /config/config.inc.php ]]; then
cp /var/www/html/config.inc.php /config/config.inc.php
fi
fi
if [[ -f /config/config.js ]]; then
rm /var/www/html/static/config.js
ln -s /config/config.js /var/www/html/static/config.js
fi
if [[ -f /config/config.inc.php ]]; then
rm /var/www/html/config.inc.php
ln -s /config/config.inc.php /var/www/html/config.inc.php
fi
apache2-foreground