Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
18
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libre.sh
compose.libre.sh
Commits
7d488291
Commit
7d488291
authored
9 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
Updates DB after upgrades, fixes #42
parent
00783734
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dockerfiles/services/piwik/Dockerfile
+1
-0
1 addition, 0 deletions
dockerfiles/services/piwik/Dockerfile
dockerfiles/services/piwik/startup-piwik.sh
+5
-4
5 additions, 4 deletions
dockerfiles/services/piwik/startup-piwik.sh
with
6 additions
and
4 deletions
dockerfiles/services/piwik/Dockerfile
+
1
−
0
View file @
7d488291
...
...
@@ -3,6 +3,7 @@ FROM indiepaas/nginx-php
RUN
apt-get update
&&
apt-get
install
-y
\
php5-gd
\
php5-geoip
\
php5-cli
\
php-apc
&&
\
rm
-rf
/var/lib/apt/lists/
*
&&
\
curl
"http://builds.piwik.org/piwik-latest.tar.gz"
|
tar
xz
&&
\
...
...
This diff is collapsed.
Click to expand it.
dockerfiles/services/piwik/startup-piwik.sh
+
5
−
4
View file @
7d488291
...
...
@@ -5,10 +5,6 @@ source /etc/environment
echo
">> adding softlink from /piwik to /"
rm
-rf
/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
}
]
then
...
...
@@ -208,6 +204,11 @@ then
fi
/piwik/console core:update
--yes
chown
-R
www-data:www-data /piwik
chmod
-R
755 /piwik/tmp
echo
">> update CorePlugins"
curl
"http://
${
URL
}
/index.php?updateCorePlugins=1"
\
2> /dev/null
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment