From 35ebfe9d89f85fb7af723e80efcdd13cae3c19c8 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 17 Feb 2015 13:16:25 -0200 Subject: Piwigo: keep data folder --- piwigo-dl | 3 +++ 1 file changed, 3 insertions(+) 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 && \ -- cgit v1.2.3