Skip to content

Commit ad18c05

Browse files
MickLeskhavardthom
andauthored
Massive Update (Remove StorageCheck (old) + Add Ressource & StorageCheck, Remove Whiptail, Remove PCT Ressource Set (#333)
* Massive Update (Remove StorageCheck (old) + Add Ressource & StorageCheck, Remove Whiptail, Remove PCT Ressource Set * Update calibre-web.sh * Update cockpit.sh * Update cronicle.sh * Update homeassistant-core.sh * Update podman-homeassistant.sh * Update node-red.sh * Update plex.sh * Update wallos.sh * Revert "Update wallos.sh" This reverts commit ea6311e. * Update homeassistant.sh * Update ct/cronicle.sh Co-authored-by: Håvard Gjøby Thom <[email protected]> --------- Co-authored-by: Håvard Gjøby Thom <[email protected]>
1 parent d84cf6e commit ad18c05

File tree

172 files changed

+356
-135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+356
-135
lines changed

ct/actualbudget.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ function default_settings() {
5454

5555
function update_script() {
5656
header_info
57+
check_container_storage
58+
check_container_resources
5759
if [[ ! -d /opt/actualbudget ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
58-
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox --title "SET RESOURCES" "Please set the resources in your ${APP} LXC to ${var_cpu}vCPU and ${var_ram}RAM for the build process before continuing" 10 75
5960
msg_info "Updating ${APP}"
6061
systemctl stop actualbudget.service
6162
cd /opt/actualbudget
@@ -69,10 +70,7 @@ exit
6970
start
7071
build_container
7172
description
72-
msg_info "Setting Container to Normal Resources"
73-
pct set $CTID -memory 1024
74-
pct set $CTID -cores 1
75-
msg_ok "Set Container to Normal Resources"
73+
7674
msg_ok "Completed Successfully!\n"
7775
echo -e "${APP} should be reachable by going to the following URL.
7876
${BL}http://${IP}:5006${CL} \n"

ct/adguard.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ function default_settings() {
5454
}
5555
function update_script() {
5656
header_info
57+
check_container_storage
58+
check_container_resources
5759
if [[ ! -d /opt/AdGuardHome ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
5860
msg_error "Adguard Home should be updated via the user interface."
5961
exit

ct/adventurelog.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ function default_settings() {
5454
}
5555
function update_script() {
5656
header_info
57+
check_container_storage
58+
check_container_resources
5759
if [[ ! -d /opt/adventurelog ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
58-
if (( $(df /boot | awk 'NR==2{gsub("%","",$5); print $5}') > 80 )); then
59-
read -r -p "Warning: Storage is dangerously low, continue anyway? <y/N> " prompt
60-
[[ ${prompt,,} =~ ^(y|yes)$ ]] || exit
61-
fi
6260
RELEASE=$(curl -s https://api.github.com/repos/seanmorley15/AdventureLog/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
6361
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
6462
msg_info "Stopping Services"

ct/agentdvr.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ function default_settings() {
5454

5555
function update_script() {
5656
header_info
57+
check_container_storage
58+
check_container_resources
5759
if [[ ! -d /opt/agentdvr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
5860
msg_error "There is currently no update path available."
5961
exit

ct/apache-cassandra.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ function default_settings() {
5656

5757
function update_script() {
5858
header_info
59+
check_container_storage
60+
check_container_resources
5961
if [[ ! -f /etc/systemd/system/cassandra.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
6062
msg_error "There is currently no update path available."
6163
exit

ct/apache-couchdb.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ function default_settings() {
5656

5757
function update_script() {
5858
header_info
59+
check_container_storage
60+
check_container_resources
5961
if [[ ! -f /etc/systemd/system/couchdb.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
6062
msg_error "There is currently no update path available."
6163
exit

ct/apt-cacher-ng.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ function default_settings() {
5555

5656
function update_script() {
5757
header_info
58+
check_container_storage
59+
check_container_resources
5860
if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
5961
msg_info "Updating $APP LXC"
6062
apt-get update &>/dev/null

ct/archivebox.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ function default_settings() {
5454

5555
function update_script() {
5656
header_info
57+
check_container_storage
58+
check_container_resources
5759
if [[ ! -d /opt/archivebox ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
58-
if (( $(df /boot | awk 'NR==2{gsub("%","",$5); print $5}') > 80 )); then
59-
read -r -p "Warning: Storage is dangerously low, continue anyway? <y/N> " prompt
60-
[[ ${prompt,,} =~ ^(y|yes)$ ]] || exit
61-
fi
6260
msg_info "Stopping ${APP}"
6361
systemctl stop archivebox
6462
msg_ok "Stopped ${APP}"

ct/aria2.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ function default_settings() {
5353

5454
function update_script() {
5555
header_info
56+
check_container_storage
57+
check_container_resources
5658
if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
5759
msg_info "Updating $APP LXC"
5860
apt-get update &>/dev/null

ct/audiobookshelf.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ function default_settings() {
5454

5555
function update_script() {
5656
header_info
57+
check_container_storage
58+
check_container_resources
5759
if [[ ! -f /etc/apt/trusted.gpg.d/audiobookshelf-ppa.asc ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
5860
echo "This application receives updates through the APT package manager."
5961
exit

0 commit comments

Comments
 (0)