Skip to content
Snippets Groups Projects
Commit 7d488291 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Updates DB after upgrades, fixes #42

parent 00783734
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ FROM indiepaas/nginx-php ...@@ -3,6 +3,7 @@ FROM indiepaas/nginx-php
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
php5-gd \ php5-gd \
php5-geoip \ php5-geoip \
php5-cli \
php-apc && \ php-apc && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
curl "http://builds.piwik.org/piwik-latest.tar.gz" | tar xz && \ curl "http://builds.piwik.org/piwik-latest.tar.gz" | tar xz && \
......
...@@ -5,10 +5,6 @@ source /etc/environment ...@@ -5,10 +5,6 @@ source /etc/environment
echo ">> adding softlink from /piwik to /" echo ">> adding softlink from /piwik to /"
rm -rf /usr/share/nginx/html rm -rf /usr/share/nginx/html
ln -s /piwik /usr/share/nginx/html ln -s /piwik /usr/share/nginx/html
mkdir /usr/share/nginx/html/tmp
chown -R www-data:www-data /usr/share/nginx/html/
chmod -R 755 /usr/share/nginx/html/tmp
if [ -z ${DB_PASS+x} ] || [ -z ${DB_USER+x} ] if [ -z ${DB_PASS+x} ] || [ -z ${DB_USER+x} ]
then then
...@@ -208,6 +204,11 @@ then ...@@ -208,6 +204,11 @@ then
fi fi
/piwik/console core:update --yes
chown -R www-data:www-data /piwik
chmod -R 755 /piwik/tmp
echo ">> update CorePlugins" echo ">> update CorePlugins"
curl "http://${URL}/index.php?updateCorePlugins=1" \ curl "http://${URL}/index.php?updateCorePlugins=1" \
2> /dev/null 2> /dev/null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment