aboutsummaryrefslogtreecommitdiff
path: root/piwigo-dl
blob: 73b5ee3dd693fbb410287f525498333f8d5d34ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
#
# 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 && \
du -hs piwigo.old