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
490a6c99
Commit
490a6c99
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Permissions on lets encrypt directory
To allow apps using a dedicated user account to read certificates
parent
9e31cf48
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/freedombone-addcert
+5
-0
5 additions, 0 deletions
src/freedombone-addcert
src/freedombone-app-matrix
+6
-1
6 additions, 1 deletion
src/freedombone-app-matrix
src/freedombone-restore-local
+2
-0
2 additions, 0 deletions
src/freedombone-restore-local
with
13 additions
and
1 deletion
src/freedombone-addcert
+
5
−
0
View file @
490a6c99
...
...
@@ -279,6 +279,11 @@ function add_cert_letsencrypt {
update_default_domain
# this group can be used to assign read permissions for
# application user accounts
chgrp
-R
ssl-cert /etc/letsencrypt
chmod
-R
g
=
rX /etc/letsencrypt
nginx_ensite
${
LETSENCRYPT_HOSTNAME
}
systemctl start nginx
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-app-matrix
+
6
−
1
View file @
490a6c99
...
...
@@ -214,7 +214,9 @@ function matrix_configure_homeserver_yaml {
if
[[
$ONION_ONLY
==
"no"
]]
;
then
sed
-i
"s|tls_certificate_path:.*|tls_certificate_path:
\"
/etc/ssl/certs/
${
MATRIX_DOMAIN_NAME
}
.pem
\"
|g"
"
${
filepath
}
"
sed
-i
"s|tls_private_key_path:.*|tls_private_key_path:
\"
/etc/ssl/private/
${
MATRIX_DOMAIN_NAME
}
.key
\"
|g"
"
${
filepath
}
"
if
!
grep
-q
'#tls_private_key_path'
"
${
filepath
}
"
;
then
sed
-i
's|tls_private_key_path|#tls_private_key_path|g'
"
${
filepath
}
"
fi
sed
-i
"s|tls_dh_params_path:.*|tls_dh_params_path:
\"
/etc/ssl/certs/
${
MATRIX_DOMAIN_NAME
}
.dhparam
\"
|g"
"
${
filepath
}
"
fi
sed
-i
's|8448|8449|g'
"
${
filepath
}
"
...
...
@@ -524,6 +526,7 @@ function install_home_server {
groupadd matrix
useradd
-c
"Matrix system account"
-d
$MATRIX_DATA_DIR
-m
-r
-g
matrix matrix
usermod
-a
-G
www-data matrix
usermod
-a
-G
ssl-cert matrix
function_check install_turn
install_turn
...
...
@@ -623,6 +626,8 @@ function install_matrix {
exit
73572
fi
fi
chgrp
-R
ssl-cert /etc/letsencrypt
chmod
-R
g
=
rX /etc/letsencrypt
fi
export
DEBIAN_FRONTEND
=
noninteractive
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-restore-local
+
2
−
0
View file @
490a6c99
...
...
@@ -223,6 +223,8 @@ function restore_letsencrypt {
if
[
-d
$USB_MOUNT
/backup/letsencrypt
]
;
then
echo
$"Restoring Lets Encrypt settings"
restore_directory_from_usb / letsencrypt
chgrp
-R
ssl-cert /etc/letsencrypt
chmod
-R
g
=
rX /etc/letsencrypt
fi
}
...
...
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