aboutsummaryrefslogtreecommitdiff
path: root/piwik-dl
diff options
context:
space:
mode:
Diffstat (limited to 'piwik-dl')
-rwxr-xr-xpiwik-dl15
1 files changed, 15 insertions, 0 deletions
diff --git a/piwik-dl b/piwik-dl
new file mode 100755
index 0000000..e266c0b
--- /dev/null
+++ b/piwik-dl
@@ -0,0 +1,15 @@
+#!/bin/bash
+#
+# Piwik simple upgrader.
+#
+
+wget http://piwik.org/latest.zip && \
+mv piwik/ piwik.old && \
+unzip latest.zip && \
+rm *html && \
+rm latest.zip && \
+cp -a piwik.old/config/config.ini.php piwik/config/ && \
+chown -R stats.stats piwik/{config,tmp} && \
+echo "Audit:" && \
+du -hs piwik && \
+du -hs piwik.old