blob: 39550572217bfe4c8d55a44a96d39705bc414be2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
#
# Piwgo simple upgrader.
#
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 ) && \
cp -a piwigo.old/local/config/database.inc.php piwigo/local/config/database.inc.php && \
echo "Audit:" && \
du -hs piwigo && \
du -hs piwigo.old
|