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
6ceb3fa2
Commit
6ceb3fa2
authored
5 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade of peertube config file
parent
515a69ef
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#75565
failed
5 years ago
Stage: prepare
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-app-peertube
+12
-2
12 additions, 2 deletions
src/freedombone-app-peertube
with
12 additions
and
2 deletions
src/freedombone-app-peertube
+
12
−
2
View file @
6ceb3fa2
...
@@ -202,8 +202,10 @@ function install_peertube_base {
...
@@ -202,8 +202,10 @@ function install_peertube_base {
peertube_tcp_tuning
peertube_tcp_tuning
cd
${
PEERTUBE_DIR
}
||
exit
72
cd
${
PEERTUBE_DIR
}
||
exit
72
$peertube_local_install
webpack zone.js popper.js jquery @angular/core
$peertube_local_install
$peertube_local_install
$peertube_local_fix
$peertube_local_fix
chown
-R
peertube:peertube
${
PEERTUBE_DIR
}
}
}
function
peertube_setting_registration
{
function
peertube_setting_registration
{
...
@@ -631,6 +633,7 @@ function upgrade_peertube {
...
@@ -631,6 +633,7 @@ function upgrade_peertube {
read_config_param PEERTUBE_DOMAIN_NAME
read_config_param PEERTUBE_DOMAIN_NAME
systemctl stop peertube
systemctl stop peertube
systemctl stop redis
# recreate the link to the latest version
# recreate the link to the latest version
cd
"
$PEERTUBE_DIR
"
||
return
cd
"
$PEERTUBE_DIR
"
||
return
...
@@ -642,7 +645,12 @@ function upgrade_peertube {
...
@@ -642,7 +645,12 @@ function upgrade_peertube {
PEERTUBE_ADMIN_PASSWORD
=
$(
grep
"password: '"
"
$PEERTUBE_DIR
/config/production.yaml"
|
awk
-F
"'"
'{print $2}'
)
PEERTUBE_ADMIN_PASSWORD
=
$(
grep
"password: '"
"
$PEERTUBE_DIR
/config/production.yaml"
|
awk
-F
"'"
'{print $2}'
)
read_config_param MY_EMAIL_ADDRESS
read_config_param MY_EMAIL_ADDRESS
peertube_create_config
peertube_create_config
cp
"
$PEERTUBE_DIR
/config/production.yaml"
"
$PEERTUBE_DIR
/config/production.upgrading"
cd
"
$PEERTUBE_DIR
/versions/
${
PEERTUBE_DOWNLOAD_FILENAME
}
"
||
return
./scripts/upgrade.sh
"
$PEERTUBE_DIR
"
cp
"
$PEERTUBE_DIR
/config/production.upgrading"
"
$PEERTUBE_DIR
/config/production.yaml"
chown
-R
peertube:peertube
$PEERTUBE_DIR
chown
-R
peertube:peertube
$PEERTUBE_DIR
if
[
-d
$PEERTUBE_DIR
/.cache
]
;
then
if
[
-d
$PEERTUBE_DIR
/.cache
]
;
then
...
@@ -650,7 +658,8 @@ function upgrade_peertube {
...
@@ -650,7 +658,8 @@ function upgrade_peertube {
fi
fi
peertube_database_extensions
peertube_database_extensions
systemctl start redis
systemctl start peertube
systemctl start peertube
set_completion_param
"peertube version"
"
$PEERTUBE_VERSION
"
set_completion_param
"peertube version"
"
$PEERTUBE_VERSION
"
...
@@ -1357,6 +1366,7 @@ function install_peertube {
...
@@ -1357,6 +1366,7 @@ function install_peertube {
systemctl
enable
peertube
systemctl
enable
peertube
systemctl daemon-reload
systemctl daemon-reload
systemctl start peertube
systemctl start peertube
systemctl start redis
increment_app_install_progress
increment_app_install_progress
...
...
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