We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee1a0a5 commit cb6d9f2Copy full SHA for cb6d9f2
bin/v-change-sys-release
@@ -36,8 +36,16 @@ if [ -z "$branch" ]; then
36
echo ""
37
exit
38
else
39
+ # Check that requested branch exists
40
+ branch_check=$(curl -s --head -w %{http_code} https://raw.githubusercontent.com/hestiacp/hestiacp/$branch/src/deb/hestia/control -o /dev/null)
41
+ if [ $branch_check -ne "200" ]; then
42
+ echo "Error: invalid branch name specified."
43
+ exit 1
44
+ fi
45
+
46
# Remove old branch variable
47
sed -i "/RELEASE_BRANCH/d" $HESTIA/conf/hestia.conf
48
49
# Set new branch variable
50
echo "RELEASE_BRANCH='$branch'" >> $HESTIA/conf/hestia.conf
51
echo "Changed system to follow release branch: $branch"
0 commit comments