Change config to enable easier reverse proxy

Sparklyballs take a look at this and the changes to default.conf.  Will mean the webui should be accessible on IP:PORT/piwigo  and will enable much easier reverse proxying with our Apache container
This commit is contained in:
CHBMB 2015-12-05 01:01:10 +00:00
parent 51c5fd53f7
commit bb245d0561

View file

@ -1,17 +1,17 @@
#!/bin/bash
mkdir -p /config/www/gallery
if [ -f "/config/www/gallery/index.php" ]; then
mkdir -p /config/www/piwigo
if [ -f "/config/www/piwigo/index.php" ]; then
echo "using existing website"
else
echo "fetching piwigo files"
wget "http://piwigo.org/download/dlcounter.php?code=latest" -O /tmp/piwigo.zip
unzip -q /tmp/piwigo.zip -d /tmp
mv /tmp/piwigo/* /config/www/gallery
mv /tmp/piwigo/* /config/www/piwigo
rm -rf /tmp/piwigo /tmp/piwigo.zip
chown -R abc:abc /config/www/gallery
chown -R abc:abc /config/www/piwigo
fi
if [ ! -f "/config/www/gallery/local/config/config.inc.php" ]; then
cp /config/www/gallery/include/config_default.inc.php /config/www/gallery/local/config/config.inc.php
chown abc:abc /config/www/gallery/local/config/config.inc.php
if [ ! -f "/config/www/piwigo/local/config/config.inc.php" ]; then
cp /config/www/piwigo/include/config_default.inc.php /config/www/piwigo/local/config/config.inc.php
chown abc:abc /config/www/piwigo/local/config/config.inc.php
fi