From b7e00c48850cbb47129d771c93fcddb4bcb5e288 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 13 Dec 2024 11:42:19 +0100 Subject: [PATCH] dev --- ct/nextpvr.sh | 2 +- misc/build.func | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ct/nextpvr.sh b/ct/nextpvr.sh index d9df7143..f6ed63f4 100644 --- a/ct/nextpvr.sh +++ b/ct/nextpvr.sh @@ -24,10 +24,10 @@ base_settings variables color catch_errors -verb_ip6 function update_script() { header_info + verb check_container_storage check_container_resources if [[ ! -d /opt/nextpvr ]]; then diff --git a/misc/build.func b/misc/build.func index cefbae51..f7d85b16 100644 --- a/misc/build.func +++ b/misc/build.func @@ -703,13 +703,20 @@ build_container() { FEATURES="nesting=1" fi +# This function enables verbose +verb() { + if [ "$VERBOSE" = "yes" ]; then + STD="" + else STD="silent"; fi + silent() { "$@" >/dev/null 2>&1; } +} TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null if [ "$var_os" == "alpine" ]; then - export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/develop/misc/alpine-install.func)" + export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/alpine-install.func)" else - export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/develop/misc/install.func)" + export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/install.func)" fi export CACHER="$APT_CACHER" export CACHER_IP="$APT_CACHER_IP" @@ -739,7 +746,7 @@ build_container() { $PW " # This executes create_lxc.sh and creates the container and .conf file - bash -c "$(wget -qLO - https://raw.githubusercontent.com/community-scripts/ProxmoxVE/develop/ct/create_lxc.sh)" || exit + bash -c "$(wget -qLO - https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/create_lxc.sh)" || exit LXC_CONFIG=/etc/pve/lxc/${CTID}.conf if [ "$CT_TYPE" == "0" ]; then @@ -813,7 +820,7 @@ description() { DESCRIPTION=$(cat < - Logo + Logo

${APP} LXC