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 <175728472+Copilot@users.noreply.github.com>

* Add apt clean command to cleanup process

* Update ct/wireguard.sh

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
CanbiZ 2025-10-07 21:40:31 +02:00 committed by GitHub
parent 2e4ea927ea
commit bfcda5d07a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
46 changed files with 282 additions and 263 deletions

View File

@ -11,7 +11,7 @@ var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-6144}" var_ram="${var_ram:-6144}"
var_disk="${var_disk:-20}" var_disk="${var_disk:-20}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
@ -42,14 +42,14 @@ function update_script() {
3>&1 1>&2 2>&3) 3>&1 1>&2 2>&3)
if [ "$UPD" == "1" ]; then if [ "$UPD" == "1" ]; then
msg_info "Stopping Vaultwarden" msg_info "Stopping Service"
systemctl stop vaultwarden.service systemctl stop vaultwarden
msg_ok "Stopped Vaultwarden" msg_ok "Stopped Service"
msg_info "Updating VaultWarden to $VAULT (Patience)" msg_info "Updating VaultWarden to $VAULT (Patience)"
cd ~ && rm -rf vaultwarden cd ~ && rm -rf vaultwarden
$STD git clone https://github.com/dani-garcia/vaultwarden $STD git clone https://github.com/dani-garcia/vaultwarden
cd vaultwarden cd vaultwarden || exit
$STD cargo build --features "sqlite,mysql,postgresql" --release $STD cargo build --features "sqlite,mysql,postgresql" --release
DIR=/usr/bin/vaultwarden DIR=/usr/bin/vaultwarden
if [ -d "$DIR" ]; then if [ -d "$DIR" ]; then
@ -63,17 +63,17 @@ function update_script() {
cd ~ && rm -rf vaultwarden cd ~ && rm -rf vaultwarden
msg_ok "Cleaned" msg_ok "Cleaned"
msg_info "Starting Vaultwarden" msg_info "Starting Service"
systemctl start vaultwarden.service systemctl start vaultwarden
msg_ok "Started Vaultwarden" msg_ok "Started Service"
msg_ok "$VAULT Update Successful" msg_ok "$VAULT Update Successful"
exit exit
fi fi
if [ "$UPD" == "2" ]; then if [ "$UPD" == "2" ]; then
msg_info "Stopping Vaultwarden" msg_info "Stopping Service"
systemctl stop vaultwarden.service systemctl stop vaultwarden
msg_ok "Stopped Vaultwarden" msg_ok "Stopped Service"
msg_info "Updating Web-Vault to $WVRELEASE" msg_info "Updating Web-Vault to $WVRELEASE"
$STD curl -fsSLO https://github.com/dani-garcia/bw_web_builds/releases/download/"$WVRELEASE"/bw_web_"$WVRELEASE".tar.gz $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() {
rm bw_web_"$WVRELEASE".tar.gz rm bw_web_"$WVRELEASE".tar.gz
msg_ok "Cleaned" msg_ok "Cleaned"
msg_info "Starting Vaultwarden" msg_info "Starting Service"
systemctl start vaultwarden.service systemctl start vaultwarden
msg_ok "Started Vaultwarden" msg_ok "Started Service"
msg_ok "$WVRELEASE Update Successful" msg_ok "$WVRELEASE Update Successful"
exit exit
fi fi

View File

@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}" var_ram="${var_ram:-2048}"
var_disk="${var_disk:-16}" var_disk="${var_disk:-16}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
@ -29,10 +29,10 @@ function update_script() {
fi fi
if check_for_gh_release "victoriametrics" "VictoriaMetrics/VictoriaMetrics"; then if check_for_gh_release "victoriametrics" "VictoriaMetrics/VictoriaMetrics"; then
msg_info "Stopping $APP" msg_info "Stopping Service"
systemctl stop victoriametrics systemctl stop victoriametrics
[[ -f /etc/systemd/system/victoriametrics-logs.service ]] && systemctl stop victoriametrics-logs [[ -f /etc/systemd/system/victoriametrics-logs.service ]] && systemctl stop victoriametrics-logs
msg_ok "Stopped $APP" msg_ok "Stopped Service"
victoriametrics_filename=$(curl -fsSL "https://api.github.com/repos/VictoriaMetrics/VictoriaMetrics/releases/latest" | victoriametrics_filename=$(curl -fsSL "https://api.github.com/repos/VictoriaMetrics/VictoriaMetrics/releases/latest" |
jq -r '.assets[].name' | jq -r '.assets[].name' |
@ -50,11 +50,11 @@ function update_script() {
fi fi
chmod +x /opt/victoriametrics/* chmod +x /opt/victoriametrics/*
msg_info "Starting $APP" msg_info "Starting Service"
systemctl start victoriametrics systemctl start victoriametrics
[[ -f /etc/systemd/system/victoriametrics-logs.service ]] && systemctl start victoriametrics-logs [[ -f /etc/systemd/system/victoriametrics-logs.service ]] && systemctl start victoriametrics-logs
msg_ok "Started $APP" msg_ok "Started Service"
msg_ok "Updated Successfully" msg_ok "Updated Successfully!"
fi fi
exit exit
} }

View File

@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-1024}" var_ram="${var_ram:-1024}"
var_disk="${var_disk:-4}" var_disk="${var_disk:-4}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
@ -29,25 +29,25 @@ function update_script() {
fi fi
RELEASE=$(curl -fsSL https://dl.vikunja.io/vikunja/ | grep -oP 'href="/vikunja/\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n 1) RELEASE=$(curl -fsSL https://dl.vikunja.io/vikunja/ | grep -oP 'href="/vikunja/\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n 1)
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
msg_info "Stopping ${APP}" msg_info "Stopping Service"
systemctl stop vikunja systemctl stop vikunja
msg_ok "Stopped ${APP}" msg_ok "Stopped Service"
msg_info "Updating ${APP} to ${RELEASE}" msg_info "Updating ${APP} to ${RELEASE}"
cd /opt cd /opt || exit
rm -rf /opt/vikunja/vikunja rm -rf /opt/vikunja/vikunja
curl -fsSL "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb" -o $(basename "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb") curl -fsSL "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb" -o $(basename "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb")
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
$STD dpkg -i vikunja-$RELEASE-amd64.deb $STD dpkg -i vikunja-"$RELEASE"-amd64.deb
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"
msg_info "Starting ${APP}" msg_info "Starting Service"
systemctl start vikunja systemctl start vikunja
msg_ok "Started ${APP}" msg_ok "Started Service"
msg_info "Cleaning Up" msg_info "Cleaning Up"
rm -rf /opt/vikunja-$RELEASE-amd64.deb rm -rf /opt/vikunja-"$RELEASE"-amd64.deb
msg_ok "Cleaned" msg_ok "Cleaned"
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
else else

View File

@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-1024}" var_ram="${var_ram:-1024}"
var_disk="${var_disk:-5}" var_disk="${var_disk:-5}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
@ -35,10 +35,9 @@ function update_script() {
mv /opt/wallos/images/uploads/logos /opt/logos/ mv /opt/wallos/images/uploads/logos /opt/logos/
msg_ok "Backup created" msg_ok "Backup created"
rm -rf /opt/wallos CLEAN_INSTALL=1 fetch_and_deploy_gh_release "wallos" "ellite/Wallos" "tarball"
fetch_and_deploy_gh_release "wallos" "ellite/Wallos" "tarball"
msg_info "Configuring ${APP}" msg_info "Configuring Wallos"
rm -rf /opt/wallos/db/wallos.empty.db rm -rf /opt/wallos/db/wallos.empty.db
mv /opt/wallos.db /opt/wallos/db/wallos.db mv /opt/wallos.db /opt/wallos/db/wallos.db
mv /opt/logos/* /opt/wallos/images/uploads/logos mv /opt/logos/* /opt/wallos/images/uploads/logos
@ -49,12 +48,12 @@ function update_script() {
chmod -R 755 /opt/wallos chmod -R 755 /opt/wallos
mkdir -p /var/log/cron mkdir -p /var/log/cron
$STD curl http://localhost/endpoints/db/migrate.php $STD curl http://localhost/endpoints/db/migrate.php
msg_ok "Configured ${APP}" msg_ok "Configured Wallos"
msg_info "Reload Apache2" msg_info "Reload Apache2"
systemctl reload apache2 systemctl reload apache2
msg_ok "Apache2 Reloaded" msg_ok "Apache2 Reloaded"
msg_ok "Updated Successfully" msg_ok "Updated Successfully!"
fi fi
exit exit
} }

View File

@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-1024}" var_ram="${var_ram:-1024}"
var_disk="${var_disk:-4}" var_disk="${var_disk:-4}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
if ! [[ $(dpkg -s zstd 2>/dev/null) ]]; then if ! [[ $(dpkg -s zstd 2>/dev/null) ]]; then
$STD apt-get update $STD apt update
$STD apt-get install -y zstd $STD apt install -y zstd
fi fi
RELEASE=$(curl -fsSL https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(curl -fsSL https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
# Dirty-Fix 03/2025 for missing APP_version.txt on old installations, set to pre-latest release # Dirty-Fix 03/2025 for missing APP_version.txt on old installations, set to pre-latest release
@ -69,7 +69,7 @@ EOF
msg_info "Updating Wastebin" msg_info "Updating Wastebin"
temp_file=$(mktemp) temp_file=$(mktemp)
curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst" -o "$temp_file" curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst" -o "$temp_file"
tar -xf $temp_file tar -xf "$temp_file"
cp -f wastebin* /opt/wastebin/ cp -f wastebin* /opt/wastebin/
chmod +x /opt/wastebin/wastebin chmod +x /opt/wastebin/wastebin
chmod +x /opt/wastebin/wastebin-ctl chmod +x /opt/wastebin/wastebin-ctl
@ -81,7 +81,7 @@ EOF
msg_ok "Started Wastebin" msg_ok "Started Wastebin"
msg_info "Cleaning Up" msg_info "Cleaning Up"
rm -f $temp_file rm -f "$temp_file"
msg_ok "Cleanup Completed" msg_ok "Cleanup Completed"
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
else else

View File

@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-1024}" var_ram="${var_ram:-1024}"
var_disk="${var_disk:-4}" var_disk="${var_disk:-4}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
@ -29,29 +29,29 @@ function update_script() {
fi fi
if check_for_gh_release "watcharr" "sbondCo/Watcharr"; then if check_for_gh_release "watcharr" "sbondCo/Watcharr"; then
msg_info "Stopping $APP" msg_info "Stopping Service"
systemctl stop watcharr systemctl stop watcharr
msg_ok "Stopped $APP" msg_ok "Stopped Service"
rm -f /opt/watcharr/server/watcharr rm -f /opt/watcharr/server/watcharr
rm -rf /opt/watcharr/server/ui rm -rf /opt/watcharr/server/ui
fetch_and_deploy_gh_release "watcharr" "sbondCo/Watcharr" "tarball" fetch_and_deploy_gh_release "watcharr" "sbondCo/Watcharr" "tarball"
msg_info "Updating $APP" msg_info "Updating Watcharr"
cd /opt/watcharr cd /opt/watcharr || exit
export GOOS=linux export GOOS=linux
$STD npm i $STD npm i
$STD npm run build $STD npm run build
mv ./build ./server/ui mv ./build ./server/ui
cd server cd server || exit
$STD go mod download $STD go mod download
$STD go build -o ./watcharr $STD go build -o ./watcharr
msg_ok "Updated $APP" msg_ok "Updated Watcharr"
msg_info "Starting $APP" msg_info "Starting Service"
systemctl start watcharr systemctl start watcharr
msg_ok "Started $APP" msg_ok "Started Service"
msg_ok "Update Successfully" msg_ok "Update Successfully!"
fi fi
exit exit
} }

View File

@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}" var_ram="${var_ram:-512}"
var_disk="${var_disk:-2}" var_disk="${var_disk:-2}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
@ -30,7 +30,7 @@ function update_script() {
if check_for_gh_release "watchyourlan" "aceberg/WatchYourLAN"; then if check_for_gh_release "watchyourlan" "aceberg/WatchYourLAN"; then
msg_info "Stopping service" msg_info "Stopping service"
systemctl stop watchyourlan.service systemctl stop watchyourlan
msg_ok "Service stopped" msg_ok "Service stopped"
cp -R /data/config.yaml ~/config.yaml cp -R /data/config.yaml ~/config.yaml
@ -45,7 +45,7 @@ function update_script() {
msg_info "Starting service" msg_info "Starting service"
systemctl enable -q --now watchyourlan systemctl enable -q --now watchyourlan
msg_ok "Service started" msg_ok "Service started"
msg_ok "Updated Successfully" msg_ok "Updated Successfully!"
fi fi
exit exit
} }

View File

@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}" var_ram="${var_ram:-512}"
var_disk="${var_disk:-2}" var_disk="${var_disk:-2}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
@ -45,7 +45,7 @@ function update_script() {
rm -rf /opt/wavelog rm -rf /opt/wavelog
fetch_and_deploy_gh_release "wavelog" "wavelog/wavelog" "tarball" fetch_and_deploy_gh_release "wavelog" "wavelog/wavelog" "tarball"
msg_info "Updating ${APP}" msg_info "Updating Wavelog"
rm -rf /opt/wavelog/install rm -rf /opt/wavelog/install
mv /opt/config.php /opt/wavelog/application/config/config.php mv /opt/config.php /opt/wavelog/application/config/config.php
mv /opt/database.php /opt/wavelog/application/config/database.php mv /opt/database.php /opt/wavelog/application/config/database.php
@ -57,12 +57,12 @@ function update_script() {
chown -R www-data:www-data /opt/wavelog/ chown -R www-data:www-data /opt/wavelog/
find /opt/wavelog/ -type d -exec chmod 755 {} \; find /opt/wavelog/ -type d -exec chmod 755 {} \;
find /opt/wavelog/ -type f -exec chmod 664 {} \; find /opt/wavelog/ -type f -exec chmod 664 {} \;
msg_ok "Updated ${APP}" msg_ok "Updated Wavelog"
msg_info "Starting Services" msg_info "Starting Services"
systemctl start apache2 systemctl start apache2
msg_ok "Started Services" msg_ok "Started Services"
msg_ok "Updated Successfully" msg_ok "Updated Successfully!"
fi fi
exit exit
} }

View File

@ -6,12 +6,12 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
# Source: https://github.com/Lissy93/web-check # Source: https://github.com/Lissy93/web-check
APP="web-check" APP="web-check"
TAGS="network;analysis" var_tags="network;analysis"
var_cpu="${var_cpu:-2}" var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}" var_ram="${var_ram:-2048}"
var_disk="${var_disk:-12}" var_disk="${var_disk:-12}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
@ -20,15 +20,15 @@ color
catch_errors catch_errors
function update_script() { function update_script() {
header_info header_info
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -d /opt/web-check ]]; then if [[ ! -d /opt/web-check ]]; then
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit
fi
msg_error "Currently we don't provide an update function for this ${APP}."
exit exit
fi
msg_error "Currently we don't provide an update function for this App."
exit
} }
start start
@ -38,4 +38,4 @@ description
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"

View File

@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-1024}" var_ram="${var_ram:-1024}"
var_disk="${var_disk:-6}" var_disk="${var_disk:-6}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
@ -29,20 +29,20 @@ function update_script() {
fi fi
RELEASE=$(curl -fsSL https://api.github.com/repos/wger-project/wger/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') RELEASE=$(curl -fsSL https://api.github.com/repos/wger-project/wger/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
msg_info "Stopping $APP" msg_info "Stopping Service"
systemctl stop wger systemctl stop wger
msg_ok "Stopped $APP" msg_ok "Stopped Service"
msg_info "Updating $APP to v${RELEASE}" msg_info "Updating $APP to v${RELEASE}"
temp_file=$(mktemp) temp_file=$(mktemp)
curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz" -o "$temp_file" curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz" -o "$temp_file"
tar xzf "$temp_file" tar xzf "$temp_file"
cp -rf wger-"$RELEASE"/* /home/wger/src cp -rf wger-"$RELEASE"/* /home/wger/src
cd /home/wger/src cd /home/wger/src || exit
python3 manage.py migrate &>/dev/null $STD python3 manage.py migrate
yarn install &>/dev/null $STD yarn install
yarn build:css:sass &>/dev/null $STD yarn build:css:sass
python3 manage.py collectstatic --noinput &>/dev/null $STD python3 manage.py collectstatic --noinput
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated $APP to v${RELEASE}" msg_ok "Updated $APP to v${RELEASE}"
@ -53,8 +53,7 @@ function update_script() {
msg_info "Cleaning Up" msg_info "Cleaning Up"
rm -rf "$temp_file" rm -rf "$temp_file"
msg_ok "Cleanup Completed" msg_ok "Cleanup Completed"
msg_ok "Updated Successfully!"
msg_ok "Update Successful"
else else
msg_ok "No update required. ${APP} is already at v${RELEASE}" msg_ok "No update required. ${APP} is already at v${RELEASE}"
fi fi

View File

@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-1024}" var_ram="${var_ram:-1024}"
var_disk="${var_disk:-4}" var_disk="${var_disk:-4}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
@ -20,18 +20,19 @@ color
catch_errors catch_errors
function update_script() { function update_script() {
header_info header_info
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -d /var/lib/whisparr ]]; then if [[ ! -d /var/lib/whisparr ]]; then
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit
fi
msg_info "Updating $APP LXC"
$STD apt-get update
$STD apt-get -y upgrade
msg_ok "Updated $APP LXC"
exit exit
fi
msg_info "Updating Whisparr"
$STD apt update
$STD apt -y upgrade
msg_ok "Updated Whisparr"
msg_ok "Updated Successfully!"
exit
} }
start start
@ -41,4 +42,4 @@ description
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6969${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6969${CL}"

View File

@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}" var_ram="${var_ram:-2048}"
var_disk="${var_disk:-10}" var_disk="${var_disk:-10}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
@ -27,7 +27,9 @@ function update_script() {
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
NODE_VERSION="22" NODE_MODULE="yarn@latest,node-gyp" setup_nodejs
NODE_VERSION="22" NODE_MODULE="yarn,node-gyp" setup_nodejs
if check_for_gh_release "wikijs" "requarks/wiki"; then if check_for_gh_release "wikijs" "requarks/wiki"; then
msg_info "Verifying whether ${APP}' new release is v3.x+ and current install uses SQLite." msg_info "Verifying whether ${APP}' new release is v3.x+ and current install uses SQLite."
SQLITE_INSTALL=$([ -f /opt/wikijs/db.sqlite ] && echo "true" || echo "false") SQLITE_INSTALL=$([ -f /opt/wikijs/db.sqlite ] && echo "true" || echo "false")
@ -37,9 +39,9 @@ function update_script() {
fi fi
msg_ok "There is an update path available for ${APP}" msg_ok "There is an update path available for ${APP}"
msg_info "Stopping ${APP}" msg_info "Stopping Service"
systemctl stop wikijs systemctl stop wikijs
msg_ok "Stopped ${APP}" msg_ok "Stopped Service"
msg_info "Backing up Data" msg_info "Backing up Data"
mkdir /opt/wikijs-backup mkdir /opt/wikijs-backup
@ -47,22 +49,21 @@ function update_script() {
cp -R /opt/wikijs/{config.yml,/data} /opt/wikijs-backup cp -R /opt/wikijs/{config.yml,/data} /opt/wikijs-backup
msg_ok "Backed up Data" msg_ok "Backed up Data"
rm -rf /opt/wikijs/* CLEAN_INSTALL=1 fetch_and_deploy_gh_release "wikijs" "requarks/wiki" "prebuild" "latest" "/opt/wikijs" "wiki-js.tar.gz"
fetch_and_deploy_gh_release "wikijs" "requarks/wiki" "prebuild" "latest" "/opt/wikijs" "wiki-js.tar.gz"
msg_info "Restoring Data" msg_info "Restoring Data"
cp -R /opt/wikijs-backup/* /opt/wikijs cp -R /opt/wikijs-backup/* /opt/wikijs
$SQLITE_INSTALL && $STD npm rebuild sqlite3 $SQLITE_INSTALL && $STD npm rebuild sqlite3
msg_ok "Restored Data" msg_ok "Restored Data"
msg_info "Starting ${APP}" msg_info "Starting Service"
systemctl start wikijs systemctl start wikijs
msg_ok "Started ${APP}" msg_ok "Started Service"
msg_info "Cleaning Up" msg_info "Cleaning Up"
rm -rf /opt/wikijs-backup rm -rf /opt/wikijs-backup
msg_ok "Cleanup Completed" msg_ok "Cleanup Completed"
msg_ok "Updated Successfully" msg_ok "Updated Successfully!"
fi fi
exit exit
} }

View File

@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}" var_ram="${var_ram:-512}"
var_disk="${var_disk:-4}" var_disk="${var_disk:-4}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
var_tun="${var_tun:-1}" var_tun="${var_tun:-1}"
@ -30,18 +30,19 @@ function update_script() {
fi fi
if ! dpkg -s git >/dev/null 2>&1; then if ! dpkg -s git >/dev/null 2>&1; then
msg_info "Installing git" msg_info "Installing git"
$STD apt-get update $STD apt update
$STD apt-get install -y git $STD apt install -y git
msg_ok "Installed git" msg_ok "Installed git"
fi fi
apt-get update apt update
apt-get -y upgrade apt -y upgrade
if [[ -d /etc/wgdashboard ]]; then if [[ -d /etc/wgdashboard ]]; then
sleep 2 sleep 2
cd /etc/wgdashboard/src cd /etc/wgdashboard/src || exit
./wgd.sh update ./wgd.sh update
./wgd.sh start ./wgd.sh start
fi fi
msg_ok "Updated Successfully!"
exit exit
} }

View File

@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-1024}" var_ram="${var_ram:-1024}"
var_disk="${var_disk:-4}" var_disk="${var_disk:-4}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
@ -32,9 +32,9 @@ function update_script() {
setup_uv setup_uv
if check_for_gh_release "wizarr" "wizarrrr/wizarr"; then if check_for_gh_release "wizarr" "wizarrrr/wizarr"; then
msg_info "Stopping $APP" msg_info "Stopping Service"
systemctl stop wizarr systemctl stop wizarr
msg_ok "Stopped $APP" msg_ok "Stopped Service"
msg_info "Creating Backup" msg_info "Creating Backup"
BACKUP_FILE="/opt/wizarr_backup_$(date +%F).tar.gz" BACKUP_FILE="/opt/wizarr_backup_$(date +%F).tar.gz"
@ -44,8 +44,8 @@ function update_script() {
fetch_and_deploy_gh_release "wizarr" "wizarrrr/wizarr" fetch_and_deploy_gh_release "wizarr" "wizarrrr/wizarr"
msg_info "Updating $APP" msg_info "Updating Wizarr"
cd /opt/wizarr cd /opt/wizarr || exit
$STD /usr/local/bin/uv sync --frozen $STD /usr/local/bin/uv sync --frozen
$STD /usr/local/bin/uv run --frozen pybabel compile -d app/translations $STD /usr/local/bin/uv run --frozen pybabel compile -d app/translations
$STD npm --prefix app/static install $STD npm --prefix app/static install
@ -56,16 +56,16 @@ function update_script() {
if ! grep -q 'frozen' /opt/wizarr/start.sh; then if ! grep -q 'frozen' /opt/wizarr/start.sh; then
sed -i 's/run/& --frozen/' /opt/wizarr/start.sh sed -i 's/run/& --frozen/' /opt/wizarr/start.sh
fi fi
msg_ok "Updated $APP" msg_ok "Updated Wizarr"
msg_info "Starting $APP" msg_info "Starting Service"
systemctl start wizarr systemctl start wizarr
msg_ok "Started $APP" msg_ok "Started Service"
msg_info "Cleaning Up" msg_info "Cleaning Up"
rm -rf "$BACKUP_FILE" rm -rf "$BACKUP_FILE"
msg_ok "Cleanup Completed" msg_ok "Cleanup Completed"
msg_ok "Updated Successfully" msg_ok "Updated Successfully!"
fi fi
exit exit
} }

View File

@ -12,7 +12,7 @@ var_disk="${var_disk:-5}"
var_cpu="${var_cpu:-2}" var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}" var_ram="${var_ram:-2048}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
header_info "$APP" header_info "$APP"
variables variables
@ -20,15 +20,15 @@ color
catch_errors catch_errors
function update_script() { function update_script() {
header_info header_info
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -d /var/www/html/wordpress ]]; then if [[ ! -d /var/www/html/wordpress ]]; then
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit
fi
msg_error "Wordpress should be updated via the user interface."
exit exit
fi
msg_error "Wordpress should be updated via the user interface."
exit
} }
start start
@ -38,4 +38,4 @@ description
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN} ${APP} setup has been successfully initialized!${CL}" echo -e "${CREATING}${GN} ${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}/${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}/${CL}"

View File

@ -23,7 +23,7 @@
"ram": 6144, "ram": 6144,
"hdd": 20, "hdd": 20,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
}, },
{ {

View File

@ -23,7 +23,7 @@
"ram": 2048, "ram": 2048,
"hdd": 16, "hdd": 16,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
} }
], ],

View File

@ -23,7 +23,7 @@
"ram": 1024, "ram": 1024,
"hdd": 4, "hdd": 4,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
} }
], ],

View File

@ -23,7 +23,7 @@
"ram": 1024, "ram": 1024,
"hdd": 5, "hdd": 5,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
} }
], ],

View File

@ -23,7 +23,7 @@
"ram": 1024, "ram": 1024,
"hdd": 4, "hdd": 4,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
} }
], ],

View File

@ -1,35 +1,35 @@
{ {
"name": "Watcharr", "name": "Watcharr",
"slug": "watcharr", "slug": "watcharr",
"categories": [ "categories": [
13 13
], ],
"date_created": "2025-02-12", "date_created": "2025-02-12",
"type": "ct", "type": "ct",
"updateable": true, "updateable": true,
"privileged": false, "privileged": false,
"interface_port": 3080, "interface_port": 3080,
"documentation": "https://watcharr.app/docs/introduction", "documentation": "https://watcharr.app/docs/introduction",
"website": "https://watcharr.app/", "website": "https://watcharr.app/",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/watcharr.webp", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/watcharr.webp",
"config_path": "", "config_path": "",
"description": "Open source, self-hostable watched list for all your content with user authentication, modern and clean UI and a very simple setup.", "description": "Open source, self-hostable watched list for all your content with user authentication, modern and clean UI and a very simple setup.",
"install_methods": [ "install_methods": [
{ {
"type": "default", "type": "default",
"script": "ct/watcharr.sh", "script": "ct/watcharr.sh",
"resources": { "resources": {
"cpu": 1, "cpu": 1,
"ram": 1024, "ram": 1024,
"hdd": 4, "hdd": 4,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
} }
], ],
"default_credentials": { "default_credentials": {
"username": null, "username": null,
"password": null "password": null
}, },
"notes": [] "notes": []
} }

View File

@ -23,7 +23,7 @@
"ram": 512, "ram": 512,
"hdd": 2, "hdd": 2,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
} }
], ],

View File

@ -23,7 +23,7 @@
"ram": 512, "ram": 512,
"hdd": 2, "hdd": 2,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
} }
], ],

View File

@ -23,7 +23,7 @@
"ram": 2048, "ram": 2048,
"hdd": 12, "hdd": 12,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
} }
], ],

View File

@ -23,7 +23,7 @@
"ram": 1024, "ram": 1024,
"hdd": 6, "hdd": 6,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
} }
], ],

View File

@ -23,7 +23,7 @@
"ram": 1024, "ram": 1024,
"hdd": 4, "hdd": 4,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
} }
], ],

View File

@ -23,7 +23,7 @@
"ram": 2048, "ram": 2048,
"hdd": 7, "hdd": 7,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
} }
], ],

View File

@ -23,7 +23,7 @@
"ram": 512, "ram": 512,
"hdd": 4, "hdd": 4,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
}, },
{ {

View File

@ -24,7 +24,7 @@
"ram": 1024, "ram": 1024,
"hdd": 4, "hdd": 4,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
} }
], ],

View File

@ -23,7 +23,7 @@
"ram": 2048, "ram": 2048,
"hdd": 5, "hdd": 5,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
} }
], ],

View File

@ -14,8 +14,7 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get update $STD apt install -y git \
$STD apt-get install -y git \
build-essential \ build-essential \
pkgconf \ pkgconf \
libssl-dev \ libssl-dev \
@ -38,7 +37,7 @@ msg_ok "Installed Rust"
msg_info "Building Vaultwarden ${VAULT} (Patience)" msg_info "Building Vaultwarden ${VAULT} (Patience)"
$STD git clone https://github.com/dani-garcia/vaultwarden $STD git clone https://github.com/dani-garcia/vaultwarden
cd vaultwarden cd vaultwarden || exit
$STD cargo build --features "sqlite,mysql,postgresql" --release $STD cargo build --features "sqlite,mysql,postgresql" --release
msg_ok "Built Vaultwarden ${VAULT}" msg_ok "Built Vaultwarden ${VAULT}"
@ -110,6 +109,7 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get -y autoremove $STD apt -y autoremove
$STD apt-get -y autoclean $STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@ -14,7 +14,7 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y \ $STD apt install -y \
ca-certificates \ ca-certificates \
build-essential build-essential
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
@ -85,7 +85,6 @@ EOF
systemctl enable -q --now verdaccio systemctl enable -q --now verdaccio
msg_ok "Created Service" msg_ok "Created Service"
motd_ssh motd_ssh
customize customize

View File

@ -77,6 +77,7 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get -y autoremove $STD apt -y autoremove
$STD apt-get -y autoclean $STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@ -14,26 +14,27 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y make $STD apt install -y make
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Setup Vikunja (Patience)" msg_info "Setup Vikunja (Patience)"
cd /opt cd /opt || exit
RELEASE=$(curl -fsSL https://dl.vikunja.io/vikunja/ | grep -oP 'href="/vikunja/\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n 1) RELEASE=$(curl -fsSL https://dl.vikunja.io/vikunja/ | grep -oP 'href="/vikunja/\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n 1)
curl -fsSL "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb" -o vikunja-$RELEASE-amd64.deb curl -fsSL "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb" -o vikunja-"$RELEASE"-amd64.deb
$STD dpkg -i vikunja-$RELEASE-amd64.deb $STD dpkg -i vikunja-"$RELEASE"-amd64.deb
sed -i 's|^ timezone: .*| timezone: UTC|' /etc/vikunja/config.yml sed -i 's|^ timezone: .*| timezone: UTC|' /etc/vikunja/config.yml
sed -i 's|"./vikunja.db"|"/etc/vikunja/vikunja.db"|' /etc/vikunja/config.yml sed -i 's|"./vikunja.db"|"/etc/vikunja/vikunja.db"|' /etc/vikunja/config.yml
sed -i 's|./files|/etc/vikunja/files|' /etc/vikunja/config.yml sed -i 's|./files|/etc/vikunja/files|' /etc/vikunja/config.yml
systemctl start vikunja.service systemctl start vikunja.service
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt echo "${RELEASE}" >/opt/"${APPLICATION}"_version.txt
msg_ok "Installed Vikunja" msg_ok "Installed Vikunja"
motd_ssh motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -rf /opt/vikunja-$RELEASE-amd64.deb rm -rf /opt/vikunja-"$RELEASE"-amd64.deb
$STD apt-get autoremove $STD apt -y autoremove
$STD apt-get autoclean $STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@ -18,7 +18,7 @@ PHP_VERSION="8.4" PHP_APACHE="YES" PHP_MODULE="imagick,bz2,sqlite3" setup_php
fetch_and_deploy_gh_release "wallos" "ellite/Wallos" "tarball" fetch_and_deploy_gh_release "wallos" "ellite/Wallos" "tarball"
msg_info "Installing Wallos (Patience)" msg_info "Installing Wallos (Patience)"
cd /opt/wallos cd /opt/wallos || exit
mv /opt/wallos/db/wallos.empty.db /opt/wallos/db/wallos.db mv /opt/wallos/db/wallos.empty.db /opt/wallos/db/wallos.db
chown -R www-data:www-data /opt/wallos chown -R www-data:www-data /opt/wallos
chmod -R 755 /opt/wallos chmod -R 755 /opt/wallos
@ -62,6 +62,7 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get -y autoremove $STD apt -y autoremove
$STD apt-get -y autoclean $STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@ -14,14 +14,14 @@ network_check
update_os update_os
msg_info "Installing dependencies" msg_info "Installing dependencies"
$STD apt-get install -y zstd $STD apt install -y zstd
msg_ok "Installed dependencies" msg_ok "Installed dependencies"
msg_info "Installing Wastebin" msg_info "Installing Wastebin"
temp_file=$(mktemp) temp_file=$(mktemp)
RELEASE=$(curl -fsSL https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(curl -fsSL https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst" -o "$temp_file" curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst" -o "$temp_file"
tar -xf $temp_file tar -xf "$temp_file"
mkdir -p /opt/wastebin mkdir -p /opt/wastebin
mv wastebin* /opt/wastebin/ mv wastebin* /opt/wastebin/
chmod +x /opt/wastebin/wastebin chmod +x /opt/wastebin/wastebin
@ -60,7 +60,8 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -f $temp_file rm -f "$temp_file"
$STD apt-get -y autoremove $STD apt -y autoremove
$STD apt-get -y autoclean $STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@ -14,7 +14,7 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y gcc $STD apt install -y gcc
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
setup_go setup_go
@ -22,14 +22,14 @@ NODE_VERSION="22" setup_nodejs
fetch_and_deploy_gh_release "watcharr" "sbondCo/Watcharr" "tarball" fetch_and_deploy_gh_release "watcharr" "sbondCo/Watcharr" "tarball"
msg_info "Setup Watcharr" msg_info "Setup Watcharr"
cd /opt/watcharr cd /opt/watcharr || exit
$STD npm i $STD npm i
$STD npm run build $STD npm run build
mv ./build ./server/ui mv ./build ./server/ui
cd server cd server || exit
export CGO_ENABLED=1 GOOS=linux export CGO_ENABLED=1 GOOS=linux
go mod download $STD go mod download
go build -o ./watcharr $STD go build -o ./watcharr
msg_ok "Setup Watcharr" msg_ok "Setup Watcharr"
msg_info "Creating Service" msg_info "Creating Service"
@ -54,6 +54,7 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get -y autoremove $STD apt -y autoremove
$STD apt-get -y autoclean $STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@ -14,7 +14,7 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y \ $STD apt install -y \
arp-scan \ arp-scan \
ieee-data \ ieee-data \
libwww-perl libwww-perl
@ -53,6 +53,7 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get -y autoremove $STD apt -y autoremove
$STD apt-get -y autoclean $STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@ -13,7 +13,7 @@ setting_up_container
network_check network_check
update_os update_os
PHP_VERSION="8.3" PHP_MODULE="mysql" PHP_APACHE="YES" PHP_MAX_EXECUTION_TIME="600" setup_php PHP_VERSION="8.4" PHP_MODULE="mysql" PHP_APACHE="YES" PHP_MAX_EXECUTION_TIME="600" setup_php
setup_mariadb setup_mariadb
fetch_and_deploy_gh_release "wavelog" "wavelog/wavelog" "tarball" fetch_and_deploy_gh_release "wavelog" "wavelog/wavelog" "tarball"
@ -63,6 +63,7 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get -y autoremove $STD apt -y autoremove
$STD apt-get -y autoclean $STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@ -15,7 +15,7 @@ update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
$STD apt-get -y install --no-install-recommends \ $STD apt -y install --no-install-recommends \
git \ git \
traceroute \ traceroute \
make \ make \
@ -35,18 +35,25 @@ $STD apt-get -y install --no-install-recommends \
x11-apps x11-apps
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
msg_info "Setup Python3" msg_info "Setup Python3"
$STD apt-get install -y python3 $STD apt install -y python3
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Setup Python3" msg_ok "Setup Python3"
msg_info "Installing Chromium" msg_info "Installing Chromium"
curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /etc/apt/trusted.gpg.d/google-archive.gpg curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/google-chrome-keyring.gpg
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >/etc/apt/sources.list.d/google.list cat <<EOF | sudo tee /etc/apt/sources.list.d/google-chrome.sources >/dev/null
$STD apt-get update Types: deb
$STD apt-get -y install \ URIs: http://dl.google.com/linux/chrome/deb/
Suites: stable
Components: main
Architectures: amd64
Signed-By: /usr/share/keyrings/google-chrome-keyring.gpg
EOF
$STD apt update
$STD apt -y install \
chromium \ chromium \
libxss1 \ libxss1 \
lsb-release lsb-release
@ -61,9 +68,9 @@ msg_info "Installing Web-Check (Patience)"
temp_file=$(mktemp) temp_file=$(mktemp)
RELEASE="patch-1" RELEASE="patch-1"
curl -fsSL "https://github.com/CrazyWolf13/web-check/archive/refs/heads/${RELEASE}.tar.gz" -o "$temp_file" curl -fsSL "https://github.com/CrazyWolf13/web-check/archive/refs/heads/${RELEASE}.tar.gz" -o "$temp_file"
tar xzf $temp_file tar xzf "$temp_file"
mv web-check-${RELEASE} /opt/web-check mv web-check-${RELEASE} /opt/web-check
cd /opt/web-check cd /opt/web-check || exit
cat <<'EOF' >/opt/web-check/.env cat <<'EOF' >/opt/web-check/.env
CHROME_PATH=/usr/bin/chromium CHROME_PATH=/usr/bin/chromium
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
@ -87,7 +94,7 @@ REACT_APP_API_ENDPOINT='/api'
ENABLE_ANALYTICS='false' ENABLE_ANALYTICS='false'
EOF EOF
$STD yarn install --frozen-lockfile --network-timeout 100000 $STD yarn install --frozen-lockfile --network-timeout 100000
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt echo "${RELEASE}" >/opt/"${APPLICATION}"_version.txt
msg_ok "Installed Web-Check" msg_ok "Installed Web-Check"
msg_info "Building Web-Check" msg_info "Building Web-Check"
@ -136,10 +143,10 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -rf $temp_file rm -rf "$temp_file"
rm -rf /var/lib/apt/lists/* /app/node_modules/.cache rm -rf /var/lib/apt/lists/* /app/node_modules/.cache
$STD apt-get -y autoremove $STD apt -y autoremove
$STD apt-get -y autoclean $STD apt -y autoclean
msg_ok "Cleaned" msg_ok "Cleaned"
motd_ssh motd_ssh

View File

@ -14,18 +14,18 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y \ $STD apt install -y \
git \ git \
apache2 \ apache2 \
libapache2-mod-wsgi-py3 libapache2-mod-wsgi-py3
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Python" msg_info "Installing Python"
$STD apt-get install -y python3-pip $STD apt install -y python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Installed Python" msg_ok "Installed Python"
NODE_VERSION="22" NODE_MODULE="yarn@latest,sass" setup_nodejs NODE_VERSION="22" NODE_MODULE="yarn,sass" setup_nodejs
msg_info "Setting up wger" msg_info "Setting up wger"
$STD adduser wger --disabled-password --gecos "" $STD adduser wger --disabled-password --gecos ""
@ -36,12 +36,12 @@ chmod g+w /home/wger/db /home/wger/db/database.sqlite
mkdir /home/wger/{static,media} mkdir /home/wger/{static,media}
chmod o+w /home/wger/media chmod o+w /home/wger/media
temp_dir=$(mktemp -d) temp_dir=$(mktemp -d)
cd $temp_dir cd "$temp_dir" || exit
RELEASE=$(curl -fsSL https://api.github.com/repos/wger-project/wger/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') RELEASE=$(curl -fsSL https://api.github.com/repos/wger-project/wger/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz" -o "$RELEASE.tar.gz" curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz" -o "$RELEASE.tar.gz"
tar xzf $RELEASE.tar.gz tar xzf "$RELEASE".tar.gz
mv wger-$RELEASE /home/wger/src mv wger-"$RELEASE" /home/wger/src
cd /home/wger/src cd /home/wger/src || exit
$STD pip install -r requirements_prod.txt $STD pip install -r requirements_prod.txt
$STD pip install -e . $STD pip install -e .
$STD wger create-settings --database-path /home/wger/db/database.sqlite $STD wger create-settings --database-path /home/wger/db/database.sqlite
@ -105,9 +105,10 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -rf $temp_dir rm -rf "$temp_dir"
$STD apt-get -y autoremove $STD apt -y autoremove
$STD apt-get -y autoclean $STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"
motd_ssh motd_ssh

View File

@ -14,13 +14,13 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y sqlite3 $STD apt install -y sqlite3
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Whisparr" msg_info "Installing Whisparr"
mkdir -p /var/lib/whisparr/ mkdir -p /var/lib/whisparr/
chmod 775 /var/lib/whisparr/ chmod 775 /var/lib/whisparr/
cd /var/lib/whisparr/ cd /var/lib/whisparr/ || exit
$STD curl -fsSL 'https://whisparr.servarr.com/v1/update/nightly/updatefile?os=linux&runtime=netcore&arch=x64' -o whisparr.tar.gz $STD curl -fsSL 'https://whisparr.servarr.com/v1/update/nightly/updatefile?os=linux&runtime=netcore&arch=x64' -o whisparr.tar.gz
$STD tar -xvzf whisparr.tar.gz $STD tar -xvzf whisparr.tar.gz
mv Whisparr /opt mv Whisparr /opt
@ -42,7 +42,6 @@ Restart=on-failure
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl -q daemon-reload
systemctl enable --now -q whisparr systemctl enable --now -q whisparr
msg_ok "Created Service" msg_ok "Created Service"
@ -51,6 +50,7 @@ customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -rf Whisparr.develop.*.tar.gz rm -rf Whisparr.develop.*.tar.gz
$STD apt-get -y autoremove $STD apt -y autoremove
$STD apt-get -y autoclean $STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@ -14,11 +14,11 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y \ $STD apt install -y \
git git
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
NODE_VERSION="22" NODE_MODULE="yarn@latest,node-gyp" setup_nodejs NODE_VERSION="22" NODE_MODULE="yarn,node-gyp" setup_nodejs
PG_VERSION="17" setup_postgresql PG_VERSION="17" setup_postgresql
fetch_and_deploy_gh_release "wikijs" "requarks/wiki" "prebuild" "latest" "/opt/wikijs" "wiki-js.tar.gz" fetch_and_deploy_gh_release "wikijs" "requarks/wiki" "prebuild" "latest" "/opt/wikijs" "wiki-js.tar.gz"
@ -70,6 +70,7 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get -y autoremove $STD apt -y autoremove
$STD apt-get -y autoclean $STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@ -14,12 +14,12 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y git $STD apt install -y git
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing WireGuard" msg_info "Installing WireGuard"
$STD apt-get install -y wireguard wireguard-tools net-tools iptables $STD apt install -y wireguard wireguard-tools net-tools iptables
DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confnew" install -y iptables-persistent &>/dev/null DEBIAN_FRONTEND=noninteractive apt -o Dpkg::Options::="--force-confnew" install -y iptables-persistent &>/dev/null
$STD netfilter-persistent reload $STD netfilter-persistent reload
msg_ok "Installed WireGuard" msg_ok "Installed WireGuard"
@ -28,7 +28,7 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
git clone -q https://github.com/donaldzou/WGDashboard.git /etc/wgdashboard git clone -q https://github.com/donaldzou/WGDashboard.git /etc/wgdashboard
msg_info "Installing WGDashboard" msg_info "Installing WGDashboard"
cd /etc/wgdashboard/src cd /etc/wgdashboard/src || exit
chmod u+x wgd.sh chmod u+x wgd.sh
$STD ./wgd.sh install $STD ./wgd.sh install
echo "net.ipv4.ip_forward=1" >>/etc/sysctl.conf echo "net.ipv4.ip_forward=1" >>/etc/sysctl.conf
@ -77,6 +77,7 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get -y autoremove $STD apt -y autoremove
$STD apt-get -y autoclean $STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@ -14,24 +14,22 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y sqlite3 $STD apt install -y sqlite3
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
setup_uv setup_uv
NODE_VERSION="22" setup_nodejs NODE_VERSION="22" setup_nodejs
fetch_and_deploy_gh_release "wizarr" "wizarrrr/wizarr" fetch_and_deploy_gh_release "wizarr" "wizarrrr/wizarr"
msg_info "Configure ${APPLICATION}" msg_info "Configure Wizarr"
cd /opt/wizarr cd /opt/wizarr || exit
$STD /usr/local/bin/uv sync --frozen $STD /usr/local/bin/uv sync --frozen
$STD /usr/local/bin/uv run --frozen pybabel compile -d app/translations $STD /usr/local/bin/uv run --frozen pybabel compile -d app/translations
$STD npm --prefix app/static install $STD npm --prefix app/static install
$STD npm --prefix app/static run build:css $STD npm --prefix app/static run build:css
mkdir -p ./.cache mkdir -p ./.cache
$STD /usr/local/bin/uv run --frozen flask db upgrade $STD /usr/local/bin/uv run --frozen flask db upgrade
msg_ok "Configure ${APPLICATION}"
msg_info "Creating env, start script and service"
LOCAL_IP="$(hostname -I | awk '{print $1}')" LOCAL_IP="$(hostname -I | awk '{print $1}')"
cat <<EOF >/opt/wizarr/.env cat <<EOF >/opt/wizarr/.env
APP_URL=http://${LOCAL_IP} APP_URL=http://${LOCAL_IP}
@ -51,10 +49,12 @@ uv run --frozen gunicorn \
run:app run:app
EOF EOF
chmod u+x /opt/wizarr/start.sh chmod u+x /opt/wizarr/start.sh
msg_ok "Configure Wizarr"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/wizarr.service cat <<EOF >/etc/systemd/system/wizarr.service
[Unit] [Unit]
Description=${APPLICATION} Service Description=Wizarr Service
After=network.target After=network.target
[Service] [Service]
@ -68,12 +68,13 @@ Restart=on-abnormal
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl enable -q --now wizarr systemctl enable -q --now wizarr
msg_ok "Created env, start script and service" msg_ok "Created Service"
motd_ssh motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get -y autoremove $STD apt -y autoremove
$STD apt-get -y autoclean $STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@ -32,11 +32,11 @@ $STD mariadb -u root -e "GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'local
msg_ok "Set up Database" msg_ok "Set up Database"
msg_info "Installing Wordpress (Patience)" msg_info "Installing Wordpress (Patience)"
cd /var/www/html cd /var/www/html || exit
curl -fsSL "https://wordpress.org/latest.zip" -o "latest.zip" curl -fsSL "https://wordpress.org/latest.zip" -o "latest.zip"
$STD unzip latest.zip $STD unzip latest.zip
chown -R www-data:www-data wordpress/ chown -R www-data:www-data wordpress/
cd /var/www/html/wordpress cd /var/www/html/wordpress || exit
find . -type d -exec chmod 755 {} \; find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \; find . -type f -exec chmod 644 {} \;
mv wp-config-sample.php wp-config.php mv wp-config-sample.php wp-config.php
@ -71,6 +71,7 @@ customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -rf /var/www/html/latest.zip rm -rf /var/www/html/latest.zip
$STD apt-get autoremove $STD apt -y autoremove
$STD apt-get autoclean $STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"