@@ -6,47 +6,47 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
66# Source: https://github.com/PCJones/UmlautAdaptarr
77
88APP=" 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
1717header_info " $APP "
1818variables
1919color
2020catch_errors
2121
2222function 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}
5151start
5252build_container
0 commit comments