Skip to content

Commit bfcda5d

Browse files
MickLeskCopilot
andauthored
Bump W-V Scripts to Debian 13 (#8176)
* bump various scripts (V - W) to debian 13 * Update install/wizarr-install.sh Co-authored-by: Copilot <[email protected]> * Add apt clean command to cleanup process * Update ct/wireguard.sh Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 2e4ea92 commit bfcda5d

Some content is hidden

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

46 files changed

+282
-263
lines changed

ct/vaultwarden.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-4}"
1111
var_ram="${var_ram:-6144}"
1212
var_disk="${var_disk:-20}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-12}"
14+
var_version="${var_version:-13}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
@@ -42,14 +42,14 @@ function update_script() {
4242
3>&1 1>&2 2>&3)
4343

4444
if [ "$UPD" == "1" ]; then
45-
msg_info "Stopping Vaultwarden"
46-
systemctl stop vaultwarden.service
47-
msg_ok "Stopped Vaultwarden"
45+
msg_info "Stopping Service"
46+
systemctl stop vaultwarden
47+
msg_ok "Stopped Service"
4848

4949
msg_info "Updating VaultWarden to $VAULT (Patience)"
5050
cd ~ && rm -rf vaultwarden
5151
$STD git clone https://github.com/dani-garcia/vaultwarden
52-
cd vaultwarden
52+
cd vaultwarden || exit
5353
$STD cargo build --features "sqlite,mysql,postgresql" --release
5454
DIR=/usr/bin/vaultwarden
5555
if [ -d "$DIR" ]; then
@@ -63,17 +63,17 @@ function update_script() {
6363
cd ~ && rm -rf vaultwarden
6464
msg_ok "Cleaned"
6565

66-
msg_info "Starting Vaultwarden"
67-
systemctl start vaultwarden.service
68-
msg_ok "Started Vaultwarden"
66+
msg_info "Starting Service"
67+
systemctl start vaultwarden
68+
msg_ok "Started Service"
6969

7070
msg_ok "$VAULT Update Successful"
7171
exit
7272
fi
7373
if [ "$UPD" == "2" ]; then
74-
msg_info "Stopping Vaultwarden"
75-
systemctl stop vaultwarden.service
76-
msg_ok "Stopped Vaultwarden"
74+
msg_info "Stopping Service"
75+
systemctl stop vaultwarden
76+
msg_ok "Stopped Service"
7777

7878
msg_info "Updating Web-Vault to $WVRELEASE"
7979
$STD curl -fsSLO https://github.com/dani-garcia/bw_web_builds/releases/download/"$WVRELEASE"/bw_web_"$WVRELEASE".tar.gz
@@ -84,9 +84,9 @@ function update_script() {
8484
rm bw_web_"$WVRELEASE".tar.gz
8585
msg_ok "Cleaned"
8686

87-
msg_info "Starting Vaultwarden"
88-
systemctl start vaultwarden.service
89-
msg_ok "Started Vaultwarden"
87+
msg_info "Starting Service"
88+
systemctl start vaultwarden
89+
msg_ok "Started Service"
9090
msg_ok "$WVRELEASE Update Successful"
9191
exit
9292
fi

ct/victoriametrics.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}"
1111
var_ram="${var_ram:-2048}"
1212
var_disk="${var_disk:-16}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-12}"
14+
var_version="${var_version:-13}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
@@ -29,10 +29,10 @@ function update_script() {
2929
fi
3030

3131
if check_for_gh_release "victoriametrics" "VictoriaMetrics/VictoriaMetrics"; then
32-
msg_info "Stopping $APP"
32+
msg_info "Stopping Service"
3333
systemctl stop victoriametrics
3434
[[ -f /etc/systemd/system/victoriametrics-logs.service ]] && systemctl stop victoriametrics-logs
35-
msg_ok "Stopped $APP"
35+
msg_ok "Stopped Service"
3636

3737
victoriametrics_filename=$(curl -fsSL "https://api.github.com/repos/VictoriaMetrics/VictoriaMetrics/releases/latest" |
3838
jq -r '.assets[].name' |
@@ -50,11 +50,11 @@ function update_script() {
5050
fi
5151
chmod +x /opt/victoriametrics/*
5252

53-
msg_info "Starting $APP"
53+
msg_info "Starting Service"
5454
systemctl start victoriametrics
5555
[[ -f /etc/systemd/system/victoriametrics-logs.service ]] && systemctl start victoriametrics-logs
56-
msg_ok "Started $APP"
57-
msg_ok "Updated Successfully"
56+
msg_ok "Started Service"
57+
msg_ok "Updated Successfully!"
5858
fi
5959
exit
6060
}

ct/vikunja.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
1111
var_ram="${var_ram:-1024}"
1212
var_disk="${var_disk:-4}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-12}"
14+
var_version="${var_version:-13}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
@@ -29,25 +29,25 @@ function update_script() {
2929
fi
3030
RELEASE=$(curl -fsSL https://dl.vikunja.io/vikunja/ | grep -oP 'href="/vikunja/\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n 1)
3131
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
32-
msg_info "Stopping ${APP}"
32+
msg_info "Stopping Service"
3333
systemctl stop vikunja
34-
msg_ok "Stopped ${APP}"
34+
msg_ok "Stopped Service"
3535

3636
msg_info "Updating ${APP} to ${RELEASE}"
37-
cd /opt
37+
cd /opt || exit
3838
rm -rf /opt/vikunja/vikunja
3939
curl -fsSL "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb" -o $(basename "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb")
4040
export DEBIAN_FRONTEND=noninteractive
41-
$STD dpkg -i vikunja-$RELEASE-amd64.deb
41+
$STD dpkg -i vikunja-"$RELEASE"-amd64.deb
4242
echo "${RELEASE}" >/opt/${APP}_version.txt
4343
msg_ok "Updated ${APP}"
4444

45-
msg_info "Starting ${APP}"
45+
msg_info "Starting Service"
4646
systemctl start vikunja
47-
msg_ok "Started ${APP}"
47+
msg_ok "Started Service"
4848

4949
msg_info "Cleaning Up"
50-
rm -rf /opt/vikunja-$RELEASE-amd64.deb
50+
rm -rf /opt/vikunja-"$RELEASE"-amd64.deb
5151
msg_ok "Cleaned"
5252
msg_ok "Updated Successfully"
5353
else

ct/wallos.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
1111
var_ram="${var_ram:-1024}"
1212
var_disk="${var_disk:-5}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-12}"
14+
var_version="${var_version:-13}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
@@ -35,10 +35,9 @@ function update_script() {
3535
mv /opt/wallos/images/uploads/logos /opt/logos/
3636
msg_ok "Backup created"
3737

38-
rm -rf /opt/wallos
39-
fetch_and_deploy_gh_release "wallos" "ellite/Wallos" "tarball"
38+
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "wallos" "ellite/Wallos" "tarball"
4039

41-
msg_info "Configuring ${APP}"
40+
msg_info "Configuring Wallos"
4241
rm -rf /opt/wallos/db/wallos.empty.db
4342
mv /opt/wallos.db /opt/wallos/db/wallos.db
4443
mv /opt/logos/* /opt/wallos/images/uploads/logos
@@ -49,12 +48,12 @@ function update_script() {
4948
chmod -R 755 /opt/wallos
5049
mkdir -p /var/log/cron
5150
$STD curl http://localhost/endpoints/db/migrate.php
52-
msg_ok "Configured ${APP}"
51+
msg_ok "Configured Wallos"
5352

5453
msg_info "Reload Apache2"
5554
systemctl reload apache2
5655
msg_ok "Apache2 Reloaded"
57-
msg_ok "Updated Successfully"
56+
msg_ok "Updated Successfully!"
5857
fi
5958
exit
6059
}

ct/wastebin.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
1111
var_ram="${var_ram:-1024}"
1212
var_disk="${var_disk:-4}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-12}"
14+
var_version="${var_version:-13}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
@@ -28,8 +28,8 @@ function update_script() {
2828
exit
2929
fi
3030
if ! [[ $(dpkg -s zstd 2>/dev/null) ]]; then
31-
$STD apt-get update
32-
$STD apt-get install -y zstd
31+
$STD apt update
32+
$STD apt install -y zstd
3333
fi
3434
RELEASE=$(curl -fsSL https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
3535
# Dirty-Fix 03/2025 for missing APP_version.txt on old installations, set to pre-latest release
@@ -69,7 +69,7 @@ EOF
6969
msg_info "Updating Wastebin"
7070
temp_file=$(mktemp)
7171
curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst" -o "$temp_file"
72-
tar -xf $temp_file
72+
tar -xf "$temp_file"
7373
cp -f wastebin* /opt/wastebin/
7474
chmod +x /opt/wastebin/wastebin
7575
chmod +x /opt/wastebin/wastebin-ctl
@@ -81,7 +81,7 @@ EOF
8181
msg_ok "Started Wastebin"
8282

8383
msg_info "Cleaning Up"
84-
rm -f $temp_file
84+
rm -f "$temp_file"
8585
msg_ok "Cleanup Completed"
8686
msg_ok "Updated Successfully"
8787
else

ct/watcharr.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
1111
var_ram="${var_ram:-1024}"
1212
var_disk="${var_disk:-4}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-12}"
14+
var_version="${var_version:-13}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
@@ -29,29 +29,29 @@ function update_script() {
2929
fi
3030

3131
if check_for_gh_release "watcharr" "sbondCo/Watcharr"; then
32-
msg_info "Stopping $APP"
32+
msg_info "Stopping Service"
3333
systemctl stop watcharr
34-
msg_ok "Stopped $APP"
34+
msg_ok "Stopped Service"
3535

3636
rm -f /opt/watcharr/server/watcharr
3737
rm -rf /opt/watcharr/server/ui
3838
fetch_and_deploy_gh_release "watcharr" "sbondCo/Watcharr" "tarball"
3939

40-
msg_info "Updating $APP"
41-
cd /opt/watcharr
40+
msg_info "Updating Watcharr"
41+
cd /opt/watcharr || exit
4242
export GOOS=linux
4343
$STD npm i
4444
$STD npm run build
4545
mv ./build ./server/ui
46-
cd server
46+
cd server || exit
4747
$STD go mod download
4848
$STD go build -o ./watcharr
49-
msg_ok "Updated $APP"
49+
msg_ok "Updated Watcharr"
5050

51-
msg_info "Starting $APP"
51+
msg_info "Starting Service"
5252
systemctl start watcharr
53-
msg_ok "Started $APP"
54-
msg_ok "Update Successfully"
53+
msg_ok "Started Service"
54+
msg_ok "Update Successfully!"
5555
fi
5656
exit
5757
}

ct/watchyourlan.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
1111
var_ram="${var_ram:-512}"
1212
var_disk="${var_disk:-2}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-12}"
14+
var_version="${var_version:-13}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
@@ -30,7 +30,7 @@ function update_script() {
3030

3131
if check_for_gh_release "watchyourlan" "aceberg/WatchYourLAN"; then
3232
msg_info "Stopping service"
33-
systemctl stop watchyourlan.service
33+
systemctl stop watchyourlan
3434
msg_ok "Service stopped"
3535

3636
cp -R /data/config.yaml ~/config.yaml
@@ -45,7 +45,7 @@ function update_script() {
4545
msg_info "Starting service"
4646
systemctl enable -q --now watchyourlan
4747
msg_ok "Service started"
48-
msg_ok "Updated Successfully"
48+
msg_ok "Updated Successfully!"
4949
fi
5050
exit
5151
}

ct/wavelog.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
1111
var_ram="${var_ram:-512}"
1212
var_disk="${var_disk:-2}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-12}"
14+
var_version="${var_version:-13}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
@@ -45,7 +45,7 @@ function update_script() {
4545
rm -rf /opt/wavelog
4646
fetch_and_deploy_gh_release "wavelog" "wavelog/wavelog" "tarball"
4747

48-
msg_info "Updating ${APP}"
48+
msg_info "Updating Wavelog"
4949
rm -rf /opt/wavelog/install
5050
mv /opt/config.php /opt/wavelog/application/config/config.php
5151
mv /opt/database.php /opt/wavelog/application/config/database.php
@@ -57,12 +57,12 @@ function update_script() {
5757
chown -R www-data:www-data /opt/wavelog/
5858
find /opt/wavelog/ -type d -exec chmod 755 {} \;
5959
find /opt/wavelog/ -type f -exec chmod 664 {} \;
60-
msg_ok "Updated ${APP}"
60+
msg_ok "Updated Wavelog"
6161

6262
msg_info "Starting Services"
6363
systemctl start apache2
6464
msg_ok "Started Services"
65-
msg_ok "Updated Successfully"
65+
msg_ok "Updated Successfully!"
6666
fi
6767
exit
6868
}

ct/web-check.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
66
# Source: https://github.com/Lissy93/web-check
77

88
APP="web-check"
9-
TAGS="network;analysis"
9+
var_tags="network;analysis"
1010
var_cpu="${var_cpu:-2}"
1111
var_ram="${var_ram:-2048}"
1212
var_disk="${var_disk:-12}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-12}"
14+
var_version="${var_version:-13}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
@@ -20,15 +20,15 @@ color
2020
catch_errors
2121

2222
function update_script() {
23-
header_info
24-
check_container_storage
25-
check_container_resources
26-
if [[ ! -d /opt/web-check ]]; then
27-
msg_error "No ${APP} Installation Found!"
28-
exit
29-
fi
30-
msg_error "Currently we don't provide an update function for this ${APP}."
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -d /opt/web-check ]]; then
27+
msg_error "No ${APP} Installation Found!"
3128
exit
29+
fi
30+
msg_error "Currently we don't provide an update function for this App."
31+
exit
3232
}
3333

3434
start
@@ -38,4 +38,4 @@ description
3838
msg_ok "Completed Successfully!\n"
3939
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
4040
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
41-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
41+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"

0 commit comments

Comments
 (0)