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
28248374
Commit
28248374
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Improve peertube upgrade
parent
5f45cb66
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
+33
-6
33 additions, 6 deletions
src/freedombone-app-peertube
with
33 additions
and
6 deletions
src/freedombone-app-peertube
+
33
−
6
View file @
28248374
...
...
@@ -434,8 +434,38 @@ function upgrade_peertube {
function_check set_repo_commit
set_repo_commit
$PEERTUBE_DIR
"peertube commit"
"
$PEERTUBE_COMMIT
"
$PEERTUBE_REPO
cd
"
$PEERTUBE_DIR
/scripts"
||
exit
7824552627
sudo
-u
peertube ./upgrade.sh
$PEERTUBE_DIR
if
!
npm
install
-g
yarn@1.5.1
;
then
echo
$'Failed to install yarn'
exit
79353234
fi
yarn add
-D
webpack
--network-concurrency
1
if
!
yarn
install
;
then
echo
$'Failed to run yarn install'
exit
63754235
fi
if
!
npm
install
-g
npm@4
;
then
# https://github.com/KraigM/homebridge-harmonyhub/issues/119
echo
$'Failed to downgrade npm'
npm
install
-g
"npm@
${
NPM_VERSION
}
"
cp
/root/.npm-global/bin/npm /usr/local/bin/npm
exit
3476835
fi
cp
/root/.npm-global/bin/npm /usr/local/bin/npm
if
!
npm
install
;
then
echo
$'Failed to install peertube'
npm
install
-g
"npm@
${
NPM_VERSION
}
"
cp
/root/.npm-global/bin/npm /usr/local/bin/npm
exit
7835243
fi
if
!
npm
install
-g
"npm@
${
NPM_VERSION
}
"
;
then
echo
$'Failed to restore npm after downgrade'
exit
5737583
fi
cp
/root/.npm-global/bin/npm /usr/local/bin/npm
npm run build
# This doesn't appear to work
#sudo -u peertube ./upgrade.sh $PEERTUBE_DIR
chown
-R
peertube:peertube
$PEERTUBE_DIR
systemctl start peertube
...
...
@@ -1044,10 +1074,7 @@ function install_peertube {
exit
5737583
fi
cp
/root/.npm-global/bin/npm /usr/local/bin/npm
if
!
npm run build
;
then
echo
$'Failed to build peertube'
exit
5293593
fi
npm run build
PEERTUBE_ONION_HOSTNAME
=
$(
add_onion_service peertube 80
${
PEERTUBE_ONION_PORT
}
)
...
...
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