mirror of
https://github.com/runcitadel/core.git
synced 2024-11-14 09:50:22 +00:00
3c32a62cc5
Co-authored-by: nolim1t - f6287b82CC84bcbd <nolim1t@users.noreply.github.com> Co-authored-by: Philipp Walter <philippwalter@pm.me>
17 lines
509 B
Bash
Executable File
17 lines
509 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# SPDX-FileCopyrightText: 2021-2022 Citadel and contributors
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
NODE_ROOT="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/..)"
|
|
|
|
# IN ${NODE_ROOT}/.env, change the UPDATE_CHANNEL to the desired channel ($1)
|
|
# If $1 is not given, fail
|
|
if [ -z "$1" ]; then
|
|
echo "Usage: $0 <channel>"
|
|
echo "Channel can currently either be 'stable', 'beta' or 'c-lightning'"
|
|
exit 1
|
|
fi
|
|
sed -i "s/UPDATE_CHANNEL=.*/UPDATE_CHANNEL=${1}/" "${NODE_ROOT}/.env"
|