fix paths
This commit is contained in:
parent
5756197107
commit
01618e0817
@ -2,7 +2,7 @@
|
|||||||
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||||
# Copyright (c) 2021-2025 community-scripts ORG
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
# Author: MickLesk (Canbiz)
|
# Author: MickLesk (Canbiz)
|
||||||
# License: MIT | https://github.com/tteck/Proxmox/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
|
||||||
APP="Ampache"
|
APP="Ampache"
|
||||||
var_disk="5"
|
var_disk="5"
|
||||||
@ -17,23 +17,23 @@ color
|
|||||||
catch_errors
|
catch_errors
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -d /opt/ampache ]]; then
|
if [[ ! -d /opt/ampache ]]; then
|
||||||
msg_error "No ${APP} Installation Found!";
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit;
|
exit
|
||||||
fi
|
fi
|
||||||
msg_info "Updating ${APP} LXC"
|
msg_info "Updating ${APP} LXC"
|
||||||
cd /opt/bookstack
|
cd /opt/bookstack
|
||||||
git config --global --add safe.directory /opt/bookstack >/dev/null 2>&1
|
git config --global --add safe.directory /opt/bookstack >/dev/null 2>&1
|
||||||
git pull origin release >/dev/null 2>&1
|
git pull origin release >/dev/null 2>&1
|
||||||
composer install --no-interaction --no-dev >/dev/null 2>&1
|
composer install --no-interaction --no-dev >/dev/null 2>&1
|
||||||
php artisan migrate --force >/dev/null 2>&1
|
php artisan migrate --force >/dev/null 2>&1
|
||||||
php artisan cache:clear
|
php artisan cache:clear
|
||||||
php artisan config:clear
|
php artisan config:clear
|
||||||
php artisan view:clear
|
php artisan view:clear
|
||||||
msg_ok "Updated Successfully"
|
msg_ok "Updated Successfully"
|
||||||
exit
|
exit
|
||||||
msg_error "There is currently no update path available."
|
msg_error "There is currently no update path available."
|
||||||
}
|
}
|
||||||
|
|
||||||
start
|
start
|
||||||
|
@ -1,69 +1,24 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||||
# Copyright (c) 2021-2024 tteck
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
# Author: tteck
|
# Author: MickLesk (Canbiz)
|
||||||
# Co-Author: MickLesk (Canbiz)
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# License: MIT
|
|
||||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
|
||||||
|
|
||||||
function header_info {
|
|
||||||
clear
|
|
||||||
cat <<"EOF"
|
|
||||||
____ __ ____ __ __
|
|
||||||
/ __ )____ _/ /_ __ __ / __ )__ ______/ /___/ /_ __
|
|
||||||
/ __ / __ `/ __ \/ / / / / __ / / / / __ / __ / / / /
|
|
||||||
/ /_/ / /_/ / /_/ / /_/ / / /_/ / /_/ / /_/ / /_/ / /_/ /
|
|
||||||
/_____/\__,_/_.___/\__, / /_____/\__,_/\__,_/\__,_/\__, /
|
|
||||||
/____/ /____/
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
header_info
|
|
||||||
echo -e "Loading..."
|
|
||||||
APP="BabyBuddy"
|
APP="BabyBuddy"
|
||||||
var_disk="5"
|
var_disk="5"
|
||||||
var_cpu="2"
|
var_cpu="2"
|
||||||
var_ram="2048"
|
var_ram="2048"
|
||||||
var_os="debian"
|
var_os="debian"
|
||||||
var_version="12"
|
var_version="12"
|
||||||
|
|
||||||
|
header_info "$APP"
|
||||||
variables
|
variables
|
||||||
color
|
color
|
||||||
catch_errors
|
catch_errors
|
||||||
|
|
||||||
function default_settings() {
|
|
||||||
CT_TYPE="1"
|
|
||||||
PW=""
|
|
||||||
CT_ID=$NEXTID
|
|
||||||
HN=$NSAPP
|
|
||||||
DISK_SIZE="$var_disk"
|
|
||||||
CORE_COUNT="$var_cpu"
|
|
||||||
RAM_SIZE="$var_ram"
|
|
||||||
BRG="vmbr0"
|
|
||||||
NET="dhcp"
|
|
||||||
GATE=""
|
|
||||||
APT_CACHER=""
|
|
||||||
APT_CACHER_IP=""
|
|
||||||
DISABLEIP6="no"
|
|
||||||
MTU=""
|
|
||||||
SD=""
|
|
||||||
NS=""
|
|
||||||
MAC=""
|
|
||||||
VLAN=""
|
|
||||||
SSH="no"
|
|
||||||
VERB="no"
|
|
||||||
echo_default
|
|
||||||
}
|
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
if [[ ! -d /opt/scrutiny ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -d /opt/babybuddy ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/AnalogJ/scrutiny/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
RELEASE=$(curl -s https://api.github.com/repos/xxxxx/xxxxx/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
|
|
||||||
UPD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Scrutiny Management" --radiolist --cancel-button Exit-Script "Spacebar = Select" 15 70 4 \
|
|
||||||
"1" "Update Scrutiny to $RELEASE" ON \
|
|
||||||
"2" "Change Scrutiny Settings" OFF \
|
|
||||||
3>&1 1>&2 2>&3)
|
|
||||||
header_info
|
|
||||||
if [ "$UPD" == "2" ]; then
|
|
||||||
nano /opt/scrutiny/config/scrutiny.yaml
|
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -2,76 +2,38 @@
|
|||||||
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||||
# Copyright (c) 2021-2025 community-scripts ORG
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
# Author: MickLesk (Canbiz)
|
# Author: MickLesk (Canbiz)
|
||||||
# License: MIT | https://github.com/tteck/Proxmox/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
|
||||||
function header_info {
|
|
||||||
clear
|
|
||||||
cat <<"EOF"
|
|
||||||
______ _ _
|
|
||||||
| _ \ | | |
|
|
||||||
| | | |___ ___ ___ _ __ ___| | |
|
|
||||||
| | | / _ \ / __/ __| '_ \ / _ \ | |
|
|
||||||
| |/ / (_) | (__\__ \ |_) | __/ | |
|
|
||||||
|___/ \___/ \___|___/ .__/ \___|_|_|
|
|
||||||
| |
|
|
||||||
|_|
|
|
||||||
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
header_info
|
|
||||||
echo -e "Loading..."
|
|
||||||
APP="Docspell"
|
APP="Docspell"
|
||||||
var_disk="5"
|
var_disk="5"
|
||||||
var_cpu="4"
|
var_cpu="4"
|
||||||
var_ram="2048"
|
var_ram="2048"
|
||||||
var_os="debian"
|
var_os="debian"
|
||||||
var_version="12"
|
var_version="12"
|
||||||
|
|
||||||
|
header_info "$APP"
|
||||||
variables
|
variables
|
||||||
color
|
color
|
||||||
catch_errors
|
catch_errors
|
||||||
|
|
||||||
function default_settings() {
|
|
||||||
CT_TYPE="1"
|
|
||||||
PW=""
|
|
||||||
CT_ID=$NEXTID
|
|
||||||
HN=$NSAPP
|
|
||||||
DISK_SIZE="$var_disk"
|
|
||||||
CORE_COUNT="$var_cpu"
|
|
||||||
RAM_SIZE="$var_ram"
|
|
||||||
BRG="vmbr0"
|
|
||||||
NET="dhcp"
|
|
||||||
GATE=""
|
|
||||||
APT_CACHER=""
|
|
||||||
APT_CACHER_IP=""
|
|
||||||
DISABLEIP6="no"
|
|
||||||
MTU=""
|
|
||||||
SD=""
|
|
||||||
NS=""
|
|
||||||
MAC=""
|
|
||||||
VLAN=""
|
|
||||||
SSH="no"
|
|
||||||
VERB="no"
|
|
||||||
echo_default
|
|
||||||
}
|
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -d /opt/docspell ]]; then
|
if [[ ! -d /opt/docspell ]]; then
|
||||||
msg_error "No ${APP} Installation Found!";
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit;
|
exit
|
||||||
fi
|
fi
|
||||||
msg_info "Updating ${APP} LXC"
|
msg_info "Updating ${APP} LXC"
|
||||||
cd /opt/bookstack
|
cd /opt/bookstack
|
||||||
git config --global --add safe.directory /opt/bookstack >/dev/null 2>&1
|
git config --global --add safe.directory /opt/bookstack >/dev/null 2>&1
|
||||||
git pull origin release >/dev/null 2>&1
|
git pull origin release >/dev/null 2>&1
|
||||||
composer install --no-interaction --no-dev >/dev/null 2>&1
|
composer install --no-interaction --no-dev >/dev/null 2>&1
|
||||||
php artisan migrate --force >/dev/null 2>&1
|
php artisan migrate --force >/dev/null 2>&1
|
||||||
php artisan cache:clear
|
php artisan cache:clear
|
||||||
php artisan config:clear
|
php artisan config:clear
|
||||||
php artisan view:clear
|
php artisan view:clear
|
||||||
msg_ok "Updated Successfully"
|
msg_ok "Updated Successfully"
|
||||||
exit
|
exit
|
||||||
msg_error "There is currently no update path available."
|
msg_error "There is currently no update path available."
|
||||||
}
|
}
|
||||||
|
|
||||||
start
|
start
|
||||||
|
@ -1,67 +1,32 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||||
# Copyright (c) 2021-2024 tteck
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
# Author: tteck
|
# Author: MickLesk (Canbiz)
|
||||||
# Co-Author: jcantosz
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# License: MIT
|
|
||||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
|
||||||
|
|
||||||
function header_info {
|
|
||||||
clear
|
|
||||||
cat <<"EOF"
|
|
||||||
________ __ ____ ___
|
|
||||||
/ ____/ /_ ____ _____/ /_/ __/___ / (_)___
|
|
||||||
/ / __/ __ \/ __ \/ ___/ __/ /_/ __ \/ / / __ \
|
|
||||||
/ /_/ / / / / /_/ (__ ) /_/ __/ /_/ / / / /_/ /
|
|
||||||
\____/_/ /_/\____/____/\__/_/ \____/_/_/\____/
|
|
||||||
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
header_info
|
|
||||||
echo -e "Loading..."
|
|
||||||
APP="Ghostfolio"
|
APP="Ghostfolio"
|
||||||
var_disk="6"
|
var_disk="6"
|
||||||
var_cpu="2"
|
var_cpu="2"
|
||||||
var_ram="2048"
|
var_ram="2048"
|
||||||
var_os="debian"
|
var_os="debian"
|
||||||
var_version="12"
|
var_version="12"
|
||||||
|
|
||||||
|
header_info "$APP"
|
||||||
variables
|
variables
|
||||||
color
|
color
|
||||||
catch_errors
|
catch_errors
|
||||||
|
|
||||||
# Install requires at least 2GiB of RAM and 6GiB of disk space, both requirements are lower to actually run the app
|
|
||||||
function default_settings() {
|
|
||||||
CT_TYPE="1"
|
|
||||||
PW=""
|
|
||||||
CT_ID=$NEXTID
|
|
||||||
HN=$NSAPP
|
|
||||||
DISK_SIZE="$var_disk"
|
|
||||||
CORE_COUNT="$var_cpu"
|
|
||||||
RAM_SIZE="$var_ram"
|
|
||||||
BRG="vmbr0"
|
|
||||||
NET="dhcp"
|
|
||||||
GATE=""
|
|
||||||
APT_CACHER=""
|
|
||||||
APT_CACHER_IP=""
|
|
||||||
DISABLEIP6="no"
|
|
||||||
MTU=""
|
|
||||||
SD=""
|
|
||||||
NS=""
|
|
||||||
MAC=""
|
|
||||||
VLAN=""
|
|
||||||
SSH="no"
|
|
||||||
VERB="no"
|
|
||||||
echo_default
|
|
||||||
}
|
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -d /opt/ghostfolio ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -d /opt/ghostfolio ]]; then
|
||||||
msg_info "Updating OS"
|
msg_error "No ${APP} Installation Found!"
|
||||||
apt-get update &>/dev/null
|
exit
|
||||||
apt-get -y upgrade &>/dev/null
|
fi
|
||||||
msg_ok "Updated Successfully"
|
msg_info "Updating OS"
|
||||||
exit
|
apt-get update &>/dev/null
|
||||||
|
apt-get -y upgrade &>/dev/null
|
||||||
|
msg_ok "Updated Successfully"
|
||||||
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
start
|
start
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||||
# Copyright (c) 2021-2025 tteck
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
# Authors: tteck (tteckster)
|
# Author: MickLesk (Canbiz)
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# Source: https://frigate.video/
|
|
||||||
|
|
||||||
# App Default Values
|
|
||||||
APP="healthchecks"
|
APP="healthchecks"
|
||||||
var_tags="nvr"
|
var_tags="monitoring"
|
||||||
var_cpu="4"
|
var_cpu="4"
|
||||||
var_ram="4096"
|
var_ram="4096"
|
||||||
var_disk="20"
|
var_disk="20"
|
||||||
@ -15,10 +13,7 @@ var_os="debian"
|
|||||||
var_version="12"
|
var_version="12"
|
||||||
var_unprivileged="0"
|
var_unprivileged="0"
|
||||||
|
|
||||||
# App Output
|
|
||||||
header_info "$APP"
|
header_info "$APP"
|
||||||
|
|
||||||
# Core
|
|
||||||
variables
|
variables
|
||||||
color
|
color
|
||||||
catch_errors
|
catch_errors
|
||||||
@ -27,11 +22,11 @@ function update_script() {
|
|||||||
header_info
|
header_info
|
||||||
check_container_storage
|
check_container_storage
|
||||||
check_container_resources
|
check_container_resources
|
||||||
if [[ ! -f /etc/systemd/system/frigate.service ]]; then
|
if [[ ! -f /etc/systemd/system/healthchecks.service ]]; then
|
||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
msg_error "To update Frigate, create a new container and transfer your configuration."
|
msg_error "No Update."
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
57
ct/hoodik.sh
57
ct/hoodik.sh
@ -1,11 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||||
# Copyright (c) 2021-2024 tteck
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
# Author: tteck
|
# Author: MickLesk (Canbiz)
|
||||||
# Co-Author: MickLesk (Canbiz)
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# License: MIT
|
|
||||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/matze/wastebin
|
|
||||||
|
|
||||||
# App Default Values
|
# App Default Values
|
||||||
APP="Hoodik"
|
APP="Hoodik"
|
||||||
@ -35,33 +32,33 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/hudikhq/hoodik/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
RELEASE=$(curl -s https://api.github.com/repos/hudikhq/hoodik/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
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 Services"
|
msg_info "Stopping Services"
|
||||||
systemctl stop hoodik
|
systemctl stop hoodik
|
||||||
msg_ok "Services Stopped"
|
msg_ok "Services Stopped"
|
||||||
|
|
||||||
msg_info "Updating ${APP} to ${RELEASE}"
|
msg_info "Updating ${APP} to ${RELEASE}"
|
||||||
cd /opt
|
cd /opt
|
||||||
if [ -d hoodik_bak ]; then
|
if [ -d hoodik_bak ]; then
|
||||||
rm -rf hoodik_bak
|
rm -rf hoodik_bak
|
||||||
fi
|
fi
|
||||||
mv hoodik hoodik_bak
|
mv hoodik hoodik_bak
|
||||||
wget -q "https://github.com/hudikhq/hoodik/archive/refs/tags/${RELEASE}.zip"
|
wget -q "https://github.com/hudikhq/hoodik/archive/refs/tags/${RELEASE}.zip"
|
||||||
unzip -q ${RELEASE}.zip
|
unzip -q ${RELEASE}.zip
|
||||||
mv hoodik-${RELEASE} /opt/hoodik
|
mv hoodik-${RELEASE} /opt/hoodik
|
||||||
cd /opt/hoodik
|
cd /opt/hoodik
|
||||||
cargo update -q
|
cargo update -q
|
||||||
cargo build -q --release
|
cargo build -q --release
|
||||||
msg_ok "Updated Hoodik"
|
msg_ok "Updated Hoodik"
|
||||||
|
|
||||||
msg_info "Starting Services"
|
msg_info "Starting Services"
|
||||||
systemctl start hoodik
|
systemctl start hoodik
|
||||||
msg_ok "Started Services"
|
msg_ok "Started Services"
|
||||||
|
|
||||||
msg_info "Cleaning Up"
|
msg_info "Cleaning Up"
|
||||||
rm -R /opt/${RELEASE}.zip
|
rm -R /opt/${RELEASE}.zip
|
||||||
rm -R /opt/hoodik_bak
|
rm -R /opt/hoodik_bak
|
||||||
msg_ok "Cleaned"
|
msg_ok "Cleaned"
|
||||||
msg_ok "Updated Successfully"
|
msg_ok "Updated Successfully"
|
||||||
else
|
else
|
||||||
msg_ok "No update required. ${APP} is already at ${RELEASE}"
|
msg_ok "No update required. ${APP} is already at ${RELEASE}"
|
||||||
fi
|
fi
|
||||||
|
29
ct/koel.sh
29
ct/koel.sh
@ -1,9 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||||
# Copyright (c) 2021-2024 communtiy-scripts ORG
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
# Author: MickLesk (Canbiz)
|
# Author: MickLesk (Canbiz)
|
||||||
# License: MIT
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
|
|
||||||
## App Default Values
|
## App Default Values
|
||||||
APP="Koel"
|
APP="Koel"
|
||||||
@ -39,22 +38,22 @@ function update_script() {
|
|||||||
msg_ok "Stopped ${APP} Service"
|
msg_ok "Stopped ${APP} Service"
|
||||||
|
|
||||||
msg_info "Updating ${APP} to v${RELEASE}"
|
msg_info "Updating ${APP} to v${RELEASE}"
|
||||||
cd /opt
|
cd /opt
|
||||||
wget -q https://github.com/koel/koel/releases/download/${RELEASE}/koel-${RELEASE}.zip
|
wget -q https://github.com/koel/koel/releases/download/${RELEASE}/koel-${RELEASE}.zip
|
||||||
unzip -q koel-${RELEASE}.zip
|
unzip -q koel-${RELEASE}.zip
|
||||||
cd /opt/koel
|
cd /opt/koel
|
||||||
composer update --no-interaction >/dev/null 2>&1
|
composer update --no-interaction >/dev/null 2>&1
|
||||||
composer install --no-interaction >/dev/null 2>&1
|
composer install --no-interaction >/dev/null 2>&1
|
||||||
php artisan migrate --force >/dev/null 2>&1
|
php artisan migrate --force >/dev/null 2>&1
|
||||||
php artisan cache:clear >/dev/null 2>&1
|
php artisan cache:clear >/dev/null 2>&1
|
||||||
php artisan config:clear >/dev/null 2>&1
|
php artisan config:clear >/dev/null 2>&1
|
||||||
php artisan view:clear >/dev/null 2>&1
|
php artisan view:clear >/dev/null 2>&1
|
||||||
php artisan koel:init --no-interaction >/dev/null 2>&1
|
php artisan koel:init --no-interaction >/dev/null 2>&1
|
||||||
msg_ok "Updated ${APP} to v${RELEASE}"
|
msg_ok "Updated ${APP} to v${RELEASE}"
|
||||||
|
|
||||||
msg_info "Starting ${APP} Service"
|
msg_info "Starting ${APP} Service"
|
||||||
systemctl start nginx
|
systemctl start nginx
|
||||||
msg_ok "Started ${APP} Service"
|
msg_ok "Started ${APP} Service"
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
msg_info "Cleaning up"
|
||||||
rm -rf /opt/koel-${RELEASE}.zip
|
rm -rf /opt/koel-${RELEASE}.zip
|
||||||
|
@ -1,26 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||||
# Copyright (c) 2021-2024 tteck
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
# Author: tteck
|
# Author: MickLesk (Canbiz)
|
||||||
# Co-Author: MickLesk (Canbiz)
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# License: MIT
|
|
||||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/matze/wastebin
|
|
||||||
|
|
||||||
|
|
||||||
function header_info {
|
|
||||||
clear
|
|
||||||
cat <<"EOF"
|
|
||||||
__ ___ __ __ __
|
|
||||||
/ |/ /___ _/ /_/ /____ _________ ___ ____ _____/ /_
|
|
||||||
/ /|_/ / __ `/ __/ __/ _ \/ ___/ __ `__ \/ __ \/ ___/ __/
|
|
||||||
/ / / / /_/ / /_/ /_/ __/ / / / / / / / /_/ (__ ) /_
|
|
||||||
/_/ /_/\__,_/\__/\__/\___/_/ /_/ /_/ /_/\____/____/\__/
|
|
||||||
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
header_info
|
|
||||||
echo -e "Loading..."
|
|
||||||
APP="Mattermost"
|
APP="Mattermost"
|
||||||
var_disk="10"
|
var_disk="10"
|
||||||
var_cpu="2"
|
var_cpu="2"
|
||||||
@ -31,53 +14,25 @@ variables
|
|||||||
color
|
color
|
||||||
catch_errors
|
catch_errors
|
||||||
|
|
||||||
function default_settings() {
|
|
||||||
CT_TYPE="1"
|
|
||||||
PW=""
|
|
||||||
CT_ID=$NEXTID
|
|
||||||
HN=$NSAPP
|
|
||||||
DISK_SIZE="$var_disk"
|
|
||||||
CORE_COUNT="$var_cpu"
|
|
||||||
RAM_SIZE="$var_ram"
|
|
||||||
BRG="vmbr0"
|
|
||||||
NET="dhcp"
|
|
||||||
GATE=""
|
|
||||||
APT_CACHER=""
|
|
||||||
APT_CACHER_IP=""
|
|
||||||
DISABLEIP6="no"
|
|
||||||
MTU=""
|
|
||||||
SD=""
|
|
||||||
NS=""
|
|
||||||
MAC=""
|
|
||||||
VLAN=""
|
|
||||||
SSH="no"
|
|
||||||
VERB="no"
|
|
||||||
echo_default
|
|
||||||
}
|
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -d /opt/mattermost ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -d /opt/mattermost ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
RELEASE=$(curl -s https://api.github.com/repos/xxxx/xxxx/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
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 Wastebin"
|
msg_info "Stopping App"
|
||||||
systemctl stop wastebin
|
systemctl stop xxxx
|
||||||
msg_ok "Wastebin Stopped"
|
msg_ok "App Stopped"
|
||||||
|
|
||||||
msg_info "Updating Wastebin"
|
msg_info "Updating App"
|
||||||
wget -q https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst
|
#
|
||||||
tar -xf wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst
|
msg_ok "Updated App"
|
||||||
cp -f wastebin /opt/wastebin/
|
|
||||||
chmod +x /opt/wastebin/wastebin
|
|
||||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
|
||||||
msg_ok "Updated Wastebin"
|
|
||||||
|
|
||||||
msg_info "Starting Wastebin"
|
msg_info "Starting App"
|
||||||
systemctl start wastebin
|
systemctl start App
|
||||||
msg_ok "Started Wastebin"
|
msg_ok "Started App"
|
||||||
|
|
||||||
msg_info "Cleaning Up"
|
msg_info "Cleaning Up"
|
||||||
rm -rf wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst
|
#rm -rf
|
||||||
msg_ok "Cleaned"
|
msg_ok "Cleaned"
|
||||||
msg_ok "Updated Successfully"
|
msg_ok "Updated Successfully"
|
||||||
else
|
else
|
||||||
|
@ -5,7 +5,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/
|
|||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# Source: https://github.com/getmaxun/maxun
|
# Source: https://github.com/getmaxun/maxun
|
||||||
|
|
||||||
# App Default Values
|
|
||||||
APP="Maxun"
|
APP="Maxun"
|
||||||
var_tags="scraper"
|
var_tags="scraper"
|
||||||
var_disk="7"
|
var_disk="7"
|
||||||
@ -15,11 +15,8 @@ var_os="debian"
|
|||||||
var_version="12"
|
var_version="12"
|
||||||
var_unprivileged="1"
|
var_unprivileged="1"
|
||||||
|
|
||||||
# App Output & Base Settings
|
|
||||||
header_info "$APP"
|
|
||||||
base_settings
|
|
||||||
|
|
||||||
# Core
|
header_info "$APP"
|
||||||
variables
|
variables
|
||||||
color
|
color
|
||||||
catch_errors
|
catch_errors
|
||||||
|
Loading…
x
Reference in New Issue
Block a user