Skip to content

Commit 5fb42b8

Browse files
authored
CT's: fix missing variable declaration (actualBudget, openziti, umlautadaptarr) (#7483)
1 parent 500c35c commit 5fb42b8

File tree

3 files changed

+59
-59
lines changed

3 files changed

+59
-59
lines changed

ct/actualbudget.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
66
# Source: https://actualbudget.org/
77

88
APP="Actual Budget"
9-
var_tags="finance"
10-
var_cpu="2"
11-
var_ram="2048"
12-
var_disk="4"
13-
var_os="debian"
14-
var_version="12"
15-
var_unprivileged="1"
9+
var_tags="${var_tags:-finance}"
10+
var_cpu="${var_cpu:-2}"
11+
var_ram="${var_ram:-2048}"
12+
var_disk="${var_disk:-4}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-12}"
15+
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
1818
variables

ct/openziti-controller.sh

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m
66
# Source: https://github.com/openziti/ziti
77

88
APP="openziti-controller"
9-
var_tags="network;openziti-controller"
10-
var_cpu="2"
11-
var_ram="1024"
12-
var_disk="8"
13-
var_os="debian"
14-
var_version="12"
15-
var_unprivileged="1"
9+
var_tags="${var_tags:-network;openziti-controller}"
10+
var_cpu="${var_cpu:-2}"
11+
var_ram="${var_ram:-1024}"
12+
var_disk="${var_disk:-8}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-12}"
15+
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
1818
variables
1919
color
2020
catch_errors
2121

2222
function update_script() {
23-
header_info
24-
check_container_storage
25-
check_container_resources
26-
if [[ ! -d /opt/openziti ]]; then
27-
msg_error "No ${APP} Installation Found!"
28-
exit
29-
fi
30-
msg_info "Updating $APP LXC"
31-
$STD apt-get update
32-
$STD apt-get -y upgrade
33-
msg_ok "Updated $APP LXC"
34-
exit
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -d /opt/openziti ]]; then
27+
msg_error "No ${APP} Installation Found!"
28+
exit
29+
fi
30+
msg_info "Updating $APP LXC"
31+
$STD apt-get update
32+
$STD apt-get -y upgrade
33+
msg_ok "Updated $APP LXC"
34+
exit
3535
}
3636

3737
start
@@ -41,4 +41,4 @@ description
4141
msg_ok "Completed Successfully!\n"
4242
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
4343
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
44-
echo -e "${TAB}${GATEWAY}${BGN}https://${IP}:<port>/zac${CL}"
44+
echo -e "${TAB}${GATEWAY}${BGN}https://${IP}:<port>/zac${CL}"

ct/umlautadaptarr.sh

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,47 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
66
# Source: https://github.com/PCJones/UmlautAdaptarr
77

88
APP="UmlautAdaptarr"
9-
var_tags="arr"
10-
var_cpu="1"
11-
var_ram="512"
12-
var_disk="4"
13-
var_os="debian"
14-
var_version="12"
15-
var_unprivileged="1"
9+
var_tags="${var_tags:-arr}"
10+
var_cpu="${var_cpu:-1}"
11+
var_ram="${var_ram:-512}"
12+
var_disk="${var_disk:-4}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-12}"
15+
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
1818
variables
1919
color
2020
catch_errors
2121

2222
function update_script() {
23-
header_info
24-
check_container_storage
25-
check_container_resources
26-
if [[ ! -d /opt/UmlautAdaptarr ]]; then
27-
msg_error "No ${APP} Installation Found!"
28-
exit
29-
fi
30-
RELEASE=$(curl -fsSL https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
31-
if [[ ! -f /opt/UmlautAdaptarr_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/UmlautAdaptarr_version.txt)" ]]; then
32-
msg_info "Stopping Service"
33-
systemctl stop umlautadaptarr
34-
msg_ok "Stopped Service"
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -d /opt/UmlautAdaptarr ]]; then
27+
msg_error "No ${APP} Installation Found!"
28+
exit
29+
fi
30+
RELEASE=$(curl -fsSL https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
31+
if [[ ! -f /opt/UmlautAdaptarr_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/UmlautAdaptarr_version.txt)" ]]; then
32+
msg_info "Stopping Service"
33+
systemctl stop umlautadaptarr
34+
msg_ok "Stopped Service"
3535

36-
msg_info "Updating ${APP}"
37-
temp_file=$(mktemp)
38-
curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file
39-
$STD unzip -u $temp_file '*/**' -d /opt/UmlautAdaptarr
40-
msg_ok "Updated ${APP}"
36+
msg_info "Updating ${APP}"
37+
temp_file=$(mktemp)
38+
curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file
39+
$STD unzip -u $temp_file '*/**' -d /opt/UmlautAdaptarr
40+
msg_ok "Updated ${APP}"
4141

42-
msg_info "Starting Service"
43-
systemctl start umlautadaptarr
44-
msg_ok "Started Service"
45-
msg_ok "$APP has been updated to ${RELEASE}."
46-
else
47-
msg_ok "No update required. ${APP} is already at ${RELEASE}"
48-
fi
49-
exit
42+
msg_info "Starting Service"
43+
systemctl start umlautadaptarr
44+
msg_ok "Started Service"
45+
msg_ok "$APP has been updated to ${RELEASE}."
46+
else
47+
msg_ok "No update required. ${APP} is already at ${RELEASE}"
48+
fi
49+
exit
5050
}
5151
start
5252
build_container

0 commit comments

Comments
 (0)