aboutsummaryrefslogtreecommitdiff
path: root/piwigo-dl
diff options
context:
space:
mode:
Diffstat (limited to 'piwigo-dl')
-rwxr-xr-xpiwigo-dl3
1 files changed, 3 insertions, 0 deletions
diff --git a/piwigo-dl b/piwigo-dl
index 3955057..73b5ee3 100755
--- a/piwigo-dl
+++ b/piwigo-dl
@@ -3,11 +3,14 @@
# Piwgo simple upgrader.
#
+mkdir -p galleries && \
+mkdir -p data && \
wget http://piwigo.org/download/dlcounter.php?code=latest -O latest.zip && \
mv piwigo/ piwigo.old && \
unzip latest.zip && \
rm latest.zip && \
( cd piwigo && rm -rf galleries && ln -s ../galleries/piwigo galleries ) && \
+( cd piwigo && rm -rf _data && ln -s ../data _data ) && \
cp -a piwigo.old/local/config/database.inc.php piwigo/local/config/database.inc.php && \
echo "Audit:" && \
du -hs piwigo && \