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
adb03814
Commit
adb03814
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade nodejs to the new LTS
parent
2c73ce77
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-upgrade
+1
-0
1 addition, 0 deletions
src/freedombone-upgrade
src/freedombone-utils-nodejs
+15
-4
15 additions, 4 deletions
src/freedombone-utils-nodejs
with
16 additions
and
4 deletions
src/freedombone-upgrade
+
1
−
0
View file @
adb03814
...
...
@@ -97,6 +97,7 @@ if [ -d "$PROJECT_DIR" ]; then
fi
#rebuild_exim_with_socks
nodejs_upgrade
apt-get
-yq
-t
stretch-backports
install
certbot
email_install_tls
email_disable_chunking
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-nodejs
+
15
−
4
View file @
adb03814
...
...
@@ -35,9 +35,9 @@ VARIANTS='mesh'
# change these versions at your peril. Things will often crash if you don't
# have specifically the correct versions
NODEJS_VERSION
=
'
6
.11.
4
'
NODEJS_VERSION
=
'
8
.11.
1
'
NODEJS_N_VERSION
=
'2.1.7'
NPM_VERSION
=
'
4.0.5
'
NPM_VERSION
=
'
5.6.0
'
# This file keeps track of the apps needing nodejs
# so that it can be removed if tere are no apps which need it
...
...
@@ -75,8 +75,8 @@ function mesh_install_nodejs {
exit
6389252
fi
$mesh_install_nodejs_prefix
apt-key add /root/node.gpg.key
echo
"deb https://deb.nodesource.com/node_
6
.x stretch main"
>
"
$rootdir
/etc/apt/sources.list.d/nodesource.list"
echo
"deb-src https://deb.nodesource.com/node_
6
.x stretch main"
>>
"
$rootdir
/etc/apt/sources.list.d/nodesource.list"
echo
"deb https://deb.nodesource.com/node_
8
.x stretch main"
>
"
$rootdir
/etc/apt/sources.list.d/nodesource.list"
echo
"deb-src https://deb.nodesource.com/node_
8
.x stretch main"
>>
"
$rootdir
/etc/apt/sources.list.d/nodesource.list"
$mesh_install_nodejs_prefix
apt-mark
-q
unhold nodejs
$mesh_install_nodejs_prefix
apt-get update
...
...
@@ -159,6 +159,17 @@ EOF
rm
"
$rootdir
/usr/bin/test_nodejs_install"
}
function
nodejs_upgrade
{
if
[
!
-f
/etc/apt/sources.list.d/nodesource.list
]
;
then
return
fi
if
grep
-q
"node_8.x"
/etc/apt/sources.list.d/nodesource.list
;
then
return
fi
rootdir
=
mesh_install_nodejs
}
function
remove_nodejs
{
if
[
!
"
$1
"
]
;
then
return
...
...
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