Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos
Commits
54235d38
Commit
54235d38
authored
Apr 01, 2022
by
HongzheWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/matomo:use component diff in matomo
parent
4bd247db
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
software/matomo/buildout.hash.cfg
software/matomo/buildout.hash.cfg
+2
-2
software/matomo/matomo-backup.sh.in
software/matomo/matomo-backup.sh.in
+3
-3
software/matomo/matomo-instance.cfg.in
software/matomo/matomo-instance.cfg.in
+2
-1
software/matomo/software.cfg
software/matomo/software.cfg
+3
-0
No files found.
software/matomo/buildout.hash.cfg
View file @
54235d38
...
@@ -19,8 +19,8 @@ md5sum = 9940e05d5e624a7884f4e6e062355798
...
@@ -19,8 +19,8 @@ md5sum = 9940e05d5e624a7884f4e6e062355798
[template-matomo-instance]
[template-matomo-instance]
filename = matomo-instance.cfg.in
filename = matomo-instance.cfg.in
md5sum =
de40893a14ca624492d47759e75db64a
md5sum =
34925db56b5f97e5a29080fb83fbefa8
[template-matomo-backup.sh]
[template-matomo-backup.sh]
filename = matomo-backup.sh.in
filename = matomo-backup.sh.in
md5sum =
bb0a10cb03dde2a3b43980a6b341f57
4
md5sum =
fb29ad59813ef62c3f5934d4a0d90e1
4
software/matomo/matomo-backup.sh.in
View file @
54235d38
...
@@ -16,7 +16,7 @@ fi
...
@@ -16,7 +16,7 @@ fi
trap
'rm -rf "$TMPFILE"'
EXIT TERM INT
trap
'rm -rf "$TMPFILE"'
EXIT TERM INT
#we reserve backup folder in a month
#we reserve backup folder in a month
{{
parameter_dict[
'find
_bin'
]
}}
/bin/find
{{
parameter_dict[
'dir-backup'
]
}}
-mtime
+30
-type
d |
{{
parameter_dict[
'find_
bin'
]
}}
/bin/xargs
rm
-rf
{{
parameter_dict[
'find
-bin'
]
}}
/bin/find
{{
parameter_dict[
'dir-backup'
]
}}
-mtime
+30
-type
d |
{{
parameter_dict[
'find-
bin'
]
}}
/bin/xargs
rm
-rf
#backup
#backup
...
@@ -28,11 +28,11 @@ cp -rf {{ parameter_dict['document-root'] }}/matomo/plugins $TMPFILE/plugins
...
@@ -28,11 +28,11 @@ cp -rf {{ parameter_dict['document-root'] }}/matomo/plugins $TMPFILE/plugins
#check if copy-action finish well
#check if copy-action finish well
if
test
!
-z
"
$(
diff
-r
$TMPFILE
/config
{{
parameter_dict[
'document-root'
]
}}
/matomo/config
)
"
;
then
if
test
!
-z
"
$(
{{
parameter_dict[
'diff-bin'
]
}}
/bin/
diff
-r
$TMPFILE
/config
{{
parameter_dict[
'document-root'
]
}}
/matomo/config
)
"
;
then
exit
1
exit
1
fi
fi
if
test
!
-z
"
$(
diff
-r
$TMPFILE
/plugins
{{
parameter_dict[
'document-root'
]
}}
/matomo/plugins
)
"
;
then
if
test
!
-z
"
$(
{{
parameter_dict[
'diff-bin'
]
}}
/bin/
diff
-r
$TMPFILE
/plugins
{{
parameter_dict[
'document-root'
]
}}
/matomo/plugins
)
"
;
then
exit
1
exit
1
fi
fi
...
...
software/matomo/matomo-instance.cfg.in
View file @
54235d38
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
[instance-parameter]
[instance-parameter]
matomo = ${:document-root}
matomo = ${:document-root}
dir-backup = ${directory:backup}
dir-backup = ${directory:backup}
find_bin = {{ findutils_location }}
find-bin = {{ findutils_location }}
diff-bin = {{ diffutils_location }}
#php.ini parameters
#php.ini parameters
php.memory_limit = 512M
php.memory_limit = 512M
...
...
software/matomo/software.cfg
View file @
54235d38
...
@@ -6,6 +6,8 @@ extends =
...
@@ -6,6 +6,8 @@ extends =
# "slapos" stack describes basic things needed for 99.9% of SlapOS Software
# "slapos" stack describes basic things needed for 99.9% of SlapOS Software
../../stack/slapos.cfg
../../stack/slapos.cfg
../../component/diffutils/buildout.cfg
parts =
parts =
# Call installation of slapos.cookbook egg defined in stack/slapos.cfg (needed
# Call installation of slapos.cookbook egg defined in stack/slapos.cfg (needed
# in 99,9% of Slapos Software Releases)
# in 99,9% of Slapos Software Releases)
...
@@ -44,6 +46,7 @@ rendered = ${buildout:directory}/instance-matomo.cfg
...
@@ -44,6 +46,7 @@ rendered = ${buildout:directory}/instance-matomo.cfg
extensions = jinja2.ext.do
extensions = jinja2.ext.do
context =
context =
key findutils_location findutils:location
key findutils_location findutils:location
key diffutils_location diffutils:location
key gzip_location gzip:location
key gzip_location gzip:location
key python3_location python3:location
key python3_location python3:location
key php_location apache-php:location
key php_location apache-php:location
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment