Formatting

This commit is contained in:
TheSpad 2021-05-20 20:27:03 +01:00
parent faf1223d5c
commit 47fad59428

View file

@ -2,26 +2,26 @@
# make our folders
mkdir -p \
/gallery
/gallery
# install piwigo
if [ ! -f "/config/www/gallery/index.php" ] && [ ! -f "/gallery/index.php" ]; then
unzip -q /piwigo/piwigo.zip -d /tmp
mv /tmp/piwigo/* /gallery
rm -rf /tmp/piwigo
unzip -q /piwigo/piwigo.zip -d /tmp
mv /tmp/piwigo/* /gallery
rm -rf /tmp/piwigo
fi
# copy config
if [ ! -f "/config/www/gallery/local/config/config.inc.php" ] && [ ! -f "/gallery/local/config/config.inc.php" ]; then
cp /gallery/include/config_default.inc.php /gallery/local/config/config.inc.php
cp /gallery/include/config_default.inc.php /gallery/local/config/config.inc.php
fi
if [ ! -d "/config/www/gallery" ]; then
ln -s /gallery /config/www/gallery
ln -s /gallery /config/www/gallery
fi
# permissions
chown -R abc:abc \
/config
/config