mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-07-08 17:52:35 +02:00
Compare commits
4 Commits
9dfad63c09
...
b5dac2719e
| Author | SHA1 | Date | |
|---|---|---|---|
| b5dac2719e | |||
| a17b21e7d9 | |||
| 799e6381f6 | |||
| 2441df8ac9 |
@@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
# Author: Simon Friedrich (lengschder97)
|
# Author: Simon Friedrich (lengschder97)
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
@@ -18,8 +17,6 @@ var_unprivileged="${var_unprivileged:-1}"
|
|||||||
var_nesting="${var_nesting:-1}"
|
var_nesting="${var_nesting:-1}"
|
||||||
var_keyctl="${var_keyctl:-1}"
|
var_keyctl="${var_keyctl:-1}"
|
||||||
|
|
||||||
# App-specific variables (not in build.func whitelist)
|
|
||||||
# Export so they survive lxc-attach into the container
|
|
||||||
export var_forgejo_instance="${var_forgejo_instance:-}"
|
export var_forgejo_instance="${var_forgejo_instance:-}"
|
||||||
export var_forgejo_runner_token="${var_forgejo_runner_token:-}"
|
export var_forgejo_runner_token="${var_forgejo_runner_token:-}"
|
||||||
export var_runner_labels="${var_runner_labels:-}"
|
export var_runner_labels="${var_runner_labels:-}"
|
||||||
@@ -62,9 +59,6 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
# Fail early if running unattended without required values
|
|
||||||
# mode is only set when the user explicitly passes it (automating);
|
|
||||||
# bare "bash -c $(curl ...)" leaves mode empty and shows the whiptail menu
|
|
||||||
if [[ -n "${mode:-}" ]]; then
|
if [[ -n "${mode:-}" ]]; then
|
||||||
if [[ -z "${var_forgejo_instance:-}" ]]; then
|
if [[ -z "${var_forgejo_instance:-}" ]]; then
|
||||||
msg_error "var_forgejo_instance is required for unattended installs."
|
msg_error "var_forgejo_instance is required for unattended installs."
|
||||||
@@ -82,3 +76,4 @@ description
|
|||||||
|
|
||||||
msg_ok "Completed successfully!\n"
|
msg_ok "Completed successfully!\n"
|
||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
|
echo -e "${INFO}${YW} After first boot, check your Forgejo Instance for the new Runner.${CL}"
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ catch_errors
|
|||||||
setting_up_container
|
setting_up_container
|
||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
setup_yq
|
setup_yq
|
||||||
|
|
||||||
# Get required configuration — skip prompts if already set (generated/unattended mode)
|
|
||||||
if [[ -z "${var_forgejo_instance:-}" ]]; then
|
if [[ -z "${var_forgejo_instance:-}" ]]; then
|
||||||
read -r -p "${TAB3}Forgejo Instance URL (e.g. https://codeberg.org): " var_forgejo_instance
|
read -r -p "${TAB3}Forgejo Instance URL (e.g. https://codeberg.org): " var_forgejo_instance
|
||||||
var_forgejo_instance="${var_forgejo_instance:-https://codeberg.org}"
|
var_forgejo_instance="${var_forgejo_instance:-https://codeberg.org}"
|
||||||
@@ -37,7 +37,6 @@ if [[ -z "${var_forgejo_runner_token:-}" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Runner labels — default is always included; additional labels are appended
|
|
||||||
DEFAULT_RUNNER_LABELS="linux-amd64:docker://node:22-bookworm"
|
DEFAULT_RUNNER_LABELS="linux-amd64:docker://node:22-bookworm"
|
||||||
if [[ -z "${var_runner_labels:-}" ]]; then
|
if [[ -z "${var_runner_labels:-}" ]]; then
|
||||||
read -r -p "${TAB3}Additional runner labels (comma-separated, or leave blank for default only): " var_runner_labels
|
read -r -p "${TAB3}Additional runner labels (comma-separated, or leave blank for default only): " var_runner_labels
|
||||||
|
|||||||
Reference in New Issue
Block a user