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
b9e9ba5e
Commit
b9e9ba5e
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Peertube tcp tuning
parent
bf927f8c
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-peertube
+11
-0
11 additions, 0 deletions
src/freedombone-app-peertube
with
11 additions
and
0 deletions
src/freedombone-app-peertube
+
11
−
0
View file @
b9e9ba5e
...
...
@@ -57,6 +57,13 @@ peertube_variables=(PEERTUBE_DOMAIN_NAME
ARCHITECTURE
MY_EMAIL_ADDRESS
)
function
peertube_tcp_tuning
{
if
[
-f
"
$PEERTUBE_DIR
/support/sysctl.d/30-peertube-tcp.conf"
]
;
then
cp
"
$PEERTUBE_DIR
/support/sysctl.d/30-peertube-tcp.conf"
/etc/sysctl.d/
sysctl
-p
/etc/sysctl.d/30-peertube-tcp.conf
fi
}
function
peertube_setting_registration
{
allow_registrations
=
"
$1
"
...
...
@@ -490,6 +497,8 @@ function upgrade_peertube {
sudo
-u
postgres psql peertube
-c
'CREATE EXTENSION IF NOT EXISTS unaccent;'
sudo
-u
postgres psql peertube
-c
'CREATE EXTENSION IF NOT EXISTS pg_trgm;'
peertube_tcp_tuning
systemctl start peertube
}
...
...
@@ -1026,6 +1035,8 @@ function install_peertube {
git checkout
$PEERTUBE_COMMIT
-b
$PEERTUBE_COMMIT
set_completion_param
"peertube commit"
"
$PEERTUBE_COMMIT
"
peertube_tcp_tuning
if
!
npm
install
-g
yarn@1.10.1
;
then
echo
$'Failed to install yarn'
exit
79353234
...
...
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