Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
celllframe-node
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Code
Merge requests
17
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
cellframe
celllframe-node
Commits
1c158df4
Commit
1c158df4
authored
1 month ago
by
Nikolay Panko
Browse files
Options
Downloads
Patches
Plain Diff
[*] change link in updtr.sh ; gitlab pipe add manual job for updater build
parent
cf0849b4
No related branches found
No related tags found
3 merge requests
!1867
Bugfix 12422
,
!1865
Bugfix 13205
,
!1858
hotfix-15147
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-0
2 additions, 0 deletions
.gitlab-ci.yml
dist.linux/share/update.sh
+15
-5
15 additions, 5 deletions
dist.linux/share/update.sh
with
17 additions
and
5 deletions
.gitlab-ci.yml
+
2
−
0
View file @
1c158df4
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
GIT_SUBMODULE_UPDATE_FLAGS
:
--force
...
...
@@ -343,3 +344,4 @@ version:up:
-
'
curl
-s
--request
PUT
--header
"PRIVATE-TOKEN:
${ACCESS_TOKEN}"
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/variables/$PATCH_NUM_VAR_NAME"
--form
"key=$PATCH_NUM_VAR_NAME"
--form
"value=${PATCH_NUM}"
||
true'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
dist.linux/share/update.sh
+
15
−
5
View file @
1c158df4
#! /bin/bash
#! /bin/bash
set
-e
STORAGE_URL
=
https://pub.cellframe.net/linux/cellframe-node/master/updates
#STORAGE_URL=https://pub.cellframe.net/linux/cellframe-node/master/updates
STORAGE_URL
=
https://internal-pub.cellframe.net/linux/cellframe-node/bugfix-13205
MACHINE
=
$(
uname
-m
)
...
...
@@ -45,13 +46,22 @@ CURRENT_REBUILD=$(echo $INSTALLED_VERSION | grep -Po "[0-9]([0-9]+)")
echo
"Available patch:
$MAX_REBUILD
| Current patch:
$CURRENT_REBUILD
"
if
((
MAX_REBUILD
>
CURRENT_REBUILD
))
;
then
echo
"Need update cellframe-node to 5.2-
$MAX_REBUILD
..."
# Determine the full version (e.g. 5.3-354) from AVAILABLE_VERSIONS by the patch we found
for
ver
in
"
${
AVAILABLE_VERSIONS
[@]
}
"
do
patch
=
$(
echo
$ver
|
cut
-d
'-'
-f2
)
if
[
"
$patch
"
=
"
$MAX_REBUILD
"
]
;
then
NEW_VERSION
=
$ver
break
fi
done
echo
"Need update cellframe-node to
$NEW_VERSION
..."
else
echo
"No need to update cellframe-node"
exit
0
fi
PACKAGE_NAME
=
"cellframe-node-
5.2-
$MAX_REBUILD
-updtr-amd64
.deb"
PACKAGE_NAME
=
"cellframe-node-
$NEW_VERSION
-updtr-
${
POSTFIX
}
.deb"
echo
"wget"
mkdir
-p
/tmp/cfupd/
wget
$STORAGE_URL
/
$PACKAGE_NAME
-O
/tmp/cfupd/
$PACKAGE_NAME
...
...
@@ -73,4 +83,4 @@ fi
dpkg
-i
/tmp/cfupd/
$PACKAGE_NAME
service cellframe-node restart
\ No newline at end of file
service cellframe-node restart
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