Added a branch selector for testing purposes.

This commit is contained in:
Raphaël Numbus
2026-05-15 11:52:48 +02:00
parent 96be47824f
commit 3cfc72221d
+2 -1
View File
@@ -6,6 +6,7 @@ set -euo pipefail
REPO_URL="https://gittea.dev/numbus/numbus.git"
INSTALL_DIR="/run/user/$(id -u)/numbus-installer"
BRANCH="${BRANCH:-production}"
echo -e "\n ☁️ Initializing Numbus Installer..."
@@ -43,7 +44,7 @@ if [[ -e ${INSTALL_DIR}/config/* ]]; then
echo " ✅ Your files have been moved to the ${OLD_CONFIG_PATH} directory. You can retrieve them there if needed."
fi
git clone "${REPO_URL}" "${INSTALL_DIR}" -q
git clone -b "${BRANCH}" "${REPO_URL}" "${INSTALL_DIR}" -q
# 3. Launch the deployment script
cd "${INSTALL_DIR}/script"