Skip to content
Snippets Groups Projects
Commit ad0160da authored by Constantin P.'s avatar Constantin P. 💬
Browse files

Merge branch 'bugfix-13205' of gitlab.demlabs.net:cellframe/cellframe-node into hotfix-15147

parents 5e0bf604 43db610d
No related branches found
No related tags found
1 merge request!1858hotfix-15147
......@@ -260,9 +260,14 @@ amd64:linux.tps:
- ./prod_build/pack.sh --target linux release
- /opt/buildtools/deploy_files.sh pub_cellframe linux/cellframe-node/$CI_COMMIT_REF_NAME/ build_*/*.deb
.amd64:linux.updtr:
amd64:linux.updtr:
extends: .build
stage: build
image: demlabs/debian/amd64:qt5
rules:
- when: manual
allow_failure: true
before_script:
- /opt/buildtools/prepare_environment.sh amd64-linux
- *fill_version_mk
......
#! /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
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment