aboutsummaryrefslogtreecommitdiff
path: root/piwigo-dl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-02-17 13:16:25 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-02-17 13:16:25 -0200
commit35ebfe9d89f85fb7af723e80efcdd13cae3c19c8 (patch)
tree1b3a7bb60f1b0d2388923c8237a84805a83fcc4d /piwigo-dl
parentb1c3a1ed864b9dc6beb17f5f7ede058ea5ff5624 (diff)
downloaddownloaders-35ebfe9d89f85fb7af723e80efcdd13cae3c19c8.tar.gz
downloaders-35ebfe9d89f85fb7af723e80efcdd13cae3c19c8.tar.bz2
Piwigo: keep data folder
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 && \