Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Context Sensitive Group
freedombone
Commits
079e3018
Commit
079e3018
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade log configuration
parent
f99d3178
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-app-matrix
+56
-0
56 additions, 0 deletions
src/freedombone-app-matrix
with
56 additions
and
0 deletions
src/freedombone-app-matrix
+
56
−
0
View file @
079e3018
...
...
@@ -551,6 +551,18 @@ function upgrade_matrix {
# shellcheck disable=SC2230
MATRIX_PIP
=
$(
which pip3
)
if
[[
"
$ONION_ONLY
"
==
'no'
]]
;
then
if
!
grep
-q
'encoding: utf8'
"
$MATRIX_DATA_DIR
/matrix.
${
MATRIX_DOMAIN_NAME
}
.log.config"
;
then
sed
-i
'/filters:/a encoding: utf8'
"
$MATRIX_DATA_DIR
/matrix.
${
MATRIX_DOMAIN_NAME
}
.log.config"
sed
-i
's|encoding: utf8| encoding: utf8|g'
"
$MATRIX_DATA_DIR
/matrix.
${
MATRIX_DOMAIN_NAME
}
.log.config"
fi
else
if
!
grep
-q
'encoding: utf8'
"
$MATRIX_DATA_DIR
/matrix.
${
MATRIX_ONION_HOSTNAME
}
.log.config"
;
then
sed
-i
'/filters:/a encoding: utf8'
"
$MATRIX_DATA_DIR
/matrix.
${
MATRIX_ONION_HOSTNAME
}
.log.config"
sed
-i
's|encoding: utf8| encoding: utf8|g'
"
$MATRIX_DATA_DIR
/matrix.
${
MATRIX_ONION_HOSTNAME
}
.log.config"
fi
fi
fi
fi
...
...
@@ -573,6 +585,16 @@ function upgrade_matrix {
$MATRIX_PIP
install
--upgrade
--force
"phonenumbers>=8.2.0"
$MATRIX_PIP
install
--upgrade
--force
"sortedcontainers>=2.0.4"
$MATRIX_PIP
install
--upgrade
--force
"prometheus_client>=0.3.0"
$MATRIX_PIP
install
--upgrade
--force
"daemonize>=2.3.1"
$MATRIX_PIP
install
--upgrade
--force
"pymacaroons-pynacl>=0.9.3"
$MATRIX_PIP
install
--upgrade
--force
"Twisted>=17.1.0"
$MATRIX_PIP
install
--upgrade
--force
"msgpack-python>=0.4.2"
$MATRIX_PIP
install
--upgrade
--force
"unpaddedbase64>=1.1.0"
$MATRIX_PIP
install
--upgrade
--force
"netaddr>=0.7.18"
$MATRIX_PIP
install
--upgrade
--force
"signedjson>=1.0.0"
$MATRIX_PIP
install
--upgrade
--force
"pysaml2>=3.0.0"
$MATRIX_PIP
install
--upgrade
--force
"signedjson>=1.0.0"
$MATRIX_PIP
install
--upgrade
--force
"psutil>=2.0.0"
if
[
-f
/etc/ssl/certs/
${
MATRIX_DOMAIN_NAME
}
.dhparam
]
;
then
chmod
755 /etc/ssl/certs/
${
MATRIX_DOMAIN_NAME
}
.dhparam
...
...
@@ -968,6 +990,40 @@ function install_matrix {
increment_app_install_progress
$MATRIX_PIP
install
--upgrade
--force
"daemonize>=2.3.1"
increment_app_install_progress
$MATRIX_PIP
install
--upgrade
--force
"pymacaroons-pynacl>=0.9.3"
increment_app_install_progress
$MATRIX_PIP
install
--upgrade
--force
"Twisted>=17.1.0"
increment_app_install_progress
$MATRIX_PIP
install
--upgrade
--force
"msgpack-python>=0.4.2"
increment_app_install_progress
$MATRIX_PIP
install
--upgrade
--force
"unpaddedbase64>=1.1.0"
increment_app_install_progress
$MATRIX_PIP
install
--upgrade
--force
"netaddr>=0.7.18"
increment_app_install_progress
$MATRIX_PIP
install
--upgrade
--force
"pysaml2>=3.0.0"
increment_app_install_progress
$MATRIX_PIP
install
--upgrade
--force
"signedjson>=1.0.0"
increment_app_install_progress
$MATRIX_PIP
install
--upgrade
--force
"psutil>=2.0.0"
function_check create_matrix_nginx_config
create_matrix_nginx_config
...
...
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