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

update yao-portal

This commit is contained in:
2019-12-04 18:52:14 +08:00
parent f79ab58e5d
commit 610ee98efb
3 changed files with 2 additions and 65 deletions

View File

@@ -1,23 +1,14 @@
#!/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
apache2-foreground