1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-03-08 13:19:05 +00:00

Feature: Use Verbose Mode for all Scripts (removed &>/dev/null) (#2596)

* Feature: Use Verbose Mode for all Scripts (removed &>/dev/null)

* Update crafty-controller.sh
This commit is contained in:
CanbiZ 2025-02-24 12:49:16 +01:00 committed by GitHub
parent 20cc7572a5
commit ece3ad2b13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
165 changed files with 475 additions and 475 deletions

View File

@ -35,8 +35,8 @@ function update_script() {
if [[ "${RELEASE}" != "$(cat /opt/2fauth_version.txt)" ]] || [[ ! -f /opt/2fauth_version.txt ]]; then if [[ "${RELEASE}" != "$(cat /opt/2fauth_version.txt)" ]] || [[ ! -f /opt/2fauth_version.txt ]]; then
msg_info "Updating $APP to ${RELEASE}" msg_info "Updating $APP to ${RELEASE}"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
# Creating Backup # Creating Backup
msg_info "Creating Backup" msg_info "Creating Backup"
@ -55,7 +55,7 @@ function update_script() {
chmod -R 755 "/opt/2fauth" chmod -R 755 "/opt/2fauth"
export COMPOSER_ALLOW_SUPERUSER=1 export COMPOSER_ALLOW_SUPERUSER=1
composer install --no-dev --prefer-source &>/dev/null $STD composer install --no-dev --prefer-source
php artisan 2fauth:install php artisan 2fauth:install

View File

@ -42,13 +42,13 @@ function update_script() {
wget -q "https://github.com/actualbudget/actual-server/archive/refs/tags/v${RELEASE}.tar.gz" wget -q "https://github.com/actualbudget/actual-server/archive/refs/tags/v${RELEASE}.tar.gz"
mv /opt/actualbudget /opt/actualbudget_bak mv /opt/actualbudget /opt/actualbudget_bak
tar -xzf "v${RELEASE}.tar.gz" &>/dev/null $STD tar -xzf "v${RELEASE}.tar.gz"
mv *ctual-server-* /opt/actualbudget mv *ctual-server-* /opt/actualbudget
mkdir -p /opt/actualbudget-data/{server-files,upload,migrate,user-files,migrations,config} mkdir -p /opt/actualbudget-data/{server-files,upload,migrate,user-files,migrations,config}
for dir in server-files .migrate user-files migrations; do for dir in server-files .migrate user-files migrations; do
if [[ -d /opt/actualbudget_bak/$dir ]]; then if [[ -d /opt/actualbudget_bak/$dir ]]; then
mv /opt/actualbudget_bak/$dir/* /opt/actualbudget-data/$dir/ 2>/dev/null || true mv /opt/actualbudget_bak/$dir/* /opt/actualbudget-data/$dir/ || true
fi fi
done done
if [[ -f /opt/actualbudget-data/migrate/.migrations ]]; then if [[ -f /opt/actualbudget-data/migrate/.migrations ]]; then
@ -74,7 +74,7 @@ ACTUAL_HTTPS_CERT=/opt/actualbudget/selfhost.crt
EOF EOF
fi fi
cd /opt/actualbudget cd /opt/actualbudget
yarn install &>/dev/null $STD yarn install
echo "${RELEASE}" > /opt/actualbudget_version.txt echo "${RELEASE}" > /opt/actualbudget_version.txt
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"

View File

@ -43,15 +43,15 @@ function update_script() {
mv /opt/adventurelog-backup/backend/server/.env /opt/adventurelog/backend/server/.env mv /opt/adventurelog-backup/backend/server/.env /opt/adventurelog/backend/server/.env
mv /opt/adventurelog-backup/backend/server/media /opt/adventurelog/backend/server/media mv /opt/adventurelog-backup/backend/server/media /opt/adventurelog/backend/server/media
cd /opt/adventurelog/backend/server cd /opt/adventurelog/backend/server
pip install --upgrade pip &>/dev/null $STD pip install --upgrade pip
pip install -r requirements.txt &>/dev/null $STD pip install -r requirements.txt
python3 manage.py collectstatic --noinput &>/dev/null $STD python3 manage.py collectstatic --noinput
python3 manage.py migrate &>/dev/null $STD python3 manage.py migrate
mv /opt/adventurelog-backup/frontend/.env /opt/adventurelog/frontend/.env mv /opt/adventurelog-backup/frontend/.env /opt/adventurelog/frontend/.env
cd /opt/adventurelog/frontend cd /opt/adventurelog/frontend
pnpm install &>/dev/null $STD pnpm install
pnpm run build &>/dev/null $STD pnpm run build
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"

View File

@ -30,7 +30,7 @@ if [ ! -d /usr/share/nginx/html ]; then
fi fi
RELEASE=$(curl -s https://api.github.com/repos/CorentinTh/it-tools/releases/latest | grep '"tag_name":' | cut -d '"' -f4) RELEASE=$(curl -s https://api.github.com/repos/CorentinTh/it-tools/releases/latest | grep '"tag_name":' | cut -d '"' -f4)
if [ "${RELEASE}" != "$(cat /opt/${APP}_version.txt 2>/dev/null)" ] || [ ! -f /opt/${APP}_version.txt ]; then if [ "${RELEASE}" != "$(cat /opt/${APP}_version.txt" ] || [ ! -f /opt/${APP}_version.txt ]; then
DOWNLOAD_URL="https://github.com/CorentinTh/it-tools/releases/download/${RELEASE}/it-tools-${RELEASE#v}.zip" DOWNLOAD_URL="https://github.com/CorentinTh/it-tools/releases/download/${RELEASE}/it-tools-${RELEASE#v}.zip"
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
curl -fsSL -o it-tools.zip "$DOWNLOAD_URL" curl -fsSL -o it-tools.zip "$DOWNLOAD_URL"

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -29,14 +29,14 @@ function update_script() {
RELEASE=$(curl -s https://api.github.com/repos/authelia/authelia/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(curl -s https://api.github.com/repos/authelia/authelia/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
if [[ "${RELEASE}" != "$(/usr/bin/authelia -v | awk '{print substr($3, 2, length($2)) }' )" ]]; then if [[ "${RELEASE}" != "$(/usr/bin/authelia -v | awk '{print substr($3, 2, length($2)) }' )" ]]; then
msg_info "Updating $APP to ${RELEASE}" msg_info "Updating $APP to ${RELEASE}"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
wget -q "https://github.com/authelia/authelia/releases/download/${RELEASE}/authelia_${RELEASE}_amd64.deb" wget -q "https://github.com/authelia/authelia/releases/download/${RELEASE}/authelia_${RELEASE}_amd64.deb"
dpkg -i "authelia_${RELEASE}_amd64.deb" &>/dev/null $STD dpkg -i "authelia_${RELEASE}_amd64.deb"
msg_info "Cleaning Up" msg_info "Cleaning Up"
rm -f "authelia_${RELEASE}_amd64.deb" rm -f "authelia_${RELEASE}_amd64.deb"
apt-get -y autoremove &>/dev/null $STD apt-get -y autoremove
apt-get -y autoclean &>/dev/null $STD apt-get -y autoclean
msg_ok "Cleanup Completed" msg_ok "Cleanup Completed"
msg_ok "Updated $APP to ${RELEASE}" msg_ok "Updated $APP to ${RELEASE}"
else else

View File

@ -40,11 +40,11 @@ function update_script() {
tar -xzf authentik.tar.gz -C /opt/authentik --strip-components 1 --overwrite tar -xzf authentik.tar.gz -C /opt/authentik --strip-components 1 --overwrite
rm -rf authentik.tar.gz rm -rf authentik.tar.gz
cd /opt/authentik/website cd /opt/authentik/website
npm install &>/dev/null $STD npm install
npm run build-bundled &>/dev/null $STD npm run build-bundled
cd /opt/authentik/web cd /opt/authentik/web
npm install &>/dev/null $STD npm install
npm run build &>/dev/null $STD npm run build
msg_ok "Built ${APP} website" msg_ok "Built ${APP} website"
msg_info "Building ${APP} server" msg_info "Building ${APP} server"
@ -56,15 +56,15 @@ function update_script() {
msg_info "Installing Python Dependencies" msg_info "Installing Python Dependencies"
cd /opt/authentik cd /opt/authentik
poetry install --only=main --no-ansi --no-interaction --no-root &>/dev/null $STD poetry install --only=main --no-ansi --no-interaction --no-root
poetry export --without-hashes --without-urls -f requirements.txt --output requirements.txt &>/dev/null $STD poetry export --without-hashes --without-urls -f requirements.txt --output requirements.txt
pip install --no-cache-dir -r requirements.txt &>/dev/null $STD pip install --no-cache-dir -r requirements.txt
pip install . &>/dev/null $STD pip install .
msg_ok "Installed Python Dependencies" msg_ok "Installed Python Dependencies"
msg_info "Updating ${APP} to v${RELEASE} (Patience)" msg_info "Updating ${APP} to v${RELEASE} (Patience)"
cp -r /opt/authentik/authentik/blueprints /opt/authentik/blueprints cp -r /opt/authentik/authentik/blueprints /opt/authentik/blueprints
bash /opt/authentik/lifecycle/ak migrate &>/dev/null $STD bash /opt/authentik/lifecycle/ak migrate
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}"

View File

@ -25,8 +25,8 @@ function update_script() {
check_container_resources check_container_resources
if [[ ! -d /var/lib/bazarr/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -d /var/lib/bazarr/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -25,8 +25,8 @@ function update_script() {
check_container_resources check_container_resources
if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -39,12 +39,12 @@ function update_script() {
unzip -q /opt/v${RELEASE}.zip -d /opt unzip -q /opt/v${RELEASE}.zip -d /opt
mv /opt/BookStack-${RELEASE} /opt/bookstack mv /opt/BookStack-${RELEASE} /opt/bookstack
cp /opt/bookstack-backup/.env /opt/bookstack/.env cp /opt/bookstack-backup/.env /opt/bookstack/.env
cp -r /opt/bookstack-backup/public/uploads/* /opt/bookstack/public/uploads/ 2>/dev/null || true cp -r /opt/bookstack-backup/public/uploads/* /opt/bookstack/public/uploads/ || true
cp -r /opt/bookstack-backup/storage/uploads/* /opt/bookstack/storage/uploads/ 2>/dev/null || true cp -r /opt/bookstack-backup/storage/uploads/* /opt/bookstack/storage/uploads/ || true
cp -r /opt/bookstack-backup/themes/* /opt/bookstack/themes/ 2>/dev/null || true cp -r /opt/bookstack-backup/themes/* /opt/bookstack/themes/ || true
cd /opt/bookstack cd /opt/bookstack
COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev &>/dev/null $STD COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev
php artisan migrate --force &>/dev/null $STD php artisan migrate --force
chown www-data:www-data -R /opt/bookstack /opt/bookstack/bootstrap/cache /opt/bookstack/public/uploads /opt/bookstack/storage chown www-data:www-data -R /opt/bookstack /opt/bookstack/bootstrap/cache /opt/bookstack/public/uploads /opt/bookstack/storage
chmod -R 755 /opt/bookstack /opt/bookstack/bootstrap/cache /opt/bookstack/public/uploads /opt/bookstack/storage chmod -R 755 /opt/bookstack /opt/bookstack/bootstrap/cache /opt/bookstack/public/uploads /opt/bookstack/storage
chmod -R 775 /opt/bookstack/storage /opt/bookstack/bootstrap/cache /opt/bookstack/public/uploads chmod -R 775 /opt/bookstack/storage /opt/bookstack/bootstrap/cache /opt/bookstack/public/uploads

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -115,10 +115,10 @@ function update_script() {
echo "${options[*]}" echo "${options[*]}"
) )
echo $cps_options >/opt/calibre-web/options.txt echo $cps_options >/opt/calibre-web/options.txt
pip install --upgrade calibreweb[$cps_options] &>/dev/null $STD pip install --upgrade calibreweb[$cps_options]
else else
rm -rf /opt/calibre-web/options.txt rm -rf /opt/calibre-web/options.txt
pip install --upgrade calibreweb &>/dev/null $STD pip install --upgrade calibreweb
fi fi
msg_info "Starting ${APP}" msg_info "Starting ${APP}"

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated ${APP} LXC" msg_ok "Updated ${APP} LXC"
exit exit
} }

View File

@ -31,31 +31,31 @@ function update_script() {
if ! dpkg -s libjpeg-dev >/dev/null 2>&1; then if ! dpkg -s libjpeg-dev >/dev/null 2>&1; then
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
apt-get update $STD apt-get update
apt-get install -y libjpeg-dev $STD apt-get install -y libjpeg-dev
msg_ok "Updated Dependencies" msg_ok "Updated Dependencies"
fi fi
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
pip3 install changedetection.io --upgrade &>/dev/null $STD pip3 install changedetection.io --upgrade
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"
msg_info "Updating Playwright" msg_info "Updating Playwright"
pip3 install playwright --upgrade &>/dev/null $STD pip3 install playwright --upgrade
msg_ok "Updated Playwright" msg_ok "Updated Playwright"
if [[ -f /etc/systemd/system/browserless.service ]]; then if [[ -f /etc/systemd/system/browserless.service ]]; then
msg_info "Updating Browserless (Patience)" msg_info "Updating Browserless (Patience)"
git -C /opt/browserless/ fetch --all &>/dev/null $STD git -C /opt/browserless/ fetch --all
git -C /opt/browserless/ reset --hard origin/main &>/dev/null $STD git -C /opt/browserless/ reset --hard origin/main
npm update --prefix /opt/browserless &>/dev/null $STD npm update --prefix /opt/browserless
/opt/browserless/node_modules/playwright-core/cli.js install --with-deps &>/dev/null $STD /opt/browserless/node_modules/playwright-core/cli.js install --with-deps
# Update Chrome separately, as it has to be done with the force option. Otherwise the installation of other browsers will not be done if Chrome is already installed. # Update Chrome separately, as it has to be done with the force option. Otherwise the installation of other browsers will not be done if Chrome is already installed.
/opt/browserless/node_modules/playwright-core/cli.js install --force chrome &>/dev/null $STD /opt/browserless/node_modules/playwright-core/cli.js install --force chrome
/opt/browserless/node_modules/playwright-core/cli.js install chromium firefox webkit &>/dev/null $STD /opt/browserless/node_modules/playwright-core/cli.js install chromium firefox webkit
npm run build --prefix /opt/browserless &>/dev/null $STD npm run build --prefix /opt/browserless
npm run build:function --prefix /opt/browserless &>/dev/null $STD npm run build:function --prefix /opt/browserless
npm prune production --prefix /opt/browserless &>/dev/null $STD npm prune production --prefix /opt/browserless
systemctl restart browserless systemctl restart browserless
msg_ok "Updated Browserless" msg_ok "Updated Browserless"
else else

View File

@ -30,14 +30,14 @@ function update_script() {
RELEASE=$(curl -fsSL https://api.github.com/repos/checkmk/checkmk/tags | grep "name" | awk '{print substr($2, 3, length($2)-4) }' | tr ' ' '\n' | grep -v '\-rc' | sort -V | tail -n 1) RELEASE=$(curl -fsSL https://api.github.com/repos/checkmk/checkmk/tags | grep "name" | awk '{print substr($2, 3, length($2)-4) }' | tr ' ' '\n' | grep -v '\-rc' | 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 "Updating ${APP} to v${RELEASE}" msg_info "Updating ${APP} to v${RELEASE}"
omd stop monitoring &>/dev/null $STD omd stop monitoring
omd cp monitoring monitoringbackup &>/dev/null $STD omd cp monitoring monitoringbackup
wget -q https://download.checkmk.com/checkmk/${RELEASE}/check-mk-raw-${RELEASE}_0.bookworm_amd64.deb -O /opt/checkmk.deb wget -q https://download.checkmk.com/checkmk/${RELEASE}/check-mk-raw-${RELEASE}_0.bookworm_amd64.deb -O /opt/checkmk.deb
apt-get install -y /opt/checkmk.deb &>/dev/null $STD apt-get install -y /opt/checkmk.deb
omd --force -V ${RELEASE}.cre update --conflict=install monitoring &>/dev/null $STD omd --force -V ${RELEASE}.cre update --conflict=install monitoring
omd start monitoring &>/dev/null $STD omd start monitoring
omd -f rm monitoringbackup &>/dev/null $STD omd -f rm monitoringbackup
omd cleanup &>/dev/null $STD omd cleanup
rm -rf /opt/checkmk.deb rm -rf /opt/checkmk.deb
msg_ok "Updated ${APP} to v${RELEASE}" msg_ok "Updated ${APP} to v${RELEASE}"
else else

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -36,48 +36,48 @@ function update_script() {
if [ "$UPD" == "1" ]; then if [ "$UPD" == "1" ]; then
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated ${APP} LXC" msg_ok "Updated ${APP} LXC"
exit exit
fi fi
if [ "$UPD" == "2" ]; then if [ "$UPD" == "2" ]; then
msg_info "Installing dependencies (patience)" msg_info "Installing dependencies (patience)"
apt-get install -y attr &>/dev/null $STD apt-get install -y attr
apt-get install -y nfs-kernel-server &>/dev/null $STD apt-get install -y nfs-kernel-server
apt-get install -y samba &>/dev/null $STD apt-get install -y samba
apt-get install -y samba-common-bin &>/dev/null $STD apt-get install -y samba-common-bin
apt-get install -y winbind &>/dev/null $STD apt-get install -y winbind
apt-get install -y gawk &>/dev/null $STD apt-get install -y gawk
msg_ok "Installed dependencies" msg_ok "Installed dependencies"
msg_info "Installing Cockpit file sharing" msg_info "Installing Cockpit file sharing"
wget -q $(curl -s https://api.github.com/repos/45Drives/cockpit-file-sharing/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4) wget -q $(curl -s https://api.github.com/repos/45Drives/cockpit-file-sharing/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)
dpkg -i cockpit-file-sharing_*focal_all.deb &>/dev/null $STD dpkg -i cockpit-file-sharing_*focal_all.deb
rm cockpit-file-sharing_*focal_all.deb rm cockpit-file-sharing_*focal_all.deb
msg_ok "Installed Cockpit file sharing" msg_ok "Installed Cockpit file sharing"
exit exit
fi fi
if [ "$UPD" == "3" ]; then if [ "$UPD" == "3" ]; then
msg_info "Installing dependencies (patience)" msg_info "Installing dependencies (patience)"
apt-get install -y psmisc &>/dev/null $STD apt-get install -y psmisc
apt-get install -y samba &>/dev/null $STD apt-get install -y samba
apt-get install -y samba-common-bin &>/dev/null $STD apt-get install -y samba-common-bin
msg_ok "Installed dependencies" msg_ok "Installed dependencies"
msg_info "Installing Cockpit identities" msg_info "Installing Cockpit identities"
wget -q $(curl -s https://api.github.com/repos/45Drives/cockpit-identities/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4) wget -q $(curl -s https://api.github.com/repos/45Drives/cockpit-identities/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)
dpkg -i cockpit-identities_*focal_all.deb &>/dev/null $STD dpkg -i cockpit-identities_*focal_all.deb
rm cockpit-identities_*focal_all.deb rm cockpit-identities_*focal_all.deb
msg_ok "Installed Cockpit identities" msg_ok "Installed Cockpit identities"
exit exit
fi fi
if [ "$UPD" == "4" ]; then if [ "$UPD" == "4" ]; then
msg_info "Installing dependencies" msg_info "Installing dependencies"
apt-get install -y rsync &>/dev/null $STD apt-get install -y rsync
apt-get install -y zip &>/dev/null $STD apt-get install -y zip
msg_ok "Installed dependencies" msg_ok "Installed dependencies"
msg_info "Installing Cockpit navigator" msg_info "Installing Cockpit navigator"
wget -q $(curl -s https://api.github.com/repos/45Drives/cockpit-navigator/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4) wget -q $(curl -s https://api.github.com/repos/45Drives/cockpit-navigator/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)
dpkg -i cockpit-navigator_*focal_all.deb &>/dev/null $STD dpkg -i cockpit-navigator_*focal_all.deb
rm cockpit-navigator_*focal_all.deb rm cockpit-navigator_*focal_all.deb
msg_ok "Installed Cockpit navigator" msg_ok "Installed Cockpit navigator"
exit exit

View File

@ -36,12 +36,12 @@ function update_script() {
if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then
if ! command -v npm >/dev/null 2>&1; then if ! command -v npm >/dev/null 2>&1; then
echo "Installing NPM..." echo "Installing NPM..."
apt-get install -y npm >/dev/null 2>&1 $STD apt-get install -y npm
echo "Installed NPM..." echo "Installed NPM..."
fi fi
fi fi
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
/opt/cronicle/bin/control.sh upgrade &>/dev/null $STD /opt/cronicle/bin/control.sh upgrade
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"
exit exit
fi fi
@ -49,7 +49,7 @@ function update_script() {
if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then
if ! command -v npm >/dev/null 2>&1; then if ! command -v npm >/dev/null 2>&1; then
echo "Installing NPM..." echo "Installing NPM..."
apt-get install -y npm >/dev/null 2>&1 $STD apt-get install -y npm
echo "Installed NPM..." echo "Installed NPM..."
fi fi
fi fi
@ -57,12 +57,12 @@ function update_script() {
IP=$(hostname -I | awk '{print $1}') IP=$(hostname -I | awk '{print $1}')
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
apt-get install -y git &>/dev/null $STD apt-get install -y git
apt-get install -y make &>/dev/null $STD apt-get install -y make
apt-get install -y g++ &>/dev/null $STD apt-get install -y g++
apt-get install -y gcc &>/dev/null $STD apt-get install -y gcc
apt-get install -y ca-certificates &>/dev/null $STD apt-get install -y ca-certificates
apt-get install -y gnupg &>/dev/null $STD apt-get install -y gnupg
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository" msg_info "Setting up Node.js Repository"
@ -72,21 +72,21 @@ function update_script() {
msg_ok "Set up Node.js Repository" msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js" msg_info "Installing Node.js"
apt-get update &>/dev/null $STD apt-get update
apt-get install -y nodejs &>/dev/null $STD apt-get install -y nodejs
msg_ok "Installed Node.js" msg_ok "Installed Node.js"
msg_info "Installing Cronicle Worker" msg_info "Installing Cronicle Worker"
mkdir -p /opt/cronicle mkdir -p /opt/cronicle
cd /opt/cronicle cd /opt/cronicle
tar zxvf <(curl -fsSL https://github.com/jhuckaby/Cronicle/archive/${LATEST}.tar.gz) --strip-components 1 &>/dev/null $STD tar zxvf <(curl -fsSL https://github.com/jhuckaby/Cronicle/archive/${LATEST}.tar.gz) --strip-components 1
npm install &>/dev/null $STD npm install
node bin/build.js dist &>/dev/null $STD node bin/build.js dist
sed -i "s/localhost:3012/${IP}:3012/g" /opt/cronicle/conf/config.json sed -i "s/localhost:3012/${IP}:3012/g" /opt/cronicle/conf/config.json
/opt/cronicle/bin/control.sh start &>/dev/null $STD /opt/cronicle/bin/control.sh start
cp /opt/cronicle/bin/cronicled.init /etc/init.d/cronicled &>/dev/null $STD cp /opt/cronicle/bin/cronicled.init /etc/init.d/cronicled
chmod 775 /etc/init.d/cronicled chmod 775 /etc/init.d/cronicled
update-rc.d cronicled defaults &>/dev/null $STD update-rc.d cronicled defaults
msg_ok "Installed Cronicle Worker" msg_ok "Installed Cronicle Worker"
echo -e "\n Add Masters secret key to /opt/cronicle/conf/config.json \n" echo -e "\n Add Masters secret key to /opt/cronicle/conf/config.json \n"
exit exit

View File

@ -29,7 +29,7 @@ function update_script() {
latest_version=$(npm show cross-seed version) latest_version=$(npm show cross-seed version)
if [ "$current_version" != "$latest_version" ]; then if [ "$current_version" != "$latest_version" ]; then
msg_info "Updating ${APP} from version v${current_version} to v${latest_version}" msg_info "Updating ${APP} from version v${current_version} to v${latest_version}"
npm install -g cross-seed@latest &> /dev/null $STD npm install -g cross-seed@latest
systemctl restart cross-seed systemctl restart cross-seed
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
else else

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -28,7 +28,7 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
pip3 install deluge[all] --upgrade pip3 install deluge[all] --upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated ${APP} LXC" msg_ok "Updated ${APP} LXC"
exit exit
} }

View File

@ -41,8 +41,8 @@ function update_script() {
mv docmost-${RELEASE} /opt/docmost mv docmost-${RELEASE} /opt/docmost
cd /opt/docmost cd /opt/docmost
mv /opt/.env /opt/docmost/.env mv /opt/.env /opt/docmost/.env
pnpm install --force &>/dev/null $STD pnpm install --force
pnpm build &>/dev/null $STD pnpm build
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -33,8 +33,8 @@ function update_script() {
msg_ok "Stopped ${APP}" msg_ok "Stopped ${APP}"
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
wget https://github.com/MediaBrowser/Emby.Releases/releases/download/${LATEST}/emby-server-deb_${LATEST}_amd64.deb &>/dev/null $STD wget https://github.com/MediaBrowser/Emby.Releases/releases/download/${LATEST}/emby-server-deb_${LATEST}_amd64.deb
dpkg -i emby-server-deb_${LATEST}_amd64.deb &>/dev/null $STD dpkg -i emby-server-deb_${LATEST}_amd64.deb
rm emby-server-deb_${LATEST}_amd64.deb rm emby-server-deb_${LATEST}_amd64.deb
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -33,9 +33,9 @@ function update_script() {
msg_info "Updating ESPHome" msg_info "Updating ESPHome"
if [[ -d /srv/esphome ]]; then if [[ -d /srv/esphome ]]; then
source /srv/esphome/bin/activate &>/dev/null $STD source /srv/esphome/bin/activate
fi fi
pip3 install -U esphome &>/dev/null $STD pip3 install -U esphome
msg_ok "Updated ESPHome" msg_ok "Updated ESPHome"
msg_info "Starting ESPHome" msg_info "Starting ESPHome"

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating evcc LXC" msg_info "Updating evcc LXC"
apt update &>/dev/null $STD apt update
apt --only-upgrade install -y evcc &>/dev/null $STD apt --only-upgrade install -y evcc
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -43,7 +43,7 @@ function update_script() {
rm -rf /opt/excalidraw rm -rf /opt/excalidraw
mv excalidraw-${RELEASE} /opt/excalidraw mv excalidraw-${RELEASE} /opt/excalidraw
cd /opt/excalidraw cd /opt/excalidraw
yarn &> /dev/null $STD yarn
msg_ok "Updated $APP to v${RELEASE}" msg_ok "Updated $APP to v${RELEASE}"
msg_info "Starting $APP" msg_info "Starting $APP"

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -42,13 +42,13 @@ check_container_resources
wget -q "https://github.com/firefly-iii/firefly-iii/releases/download/v${RELEASE}/FireflyIII-v${RELEASE}.tar.gz" wget -q "https://github.com/firefly-iii/firefly-iii/releases/download/v${RELEASE}/FireflyIII-v${RELEASE}.tar.gz"
tar -xzf FireflyIII-v${RELEASE}.tar.gz -C /opt/firefly --exclude='storage' tar -xzf FireflyIII-v${RELEASE}.tar.gz -C /opt/firefly --exclude='storage'
cd /opt/firefly cd /opt/firefly
composer install --no-dev --no-interaction &>/dev/null $STD composer install --no-dev --no-interaction
php artisan migrate --seed --force &>/dev/null $STD php artisan migrate --seed --force
php artisan firefly:decrypt-all &>/dev/null $STD php artisan firefly:decrypt-all
php artisan cache:clear &>/dev/null $STD php artisan cache:clear
php artisan view:clear &>/dev/null $STD php artisan view:clear
php artisan firefly:upgrade-database &>/dev/null $STD php artisan firefly:upgrade-database
php artisan firefly:laravel-passport-keys &>/dev/null $STD php artisan firefly:laravel-passport-keys
chown -R www-data:www-data /opt/firefly chown -R www-data:www-data /opt/firefly
chmod -R 775 /opt/firefly/storage chmod -R 775 /opt/firefly/storage

View File

@ -30,7 +30,7 @@ function update_script() {
latest_version=$(npm show ghost-cli version) latest_version=$(npm show ghost-cli version)
if [ "$current_version" != "$latest_version" ]; then if [ "$current_version" != "$latest_version" ]; then
msg_info "Updating ${APP} from version v${current_version} to v${latest_version}" msg_info "Updating ${APP} from version v${current_version} to v${latest_version}"
npm install -g ghost-cli@latest &> /dev/null $STD npm install -g ghost-cli@latest
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
else else
msg_ok "${APP} is already at v${current_version}" msg_ok "${APP} is already at v${current_version}"

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -34,8 +34,8 @@ function update_script() {
msg_ok "Stopped $APP" msg_ok "Stopped $APP"
msg_info "Updating $APP" msg_info "Updating $APP"
apt-get update &> /dev/null $STD apt-get update
apt-get upgrade -y &> /dev/null $STD apt-get upgrade -y
msg_ok "Updated $APP" msg_ok "Updated $APP"
msg_info "Starting $APP" msg_info "Starting $APP"

View File

@ -51,15 +51,15 @@ function update_script() {
cd grist cd grist
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
yarn install >/dev/null 2>&1 $STD yarn install
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Building" msg_info "Building"
yarn run build:prod >/dev/null 2>&1 $STD yarn run build:prod
msg_ok "Done building" msg_ok "Done building"
msg_info "Installing Python" msg_info "Installing Python"
yarn run install:python >/dev/null 2>&1 $STD yarn run install:python
msg_ok "Installed Python" msg_ok "Installed Python"
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt

View File

@ -44,8 +44,8 @@ function update_script() {
VER=$(curl -s https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') VER=$(curl -s https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
cp -R Heimdall-${VER}/* /opt/Heimdall cp -R Heimdall-${VER}/* /opt/Heimdall
cd /opt/Heimdall cd /opt/Heimdall
apt-get install -y composer &>/dev/null $STD apt-get install -y composer
COMPOSER_ALLOW_SUPERUSER=1 composer dump-autoload &>/dev/null $STD COMPOSER_ALLOW_SUPERUSER=1 composer dump-autoload
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated Heimdall Dashboard to ${RELEASE}" msg_ok "Updated Heimdall Dashboard to ${RELEASE}"
msg_info "Restoring Data" msg_info "Restoring Data"

View File

@ -35,7 +35,7 @@ function update_script() {
msg_ok "Stopped Services" msg_ok "Stopped Services"
msg_info "Updating ${APP} to v${RELEASE}" msg_info "Updating ${APP} to v${RELEASE}"
if [[ $(corepack -v) < "0.31.0" ]]; then if [[ $(corepack -v) < "0.31.0" ]]; then
npm install -g corepack@0.31.0 &>/dev/null $STD npm install -g corepack@0.31.0
fi fi
cd /opt cd /opt
if [[ -f /opt/hoarder/.env ]] && [[ ! -f /etc/hoarder/hoarder.env ]]; then if [[ -f /opt/hoarder/.env ]] && [[ ! -f /etc/hoarder/hoarder.env ]]; then
@ -47,14 +47,14 @@ function update_script() {
unzip -q v${RELEASE}.zip unzip -q v${RELEASE}.zip
mv hoarder-${RELEASE} /opt/hoarder mv hoarder-${RELEASE} /opt/hoarder
cd /opt/hoarder/apps/web cd /opt/hoarder/apps/web
pnpm install --frozen-lockfile &>/dev/null $STD pnpm install --frozen-lockfile
pnpm exec next build --experimental-build-mode compile &>/dev/null $STD pnpm exec next build --experimental-build-mode compile
cp -r /opt/hoarder/apps/web/.next/standalone/apps/web/server.js /opt/hoarder/apps/web cp -r /opt/hoarder/apps/web/.next/standalone/apps/web/server.js /opt/hoarder/apps/web
cd /opt/hoarder/apps/workers cd /opt/hoarder/apps/workers
pnpm install --frozen-lockfile &>/dev/null $STD pnpm install --frozen-lockfile
export DATA_DIR=/opt/hoarder_data export DATA_DIR=/opt/hoarder_data
cd /opt/hoarder/packages/db cd /opt/hoarder/packages/db
pnpm migrate &>/dev/null $STD pnpm migrate
sed -i "s/SERVER_VERSION=${PREV_RELEASE}/SERVER_VERSION=${RELEASE}/" /etc/hoarder/hoarder.env sed -i "s/SERVER_VERSION=${PREV_RELEASE}/SERVER_VERSION=${RELEASE}/" /etc/hoarder/hoarder.env
msg_ok "Updated ${APP} to v${RELEASE}" msg_ok "Updated ${APP} to v${RELEASE}"

View File

@ -38,7 +38,7 @@ fi
if [[ ! -f /opt/run_homarr.sh ]]; then if [[ ! -f /opt/run_homarr.sh ]]; then
msg_info "Detected outdated and missing service files" msg_info "Detected outdated and missing service files"
msg_error "Warning - The port of homarr changed from 3000 to 7575" msg_error "Warning - The port of homarr changed from 3000 to 7575"
apt-get install -y nginx gettext openssl gpg &>/dev/null $STD apt-get install -y nginx gettext openssl gpg
sed -i '/^NODE_ENV=/d' /opt/homarr/.env && echo "NODE_ENV='production'" >> /opt/homarr/.env sed -i '/^NODE_ENV=/d' /opt/homarr/.env && echo "NODE_ENV='production'" >> /opt/homarr/.env
sed -i '/^DB_DIALECT=/d' /opt/homarr/.env && echo "DB_DIALECT='sqlite'" >> /opt/homarr/.env sed -i '/^DB_DIALECT=/d' /opt/homarr/.env && echo "DB_DIALECT='sqlite'" >> /opt/homarr/.env
cat <<'EOF' >/opt/run_homarr.sh cat <<'EOF' >/opt/run_homarr.sh
@ -114,8 +114,8 @@ EOF
mv homarr-${RELEASE} /opt/homarr mv homarr-${RELEASE} /opt/homarr
mv /opt/homarr-data-backup/.env /opt/homarr/.env mv /opt/homarr-data-backup/.env /opt/homarr/.env
cd /opt/homarr cd /opt/homarr
pnpm install &>/dev/null $STD pnpm install
pnpm build &>/dev/null $STD pnpm build
cp /opt/homarr/apps/nextjs/next.config.ts . cp /opt/homarr/apps/nextjs/next.config.ts .
cp /opt/homarr/apps/nextjs/package.json . cp /opt/homarr/apps/nextjs/package.json .
cp -r /opt/homarr/packages/db/migrations /opt/homarr_db/migrations cp -r /opt/homarr/packages/db/migrations /opt/homarr_db/migrations

View File

@ -59,7 +59,7 @@ function update_script() {
msg_info "Updating Home Assistant" msg_info "Updating Home Assistant"
source /srv/homeassistant/bin/activate source /srv/homeassistant/bin/activate
pip install ${BR}--upgrade homeassistant &>/dev/null $STD pip install ${BR}--upgrade homeassistant
msg_ok "Updated Home Assistant" msg_ok "Updated Home Assistant"
msg_info "Starting Home Assistant" msg_info "Starting Home Assistant"
@ -72,10 +72,10 @@ function update_script() {
fi fi
if [ "$UPD" == "2" ]; then if [ "$UPD" == "2" ]; then
msg_info "Installing Home Assistant Community Store (HACS)" msg_info "Installing Home Assistant Community Store (HACS)"
apt update &>/dev/null $STD apt update
apt install -y unzip &>/dev/null $STD apt install -y unzip
cd .homeassistant cd .homeassistant
bash <(curl -fsSL https://get.hacs.xyz) &>/dev/null $STD bash <(curl -fsSL https://get.hacs.xyz)
msg_ok "Installed Home Assistant Community Store (HACS)" msg_ok "Installed Home Assistant Community Store (HACS)"
echo -e "\n Reboot Home Assistant and clear browser cache then Add HACS integration.\n" echo -e "\n Reboot Home Assistant and clear browser cache then Add HACS integration.\n"
exit exit
@ -85,17 +85,17 @@ function update_script() {
read -r -p "Would you like to use No Authentication? <y/N> " prompt read -r -p "Would you like to use No Authentication? <y/N> " prompt
msg_info "Installing FileBrowser" msg_info "Installing FileBrowser"
RELEASE=$(curl -fsSL https://api.github.com/repos/filebrowser/filebrowser/releases/latest | grep -o '"tag_name": ".*"' | sed 's/"//g' | sed 's/tag_name: //g') RELEASE=$(curl -fsSL https://api.github.com/repos/filebrowser/filebrowser/releases/latest | grep -o '"tag_name": ".*"' | sed 's/"//g' | sed 's/tag_name: //g')
curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/$RELEASE/linux-amd64-filebrowser.tar.gz | tar -xzv -C /usr/local/bin &>/dev/null $STD curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/$RELEASE/linux-amd64-filebrowser.tar.gz | tar -xzv -C /usr/local/bin
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
filebrowser config init -a '0.0.0.0' &>/dev/null $STD filebrowser config init -a '0.0.0.0'
filebrowser config set -a '0.0.0.0' &>/dev/null $STD filebrowser config set -a '0.0.0.0'
filebrowser config set --auth.method=noauth &>/dev/null $STD filebrowser config set --auth.method=noauth
filebrowser users add ID 1 --perm.admin &>/dev/null $STD filebrowser users add ID 1 --perm.admin
else else
filebrowser config init -a '0.0.0.0' &>/dev/null $STD filebrowser config init -a '0.0.0.0'
filebrowser config set -a '0.0.0.0' &>/dev/null $STD filebrowser config set -a '0.0.0.0'
filebrowser users add admin helper-scripts.com --perm.admin &>/dev/null $STD filebrowser users add admin helper-scripts.com --perm.admin
fi fi
msg_ok "Installed FileBrowser" msg_ok "Installed FileBrowser"

View File

@ -61,10 +61,10 @@ function update_script() {
fi fi
if [ "$UPD" == "3" ]; then if [ "$UPD" == "3" ]; then
msg_info "Installing Home Assistant Community Store (HACS)" msg_info "Installing Home Assistant Community Store (HACS)"
apt update &>/dev/null $STD apt update
apt install unzip &>/dev/null $STD apt install unzip
cd /var/lib/docker/volumes/hass_config/_data cd /var/lib/docker/volumes/hass_config/_data
bash <(curl -fsSL https://get.hacs.xyz) &>/dev/null $STD bash <(curl -fsSL https://get.hacs.xyz)
msg_ok "Installed Home Assistant Community Store (HACS)" msg_ok "Installed Home Assistant Community Store (HACS)"
echo -e "\n Reboot Home Assistant and clear browser cache then Add HACS integration.\n" echo -e "\n Reboot Home Assistant and clear browser cache then Add HACS integration.\n"
exit exit
@ -73,10 +73,10 @@ function update_script() {
IP=$(hostname -I | awk '{print $1}') IP=$(hostname -I | awk '{print $1}')
msg_info "Installing FileBrowser" msg_info "Installing FileBrowser"
RELEASE=$(curl -fsSL https://api.github.com/repos/filebrowser/filebrowser/releases/latest | grep -o '"tag_name": ".*"' | sed 's/"//g' | sed 's/tag_name: //g') RELEASE=$(curl -fsSL https://api.github.com/repos/filebrowser/filebrowser/releases/latest | grep -o '"tag_name": ".*"' | sed 's/"//g' | sed 's/tag_name: //g')
curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-amd64-filebrowser.tar.gz | tar -xzv -C /usr/local/bin &>/dev/null $STD curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-amd64-filebrowser.tar.gz | tar -xzv -C /usr/local/bin
filebrowser config init -a '0.0.0.0' &>/dev/null $STD filebrowser config init -a '0.0.0.0'
filebrowser config set -a '0.0.0.0' &>/dev/null $STD filebrowser config set -a '0.0.0.0'
filebrowser users add admin helper-scripts.com --perm.admin &>/dev/null $STD filebrowser users add admin helper-scripts.com --perm.admin
msg_ok "Installed FileBrowser" msg_ok "Installed FileBrowser"
msg_info "Creating Service" msg_info "Creating Service"
@ -91,7 +91,7 @@ ExecStart=/usr/local/bin/filebrowser -r /
[Install] [Install]
WantedBy=default.target" >$service_path WantedBy=default.target" >$service_path
systemctl enable --now filebrowser.service &>/dev/null $STD systemctl enable --now filebrowser.service
msg_ok "Created Service" msg_ok "Created Service"
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get install -y homebridge &>/dev/null $STD apt-get install -y homebridge
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -30,8 +30,8 @@ function update_script() {
if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then
if ! command -v npm >/dev/null 2>&1; then if ! command -v npm >/dev/null 2>&1; then
echo "Installing NPM..." echo "Installing NPM..."
apt-get install -y npm >/dev/null 2>&1 $STD apt-get install -y npm
npm install -g pnpm >/dev/null 2>&1 $STD npm install -g pnpm
echo "Installed NPM..." echo "Installed NPM..."
fi fi
fi fi
@ -45,11 +45,11 @@ function update_script() {
cp -r homepage-${RELEASE}/* /opt/homepage/ cp -r homepage-${RELEASE}/* /opt/homepage/
rm -rf homepage-${RELEASE} rm -rf homepage-${RELEASE}
cd /opt/homepage cd /opt/homepage
npx --yes update-browserslist-db@latest >/dev/null 2>&1 $STD npx --yes update-browserslist-db@latest
pnpm install >/dev/null 2>&1 $STD pnpm install
export NEXT_PUBLIC_VERSION="v$RELEASE" export NEXT_PUBLIC_VERSION="v$RELEASE"
export NEXT_PUBLIC_REVISION="source" export NEXT_PUBLIC_REVISION="source"
pnpm build >/dev/null 2>&1 $STD pnpm build
systemctl start homepage systemctl start homepage
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated Homepage to v${RELEASE}" msg_ok "Updated Homepage to v${RELEASE}"

View File

@ -41,7 +41,7 @@ function update_script() {
rm -rf /opt/homer/* rm -rf /opt/homer/*
cd /opt/homer cd /opt/homer
wget -q https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip wget -q https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip
unzip homer.zip &>/dev/null $STD unzip homer.zip
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"
msg_info "Restoring assets directory" msg_info "Restoring assets directory"

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get install -y hyperion &>/dev/null $STD apt-get install -y hyperion
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -36,7 +36,7 @@ function update_script() {
msg_info "Updating ${APP} to v${RELEASE}" msg_info "Updating ${APP} to v${RELEASE}"
cd /opt cd /opt
wget -q https://github.com/inspircd/inspircd/releases/download/v${RELEASE}/inspircd_${RELEASE}.deb12u1_amd64.deb wget -q https://github.com/inspircd/inspircd/releases/download/v${RELEASE}/inspircd_${RELEASE}.deb12u1_amd64.deb
apt-get install "./inspircd_${RELEASE}.deb12u1_amd64.deb" -y &>/dev/nul $STD apt-get install "./inspircd_${RELEASE}.deb12u1_amd64.deb" -y
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}"

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -28,9 +28,9 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
apt-get -y --with-new-pkgs upgrade jellyfin jellyfin-server &>/dev/null $STD apt-get -y --with-new-pkgs upgrade jellyfin jellyfin-server
msg_ok "Updated ${APP} LXC" msg_ok "Updated ${APP} LXC"
exit exit
} }

View File

@ -35,8 +35,8 @@ function update_script() {
msg_ok "Updating Node.js Repository" msg_ok "Updating Node.js Repository"
msg_info "Updating Packages" msg_info "Updating Packages"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updating Packages" msg_ok "Updating Packages"
msg_info "Cleaning up" msg_info "Cleaning up"
@ -53,10 +53,10 @@ function update_script() {
if [ -z "$pnpm_current" ]; then if [ -z "$pnpm_current" ]; then
msg_error "pnpm not found. Installing version $pnpm_desired..." msg_error "pnpm not found. Installing version $pnpm_desired..."
npm install -g pnpm@"$pnpm_desired" &>/dev/null $STD npm install -g pnpm@"$pnpm_desired"
elif ! node -e "const semver = require('semver'); process.exit(semver.satisfies('$pnpm_current', '$pnpm_desired') ? 0 : 1)" ; then elif ! node -e "const semver = require('semver'); process.exit(semver.satisfies('$pnpm_current', '$pnpm_desired') ? 0 : 1)" ; then
msg_error "Updating pnpm from version $pnpm_current to $pnpm_desired..." msg_error "Updating pnpm from version $pnpm_current to $pnpm_desired..."
npm install -g pnpm@"$pnpm_desired" &>/dev/null $STD npm install -g pnpm@"$pnpm_desired"
else else
msg_ok "pnpm is already installed and satisfies version $pnpm_desired." msg_ok "pnpm is already installed and satisfies version $pnpm_desired."
fi fi
@ -70,9 +70,9 @@ function update_script() {
systemctl stop jellyseerr systemctl stop jellyseerr
rm -rf dist .next node_modules rm -rf dist .next node_modules
export CYPRESS_INSTALL_BINARY=0 export CYPRESS_INSTALL_BINARY=0
pnpm install --frozen-lockfile &>/dev/null $STD pnpm install --frozen-lockfile
export NODE_OPTIONS="--max-old-space-size=3072" export NODE_OPTIONS="--max-old-space-size=3072"
pnpm build &>/dev/null $STD pnpm build
cat <<EOF >/etc/systemd/system/jellyseerr.service cat <<EOF >/etc/systemd/system/jellyseerr.service
[Unit] [Unit]

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -25,9 +25,9 @@ function update_script() {
check_container_resources check_container_resources
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get install -y upgrade &>/dev/null $STD apt-get install -y upgrade
pip3 install jupyter --upgrade &>/dev/null $STD pip3 install jupyter --upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -30,7 +30,7 @@ function update_script() {
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
systemctl stop kavita systemctl stop kavita
RELEASE=$(curl -s https://api.github.com/repos/Kareadita/Kavita/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(curl -s https://api.github.com/repos/Kareadita/Kavita/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
tar -xvzf <(curl -fsSL https://github.com/Kareadita/Kavita/releases/download/$RELEASE/kavita-linux-x64.tar.gz) --no-same-owner &>/dev/null $STD tar -xvzf <(curl -fsSL https://github.com/Kareadita/Kavita/releases/download/$RELEASE/kavita-linux-x64.tar.gz) --no-same-owner
rm -rf Kavita/config rm -rf Kavita/config
cp -r Kavita/* /opt/Kavita cp -r Kavita/* /opt/Kavita
rm -rf Kavita rm -rf Kavita

View File

@ -30,8 +30,8 @@ function update_script() {
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
msg_info "Updating packages" msg_info "Updating packages"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
RELEASE=$(curl -s https://api.github.com/repos/keycloak/keycloak/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(curl -s https://api.github.com/repos/keycloak/keycloak/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
msg_info "Updating Keycloak to v$RELEASE" msg_info "Updating Keycloak to v$RELEASE"

View File

@ -41,8 +41,8 @@ function update_script() {
mv kimai-${RELEASE} /opt/kimai mv kimai-${RELEASE} /opt/kimai
mv /opt/.env /opt/kimai/.env mv /opt/.env /opt/kimai/.env
cd /opt/kimai cd /opt/kimai
composer install --no-dev --optimize-autoloader &>/dev/null $STD composer install --no-dev --optimize-autoloader
bin/console kimai:update &>/dev/null $STD bin/console kimai:update
chown -R :www-data . chown -R :www-data .
chmod -R g+r . chmod -R g+r .
chmod -R g+rw var/ chmod -R g+rw var/

View File

@ -43,12 +43,12 @@ function update_script() {
cp -r /opt/koillection-backup/.env.local /opt/koillection cp -r /opt/koillection-backup/.env.local /opt/koillection
cp -r /opt/koillection-backup/public/uploads/. /opt/koillection/public/uploads/ cp -r /opt/koillection-backup/public/uploads/. /opt/koillection/public/uploads/
export COMPOSER_ALLOW_SUPERUSER=1 export COMPOSER_ALLOW_SUPERUSER=1
composer install --no-dev -o --no-interaction --classmap-authoritative &>/dev/null $STD composer install --no-dev -o --no-interaction --classmap-authoritative
php bin/console doctrine:migrations:migrate --no-interaction &>/dev/null $STD php bin/console doctrine:migrations:migrate --no-interaction
php bin/console app:translations:dump &>/dev/null $STD php bin/console app:translations:dump
cd assets/ cd assets/
yarn install &>/dev/null $STD yarn install
yarn build &>/dev/null $STD yarn build
chown -R www-data:www-data /opt/koillection/public/uploads chown -R www-data:www-data /opt/koillection/public/uploads
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}"

View File

@ -46,7 +46,7 @@ function update_script() {
mv Kometa-${RELEASE} /opt/kometa mv Kometa-${RELEASE} /opt/kometa
cd /opt/kometa cd /opt/kometa
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
pip install -r requirements.txt --ignore-installed &> /dev/null $STD pip install -r requirements.txt --ignore-installed
mkdir -p config/assets mkdir -p config/assets
cp /opt/config.yml config/config.yml cp /opt/config.yml config/config.yml
echo "${RELEASE}" >/opt/kometa_version.txt echo "${RELEASE}" >/opt/kometa_version.txt

View File

@ -54,7 +54,7 @@ function update_script() {
exit 1 exit 1
} }
docker compose -p komodo -f "/opt/komodo/$COMPOSE_FILE" --env-file /opt/komodo/compose.env up -d &>/dev/null $STD docker compose -p komodo -f "/opt/komodo/$COMPOSE_FILE" --env-file /opt/komodo/compose.env up -d
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"
} }

View File

@ -30,8 +30,8 @@ function update_script() {
RELEASE=$(wget -q https://github.com/ipfs/kubo/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) RELEASE=$(wget -q https://github.com/ipfs/kubo/releases/latest -O - | grep "title>Release" | cut -d " " -f 4)
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 "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
wget -q "https://github.com/ipfs/kubo/releases/download/${RELEASE}/kubo_${RELEASE}_linux-amd64.tar.gz" wget -q "https://github.com/ipfs/kubo/releases/download/${RELEASE}/kubo_${RELEASE}_linux-amd64.tar.gz"
tar -xzf "kubo_${RELEASE}_linux-amd64.tar.gz" -C /usr/local tar -xzf "kubo_${RELEASE}_linux-amd64.tar.gz" -C /usr/local
systemctl restart ipfs.service systemctl restart ipfs.service

View File

@ -32,7 +32,7 @@ function update_script() {
msg_ok "LazyLibrarian Stopped" msg_ok "LazyLibrarian Stopped"
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
git -C /opt/LazyLibrarian pull origin master &>/dev/null $STD git -C /opt/LazyLibrarian pull origin master
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
msg_info "Starting LazyLibrarian" msg_info "Starting LazyLibrarian"

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -41,12 +41,12 @@ function update_script() {
unzip -q ${RELEASE}.zip unzip -q ${RELEASE}.zip
mv linkwarden-${RELEASE:1} /opt/linkwarden mv linkwarden-${RELEASE:1} /opt/linkwarden
cd /opt/linkwarden cd /opt/linkwarden
yarn &>/dev/null $STD yarn
npx playwright install-deps &>/dev/null $STD npx playwright install-deps
yarn playwright install &>/dev/null $STD yarn playwright install
cp /opt/.env /opt/linkwarden/.env cp /opt/.env /opt/linkwarden/.env
yarn build &>/dev/null $STD yarn build
yarn prisma migrate deploy &>/dev/null $STD yarn prisma migrate deploy
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated ${APP} to ${RELEASE}" msg_ok "Updated ${APP} to ${RELEASE}"

View File

@ -42,7 +42,7 @@ function update_script() {
tar -xzf "listmonk_${RELEASE}_linux_amd64.tar.gz" -C /opt/listmonk tar -xzf "listmonk_${RELEASE}_linux_amd64.tar.gz" -C /opt/listmonk
mv /opt/listmonk-backup/config.toml /opt/listmonk/config.toml mv /opt/listmonk-backup/config.toml /opt/listmonk/config.toml
mv /opt/listmonk-backup/uploads /opt/listmonk/uploads mv /opt/listmonk-backup/uploads /opt/listmonk/uploads
/opt/listmonk/listmonk --upgrade --yes --config /opt/listmonk/config.toml &>/dev/null $STD /opt/listmonk/listmonk --upgrade --yes --config /opt/listmonk/config.toml
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}"

View File

@ -50,7 +50,7 @@ function update_script() {
rm -rf /opt/magicmirror rm -rf /opt/magicmirror
mv MagicMirror-${RELEASE} /opt/magicmirror mv MagicMirror-${RELEASE} /opt/magicmirror
cd /opt/magicmirror cd /opt/magicmirror
npm run install-mm &> /dev/null $STD npm run install-mm
cp /opt/magicmirror-backup/config.js /opt/magicmirror/config/ cp /opt/magicmirror-backup/config.js /opt/magicmirror/config/
if [[ -f /opt/magicmirror-backup/custom.css ]]; then if [[ -f /opt/magicmirror-backup/custom.css ]]; then
cp /opt/magicmirror-backup/custom.css /opt/magicmirror/css/ cp /opt/magicmirror-backup/custom.css /opt/magicmirror/css/

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -37,13 +37,13 @@ function update_script() {
fi fi
systemctl stop memos systemctl stop memos
cd /opt/memos/web cd /opt/memos/web
pnpm i --frozen-lockfile &>/dev/null $STD pnpm i --frozen-lockfile
pnpm build &>/dev/null $STD pnpm build
cd /opt/memos cd /opt/memos
mkdir -p /opt/memos/server/dist mkdir -p /opt/memos/server/dist
cp -r web/dist/* /opt/memos/server/dist/ cp -r web/dist/* /opt/memos/server/dist/
cp -r web/dist/* /opt/memos/server/router/frontend/dist/ cp -r web/dist/* /opt/memos/server/router/frontend/dist/
go build -o /opt/memos/memos -tags=embed bin/memos/main.go &>/dev/null $STD go build -o /opt/memos/memos -tags=embed bin/memos/main.go
systemctl start memos systemctl start memos
msg_ok "Updated $APP" msg_ok "Updated $APP"
exit exit

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -37,14 +37,14 @@ function update_script() {
rm -rf metube_bak rm -rf metube_bak
fi fi
mv metube metube_bak mv metube metube_bak
git clone https://github.com/alexta69/metube /opt/metube >/dev/null 2>&1 $STD git clone https://github.com/alexta69/metube /opt/metube
cd /opt/metube/ui cd /opt/metube/ui
npm install >/dev/null 2>&1 $STD npm install
node_modules/.bin/ng build >/dev/null 2>&1 $STD node_modules/.bin/ng build
cd /opt/metube cd /opt/metube
cp /opt/metube_bak/.env /opt/metube/ cp /opt/metube_bak/.env /opt/metube/
pip3 install pipenv >/dev/null 2>&1 $STD pip3 install pipenv
pipenv install >/dev/null 2>&1 $STD pipenv install
if [ -d "/opt/metube_bak" ]; then if [ -d "/opt/metube_bak" ]; then
rm -rf /opt/metube_bak rm -rf /opt/metube_bak

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -42,10 +42,10 @@ function update_script() {
cd /opt/monica/ cd /opt/monica/
cp -r /opt/monica-backup/.env /opt/monica cp -r /opt/monica-backup/.env /opt/monica
cp -r /opt/monica-backup/storage/* /opt/monica/storage/ cp -r /opt/monica-backup/storage/* /opt/monica/storage/
composer install --no-interaction --no-dev &>/dev/null $STD composer install --no-interaction --no-dev
yarn install &>/dev/null $STD yarn install
yarn run production &>/dev/null $STD yarn run production
php artisan monica:update --force &>/dev/null $STD php artisan monica:update --force
chown -R www-data:www-data /opt/monica chown -R www-data:www-data /opt/monica
chmod -R 775 /opt/monica/storage chmod -R 775 /opt/monica/storage
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt

View File

@ -28,7 +28,7 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
pip install motioneye --upgrade &>/dev/null $STD pip install motioneye --upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -41,7 +41,7 @@ function update_script() {
wget -q https://github.com/gnmyt/myspeed/releases/download/v$RELEASE/MySpeed-$RELEASE.zip wget -q https://github.com/gnmyt/myspeed/releases/download/v$RELEASE/MySpeed-$RELEASE.zip
unzip -q MySpeed-$RELEASE.zip -d myspeed unzip -q MySpeed-$RELEASE.zip -d myspeed
cd myspeed cd myspeed
npm install >/dev/null 2>&1 $STD npm install
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated ${APP} to ${RELEASE}" msg_ok "Updated ${APP} to ${RELEASE}"

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -30,12 +30,12 @@ function update_script() {
if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then
if ! command -v npm >/dev/null 2>&1; then if ! command -v npm >/dev/null 2>&1; then
echo "Installing NPM..." echo "Installing NPM..."
apt-get install -y npm >/dev/null 2>&1 $STD apt-get install -y npm
echo "Installed NPM..." echo "Installed NPM..."
fi fi
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
npm update -g n8n &>/dev/null $STD npm update -g n8n
systemctl restart n8n systemctl restart n8n
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit

View File

@ -35,7 +35,7 @@ function update_script() {
msg_info "Updating to v${RELEASE}" msg_info "Updating to v${RELEASE}"
cd /opt cd /opt
wget -q https://github.com/navidrome/navidrome/releases/download/v${RELEASE}/navidrome_${RELEASE}_linux_amd64.tar.gz -O Navidrome.tar.gz wget -q https://github.com/navidrome/navidrome/releases/download/v${RELEASE}/navidrome_${RELEASE}_linux_amd64.tar.gz -O Navidrome.tar.gz
tar -xvzf Navidrome.tar.gz -C /opt/navidrome/ &>/dev/null $STD tar -xvzf Navidrome.tar.gz -C /opt/navidrome/
chmod +x /opt/navidrome/navidrome chmod +x /opt/navidrome/navidrome
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"
rm -rf /opt/Navidrome.tar.gz rm -rf /opt/Navidrome.tar.gz

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -56,7 +56,7 @@ function update_script() {
cp -r /opt/netbox-backup/netbox/netbox/ldap_config.py /opt/netbox/netbox/netbox/ cp -r /opt/netbox-backup/netbox/netbox/ldap_config.py /opt/netbox/netbox/netbox/
fi fi
/opt/netbox/upgrade.sh &>/dev/null $STD /opt/netbox/upgrade.sh
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}"

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -33,14 +33,14 @@ function update_script() {
msg_ok "Stopped ${APP}" msg_ok "Stopped ${APP}"
msg_info "Updating LXC packages" msg_info "Updating LXC packages"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated LXC packages" msg_ok "Updated LXC packages"
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
cd /opt cd /opt
wget -q https://nextpvr.com/nextpvr-helper.deb wget -q https://nextpvr.com/nextpvr-helper.deb
dpkg -i nextpvr-helper.deb &>/dev/null $STD dpkg -i nextpvr-helper.deb
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"
msg_info "Starting ${APP}" msg_info "Starting ${APP}"

View File

@ -30,7 +30,7 @@ function update_script() {
if ! command -v pnpm &> /dev/null; then if ! command -v pnpm &> /dev/null; then
msg_info "Installing pnpm" msg_info "Installing pnpm"
#export NODE_OPTIONS=--openssl-legacy-provider #export NODE_OPTIONS=--openssl-legacy-provider
npm install -g pnpm@8.15 &>/dev/null $STD npm install -g pnpm@8.15
msg_ok "Installed pnpm" msg_ok "Installed pnpm"
fi fi
RELEASE=$(curl -s https://api.github.com/repos/NginxProxyManager/nginx-proxy-manager/releases/latest | RELEASE=$(curl -s https://api.github.com/repos/NginxProxyManager/nginx-proxy-manager/releases/latest |
@ -47,11 +47,11 @@ function update_script() {
/etc/nginx \ /etc/nginx \
/var/log/nginx \ /var/log/nginx \
/var/lib/nginx \ /var/lib/nginx \
/var/cache/nginx &>/dev/null $STD /var/cache/nginx
msg_ok "Cleaned Old Files" msg_ok "Cleaned Old Files"
msg_info "Downloading NPM v${RELEASE}" msg_info "Downloading NPM v${RELEASE}"
wget -q https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v${RELEASE} -O - | tar -xz &>/dev/null $STD wget -q https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v${RELEASE} -O - | tar -xz
cd nginx-proxy-manager-${RELEASE} cd nginx-proxy-manager-${RELEASE}
msg_ok "Downloaded NPM v${RELEASE}" msg_ok "Downloaded NPM v${RELEASE}"
@ -96,25 +96,25 @@ function update_script() {
chown root /tmp/nginx chown root /tmp/nginx
echo resolver "$(awk 'BEGIN{ORS=" "} $1=="nameserver" {print ($2 ~ ":")? "["$2"]": $2}' /etc/resolv.conf);" >/etc/nginx/conf.d/include/resolvers.conf echo resolver "$(awk 'BEGIN{ORS=" "} $1=="nameserver" {print ($2 ~ ":")? "["$2"]": $2}' /etc/resolv.conf);" >/etc/nginx/conf.d/include/resolvers.conf
if [ ! -f /data/nginx/dummycert.pem ] || [ ! -f /data/nginx/dummykey.pem ]; then if [ ! -f /data/nginx/dummycert.pem ] || [ ! -f /data/nginx/dummykey.pem ]; then
openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -subj "/O=Nginx Proxy Manager/OU=Dummy Certificate/CN=localhost" -keyout /data/nginx/dummykey.pem -out /data/nginx/dummycert.pem &>/dev/null $STD openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -subj "/O=Nginx Proxy Manager/OU=Dummy Certificate/CN=localhost" -keyout /data/nginx/dummykey.pem -out /data/nginx/dummycert.pem
fi fi
mkdir -p /app/global /app/frontend/images mkdir -p /app/global /app/frontend/images
cp -r backend/* /app cp -r backend/* /app
cp -r global/* /app/global cp -r global/* /app/global
python3 -m pip install --no-cache-dir certbot-dns-cloudflare &>/dev/null $STD python3 -m pip install --no-cache-dir certbot-dns-cloudflare
msg_ok "Setup Enviroment" msg_ok "Setup Enviroment"
msg_info "Building Frontend" msg_info "Building Frontend"
cd ./frontend cd ./frontend
pnpm install &>/dev/null $STD pnpm install
pnpm upgrade &>/dev/null $STD pnpm upgrade
pnpm run build &>/dev/null $STD pnpm run build
cp -r dist/* /app/frontend cp -r dist/* /app/frontend
cp -r app-images/* /app/frontend/images cp -r app-images/* /app/frontend/images
msg_ok "Built Frontend" msg_ok "Built Frontend"
msg_info "Initializing Backend" msg_info "Initializing Backend"
rm -rf /app/config/default.json &>/dev/null $STD rm -rf /app/config/default.json
if [ ! -f /app/config/production.json ]; then if [ ! -f /app/config/production.json ]; then
cat <<'EOF' >/app/config/production.json cat <<'EOF' >/app/config/production.json
{ {
@ -131,7 +131,7 @@ function update_script() {
EOF EOF
fi fi
cd /app cd /app
pnpm install &>/dev/null $STD pnpm install
msg_ok "Initialized Backend" msg_ok "Initialized Backend"
msg_info "Starting Services" msg_info "Starting Services"

View File

@ -35,7 +35,7 @@ function update_script() {
if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then
if ! command -v npm >/dev/null 2>&1; then if ! command -v npm >/dev/null 2>&1; then
msg_info "Installing NPM" msg_info "Installing NPM"
apt-get install -y npm >/dev/null 2>&1 $STD apt-get install -y npm
msg_ok "Installed NPM" msg_ok "Installed NPM"
fi fi
fi fi
@ -44,7 +44,7 @@ function update_script() {
msg_ok "Stopped ${APP}" msg_ok "Stopped ${APP}"
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
npm install -g --unsafe-perm node-red &>/dev/null $STD npm install -g --unsafe-perm node-red
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"
msg_info "Starting ${APP}" msg_info "Starting ${APP}"
@ -84,7 +84,7 @@ function update_script() {
msg_info "Installing ${THEME} Theme" msg_info "Installing ${THEME} Theme"
cd /root/.node-red cd /root/.node-red
sed -i 's|// theme: ".*",|theme: "",|g' /root/.node-red/settings.js sed -i 's|// theme: ".*",|theme: "",|g' /root/.node-red/settings.js
npm install @node-red-contrib-themes/theme-collection &>/dev/null $STD npm install @node-red-contrib-themes/theme-collection
sed -i "{s/theme: ".*"/theme: '${THEME}',/g}" /root/.node-red/settings.js sed -i "{s/theme: ".*"/theme: '${THEME}',/g}" /root/.node-red/settings.js
systemctl restart nodered systemctl restart nodered
msg_ok "Installed ${THEME} Theme" msg_ok "Installed ${THEME} Theme"

View File

@ -39,7 +39,7 @@ function update_script() {
msg_info "Updating ${APP} to v${RELEASE}" msg_info "Updating ${APP} to v${RELEASE}"
cd /opt/nodebb cd /opt/nodebb
./nodebb upgrade >/dev/null 2>&1 $STD ./nodebb upgrade
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}"

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP" msg_info "Updating $APP"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP" msg_ok "Updated $APP"
exit exit
} }

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -41,7 +41,7 @@ function update_script() {
wget -q "$DOWNLOAD_URL" -O "nxwitness-server-$RELEASE-linux_x64.deb" wget -q "$DOWNLOAD_URL" -O "nxwitness-server-$RELEASE-linux_x64.deb"
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
export DEBCONF_NOWARNINGS=yes export DEBCONF_NOWARNINGS=yes
dpkg -i nxwitness-server-$RELEASE-linux_x64.deb >/dev/null 2>&1 $STD dpkg -i nxwitness-server-$RELEASE-linux_x64.deb
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }

View File

@ -33,7 +33,7 @@ function update_script() {
msg_info "Updating OctoPrint" msg_info "Updating OctoPrint"
source /opt/octoprint/bin/activate source /opt/octoprint/bin/activate
pip3 install octoprint --upgrade &>/dev/null $STD pip3 install octoprint --upgrade
msg_ok "Updated OctoPrint" msg_ok "Updated OctoPrint"
msg_info "Starting OctoPrint" msg_info "Starting OctoPrint"

View File

@ -27,8 +27,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -37,7 +37,7 @@ function update_script() {
cd /opt cd /opt
wget -q https://code.onedev.io/onedev/server/~site/onedev-latest.tar.gz wget -q https://code.onedev.io/onedev/server/~site/onedev-latest.tar.gz
tar -xzf onedev-latest.tar.gz tar -xzf onedev-latest.tar.gz
/opt/onedev-latest/bin/upgrade.sh /opt/onedev >/dev/null $STD /opt/onedev-latest/bin/upgrade.sh /opt/onedev
RELEASE=$(cat /opt/onedev/release.properties | grep "version" | cut -d'=' -f2) RELEASE=$(cat /opt/onedev/release.properties | grep "version" | cut -d'=' -f2)
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}"

View File

@ -34,8 +34,8 @@ function update_script() {
msg_ok "Stopped Service" msg_ok "Stopped Service"
msg_info "Updating ${APP} to v${RELEASE}" msg_info "Updating ${APP} to v${RELEASE}"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
cd /opt cd /opt
mv /opt/opengist /opt/opengist-backup mv /opt/opengist /opt/opengist-backup
wget -q "https://github.com/thomiceli/opengist/releases/download/v${RELEASE}/opengist${RELEASE}-linux-amd64.tar.gz" wget -q "https://github.com/thomiceli/opengist/releases/download/v${RELEASE}/opengist${RELEASE}-linux-amd64.tar.gz"
@ -52,8 +52,8 @@ function update_script() {
msg_info "Cleaning up" msg_info "Cleaning up"
rm -rf /opt/opengist${RELEASE}-linux-amd64.tar.gz rm -rf /opt/opengist${RELEASE}-linux-amd64.tar.gz
rm -rf /opt/opengist-backup rm -rf /opt/opengist-backup
apt-get -y autoremove &>/dev/null $STD apt-get -y autoremove
apt-get -y autoclean &>/dev/null $STD apt-get -y autoclean
msg_ok "Cleaned" msg_ok "Cleaned"
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
else else

View File

@ -28,8 +28,8 @@ function update_script() {
exit exit
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -35,11 +35,11 @@ function update_script() {
exit exit
fi fi
systemctl stop open-webui.service systemctl stop open-webui.service
npm install &>/dev/null $STD npm install
export NODE_OPTIONS="--max-old-space-size=3584" export NODE_OPTIONS="--max-old-space-size=3584"
npm run build &>/dev/null $STD npm run build
cd ./backend cd ./backend
pip install -r requirements.txt -U &>/dev/null $STD pip install -r requirements.txt -U
systemctl start open-webui.service systemctl start open-webui.service
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit

View File

@ -31,14 +31,14 @@ function update_script() {
systemctl stop overseerr systemctl stop overseerr
cd /opt/overseerr cd /opt/overseerr
output=$(git pull) output=$(git pull)
git pull &>/dev/null $STD git pull
if echo "$output" | grep -q "Already up to date."; then if echo "$output" | grep -q "Already up to date."; then
msg_ok " $APP is already up to date." msg_ok " $APP is already up to date."
systemctl start overseerr systemctl start overseerr
exit exit
fi fi
yarn install &>/dev/null $STD yarn install
yarn build &>/dev/null $STD yarn build
systemctl start overseerr systemctl start overseerr
msg_ok "Updated $APP" msg_ok "Updated $APP"
exit exit

Some files were not shown because too many files have changed in this diff Show More