mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-19 03:55:15 +00:00
Compare commits
88 Commits
deb13_c_to
...
MickLesk-p
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ceef184bd | ||
|
|
44fbd31eb7 | ||
|
|
f229e6910c | ||
|
|
18c2e22de5 | ||
|
|
4074fb67e1 | ||
|
|
ee2f5ef9b3 | ||
|
|
9fc45c1929 | ||
|
|
5f31313422 | ||
|
|
99d441e37c | ||
|
|
55c21416de | ||
|
|
0296bd63c3 | ||
|
|
36630a7e4b | ||
|
|
5c0f6b282a | ||
|
|
9937bceb17 | ||
|
|
fbb807bf97 | ||
|
|
1df161b8e0 | ||
|
|
ca2903b1ff | ||
|
|
1405e28247 | ||
|
|
3257d4e9bc | ||
|
|
55166a5d6c | ||
|
|
c1c4c35732 | ||
|
|
5cc11c27d2 | ||
|
|
a8ae43f59f | ||
|
|
122e475a4a | ||
|
|
45ae66d474 | ||
|
|
6e053f2c39 | ||
|
|
71cd680db9 | ||
|
|
c65c434f01 | ||
|
|
e7f2a2b377 | ||
|
|
da3846935a | ||
|
|
8522928e14 | ||
|
|
65b8180707 | ||
|
|
37cc47126e | ||
|
|
2bbc779497 | ||
|
|
dba8fc630e | ||
|
|
fa9b815474 | ||
|
|
2eacce169c | ||
|
|
e40ed2bd80 | ||
|
|
8ffa3d6edb | ||
|
|
4087b4b0b6 | ||
|
|
ca04688b69 | ||
|
|
914584b7b8 | ||
|
|
cd2b2aade1 | ||
|
|
886213e134 | ||
|
|
022abe7ba4 | ||
|
|
e373648787 | ||
|
|
6fa77cfe99 | ||
|
|
be383e941f | ||
|
|
8d6845d90b | ||
|
|
8f82229b29 | ||
|
|
9710f32a16 | ||
|
|
fd5c07971a | ||
|
|
2ff9471d65 | ||
|
|
8edab22d32 | ||
|
|
471dda0e58 | ||
|
|
401d0f83a3 | ||
|
|
0785df368a | ||
|
|
7a787c58a0 | ||
|
|
b0fb6bc64d | ||
|
|
ac3615e121 | ||
|
|
e94ab29f86 | ||
|
|
06c0dad4f5 | ||
|
|
1d1960e98f | ||
|
|
108b4b7c31 | ||
|
|
5e35ba7add | ||
|
|
522fcc1282 | ||
|
|
8a053bf79f | ||
|
|
5776f67afd | ||
|
|
4c717c3330 | ||
|
|
9eb6a844c0 | ||
|
|
bec36e8247 | ||
|
|
c5a40499c9 | ||
|
|
02f1e738d9 | ||
|
|
d7e3e4b8c6 | ||
|
|
6c0287c17a | ||
|
|
f287cb8023 | ||
|
|
6677685ba8 | ||
|
|
2cf7b446c0 | ||
|
|
afdcc2a624 | ||
|
|
817edd6d9c | ||
|
|
6883a39ef7 | ||
|
|
a85514dd2b | ||
|
|
9bb4bf020f | ||
|
|
e5e44f4ebf | ||
|
|
6781963f46 | ||
|
|
93bcba16c4 | ||
|
|
dc809eeda4 | ||
|
|
aa770beff4 |
99
CHANGELOG.md
99
CHANGELOG.md
@@ -10,14 +10,109 @@
|
|||||||
> [!CAUTION]
|
> [!CAUTION]
|
||||||
Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit the project's popularity for potentially malicious purposes.
|
Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit the project's popularity for potentially malicious purposes.
|
||||||
|
|
||||||
## 2025-11-12
|
## 2025-11-17
|
||||||
|
|
||||||
|
### 🆕 New Scripts
|
||||||
|
|
||||||
|
- Domain-Locker ([#9214](https://github.com/community-scripts/ProxmoxVE/pull/9214))
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
- openwebui: Python version usage | core: zsh completion install [@MickLesk](https://github.com/MickLesk) ([#9079](https://github.com/community-scripts/ProxmoxVE/pull/9079))
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- NetVisor: add build deps, increase RAM [@vhsdream](https://github.com/vhsdream) ([#9205](https://github.com/community-scripts/ProxmoxVE/pull/9205))
|
||||||
|
- fix: restart apache2 after installing zabbix config [@AlphaLawless](https://github.com/AlphaLawless) ([#9206](https://github.com/community-scripts/ProxmoxVE/pull/9206))
|
||||||
|
|
||||||
|
## 2025-11-16
|
||||||
|
|
||||||
|
### 🆕 New Scripts
|
||||||
|
|
||||||
|
- Metabase ([#9190](https://github.com/community-scripts/ProxmoxVE/pull/9190))
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- Change backup directory to /opt for paperless-ngx [@ProfDrYoMan](https://github.com/ProfDrYoMan) ([#9195](https://github.com/community-scripts/ProxmoxVE/pull/9195))
|
||||||
|
- Kimai: remove deprecated admin_lte section [@MickLesk](https://github.com/MickLesk) ([#9182](https://github.com/community-scripts/ProxmoxVE/pull/9182))
|
||||||
|
- healthchecks: bump python to 3.13 [@MickLesk](https://github.com/MickLesk) ([#9175](https://github.com/community-scripts/ProxmoxVE/pull/9175))
|
||||||
|
|
||||||
|
### 🌐 Website
|
||||||
|
|
||||||
|
- #### 📝 Script Information
|
||||||
|
|
||||||
|
- fixed config_path for donetick [@TazztheMonster](https://github.com/TazztheMonster) ([#9203](https://github.com/community-scripts/ProxmoxVE/pull/9203))
|
||||||
|
|
||||||
|
## 2025-11-15
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- privatebin: fix: syntax error in chmod command [@CrazyWolf13](https://github.com/CrazyWolf13) ([#9169](https://github.com/community-scripts/ProxmoxVE/pull/9169))
|
||||||
|
- phpIPHAM: patch db and add fping [@MickLesk](https://github.com/MickLesk) ([#9177](https://github.com/community-scripts/ProxmoxVE/pull/9177))
|
||||||
|
- changedetection: fix: increase ressources [@CrazyWolf13](https://github.com/CrazyWolf13) ([#9171](https://github.com/community-scripts/ProxmoxVE/pull/9171))
|
||||||
|
- 2fauth: update composer command [@CrazyWolf13](https://github.com/CrazyWolf13) ([#9168](https://github.com/community-scripts/ProxmoxVE/pull/9168))
|
||||||
|
|
||||||
|
- #### 🔧 Refactor
|
||||||
|
|
||||||
|
- firefly: refactor update_script and add dataimporter update [@MickLesk](https://github.com/MickLesk) ([#9178](https://github.com/community-scripts/ProxmoxVE/pull/9178))
|
||||||
|
|
||||||
|
## 2025-11-14
|
||||||
|
|
||||||
|
### 🆕 New Scripts
|
||||||
|
|
||||||
|
- LibreNMS ([#9148](https://github.com/community-scripts/ProxmoxVE/pull/9148))
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- karakeep: clean install after every update [@MickLesk](https://github.com/MickLesk) ([#9144](https://github.com/community-scripts/ProxmoxVE/pull/9144))
|
||||||
|
|
||||||
|
- #### ✨ New Features
|
||||||
|
|
||||||
|
- bump grafana to debian 13 [@mschabhuettl](https://github.com/mschabhuettl) ([#9141](https://github.com/community-scripts/ProxmoxVE/pull/9141))
|
||||||
|
|
||||||
|
## 2025-11-13
|
||||||
|
|
||||||
|
### 🆕 New Scripts
|
||||||
|
|
||||||
|
- Netvisor ([#9133](https://github.com/community-scripts/ProxmoxVE/pull/9133))
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- Domain Monitor: Add domain checking cron [@tremor021](https://github.com/tremor021) ([#9129](https://github.com/community-scripts/ProxmoxVE/pull/9129))
|
||||||
|
- Kimai: Fix for MariaDB connection URL [@tremor021](https://github.com/tremor021) ([#9124](https://github.com/community-scripts/ProxmoxVE/pull/9124))
|
||||||
|
- Fix: filebrowser-quantum update [@MickLesk](https://github.com/MickLesk) ([#9115](https://github.com/community-scripts/ProxmoxVE/pull/9115))
|
||||||
|
- tools.func: fix wrong output for setup_java (error token is "0") [@snow2k9](https://github.com/snow2k9) ([#9110](https://github.com/community-scripts/ProxmoxVE/pull/9110))
|
||||||
|
|
||||||
|
- #### ✨ New Features
|
||||||
|
|
||||||
|
- tools.func: improve Rust setup and crate installation logic [@MickLesk](https://github.com/MickLesk) ([#9120](https://github.com/community-scripts/ProxmoxVE/pull/9120))
|
||||||
|
|
||||||
|
- #### 💥 Breaking Changes
|
||||||
|
|
||||||
|
- Remove Barcodebuddy [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#9135](https://github.com/community-scripts/ProxmoxVE/pull/9135))
|
||||||
|
- Downgrade Swizzin to Debian 12 Bookworm [@MickLesk](https://github.com/MickLesk) ([#9116](https://github.com/community-scripts/ProxmoxVE/pull/9116))
|
||||||
|
|
||||||
|
## 2025-11-12
|
||||||
|
|
||||||
|
### 🆕 New Scripts
|
||||||
|
|
||||||
|
- Miniflux ([#9091](https://github.com/community-scripts/ProxmoxVE/pull/9091))
|
||||||
|
- Splunk Enterprise ([#9090](https://github.com/community-scripts/ProxmoxVE/pull/9090))
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- evcc: add missing fi in update [@MichaelVetter1979](https://github.com/MichaelVetter1979) ([#9107](https://github.com/community-scripts/ProxmoxVE/pull/9107))
|
||||||
|
- PeaNUT: use clean install flag during update [@vhsdream](https://github.com/vhsdream) ([#9100](https://github.com/community-scripts/ProxmoxVE/pull/9100))
|
||||||
|
- Tududi: Create new env file from example; fix installation & update [@vhsdream](https://github.com/vhsdream) ([#9097](https://github.com/community-scripts/ProxmoxVE/pull/9097))
|
||||||
|
- openwebui: Python version usage | core: zsh completion install [@MickLesk](https://github.com/MickLesk) ([#9079](https://github.com/community-scripts/ProxmoxVE/pull/9079))
|
||||||
- Refactor: evcc [@CrazyWolf13](https://github.com/CrazyWolf13) ([#9057](https://github.com/community-scripts/ProxmoxVE/pull/9057))
|
- Refactor: evcc [@CrazyWolf13](https://github.com/CrazyWolf13) ([#9057](https://github.com/community-scripts/ProxmoxVE/pull/9057))
|
||||||
|
|
||||||
- #### ✨ New Features
|
- #### ✨ New Features
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ function update_script() {
|
|||||||
chown -R www-data: "/opt/2fauth"
|
chown -R www-data: "/opt/2fauth"
|
||||||
chmod -R 755 "/opt/2fauth"
|
chmod -R 755 "/opt/2fauth"
|
||||||
export COMPOSER_ALLOW_SUPERUSER=1
|
export COMPOSER_ALLOW_SUPERUSER=1
|
||||||
$STD composer install --no-dev --prefer-source
|
$STD composer install --no-dev --prefer-dist
|
||||||
php artisan 2fauth:install
|
php artisan 2fauth:install
|
||||||
$STD systemctl restart nginx
|
$STD systemctl restart nginx
|
||||||
|
|
||||||
|
|||||||
@@ -1,69 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
|
||||||
# Copyright (c) 2021-2025 community-scripts ORG
|
|
||||||
# Author: bvdberg01
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/Forceu/barcodebuddy
|
|
||||||
|
|
||||||
APP="Barcode-Buddy"
|
|
||||||
var_tags="${var_tags:-grocery;household}"
|
|
||||||
var_cpu="${var_cpu:-1}"
|
|
||||||
var_ram="${var_ram:-512}"
|
|
||||||
var_disk="${var_disk:-3}"
|
|
||||||
var_os="${var_os:-debian}"
|
|
||||||
var_version="${var_version:-12}"
|
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
|
||||||
|
|
||||||
header_info "$APP"
|
|
||||||
variables
|
|
||||||
color
|
|
||||||
catch_errors
|
|
||||||
|
|
||||||
function update_script() {
|
|
||||||
header_info
|
|
||||||
check_container_storage
|
|
||||||
check_container_resources
|
|
||||||
|
|
||||||
if [[ ! -d /opt/barcodebuddy ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "barcodebuddy" "Forceu/barcodebuddy"; then
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop apache2
|
|
||||||
systemctl stop barcodebuddy
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
msg_info "Backing up data"
|
|
||||||
mv /opt/barcodebuddy/ /opt/barcodebuddy-backup
|
|
||||||
msg_ok "Backed up data"
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "barcodebuddy" "Forceu/barcodebuddy"
|
|
||||||
|
|
||||||
msg_info "Configuring ${APP}"
|
|
||||||
cp -r /opt/barcodebuddy-backup/data/. /opt/barcodebuddy/data
|
|
||||||
chown -R www-data:www-data /opt/barcodebuddy/data
|
|
||||||
msg_ok "Configured ${APP}"
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start apache2
|
|
||||||
systemctl start barcodebuddy
|
|
||||||
msg_ok "Started Service"
|
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
|
||||||
rm -r /opt/barcodebuddy-backup
|
|
||||||
msg_ok "Cleaned"
|
|
||||||
msg_ok "Updated successfully!"
|
|
||||||
fi
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
start
|
|
||||||
build_container
|
|
||||||
description
|
|
||||||
|
|
||||||
msg_ok "Completed Successfully!\n"
|
|
||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
|
||||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
|
||||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
|
|
||||||
@@ -7,8 +7,8 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
|
|||||||
|
|
||||||
APP="Change Detection"
|
APP="Change Detection"
|
||||||
var_tags="${var_tags:-monitoring;crawler}"
|
var_tags="${var_tags:-monitoring;crawler}"
|
||||||
var_cpu="${var_cpu:-2}"
|
var_cpu="${var_cpu:-4}"
|
||||||
var_ram="${var_ram:-2048}"
|
var_ram="${var_ram:-4096}"
|
||||||
var_disk="${var_disk:-10}"
|
var_disk="${var_disk:-10}"
|
||||||
var_os="${var_os:-debian}"
|
var_os="${var_os:-debian}"
|
||||||
var_version="${var_version:-12}"
|
var_version="${var_version:-12}"
|
||||||
|
|||||||
67
ct/domain-locker.sh
Normal file
67
ct/domain-locker.sh
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: CrazyWolf13
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://github.com/Lissy93/domain-locker
|
||||||
|
|
||||||
|
APP="Domain-Locker"
|
||||||
|
var_tags="${var_tags:-Monitoring}"
|
||||||
|
var_cpu="${var_cpu:-4}"
|
||||||
|
var_ram="${var_ram:-10240}"
|
||||||
|
var_disk="${var_disk:-8}"
|
||||||
|
var_os="${var_os:-debian}"
|
||||||
|
var_version="${var_version:-13}"
|
||||||
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
|
header_info "$APP"
|
||||||
|
variables
|
||||||
|
color
|
||||||
|
catch_errors
|
||||||
|
|
||||||
|
function update_script() {
|
||||||
|
header_info
|
||||||
|
check_container_storage
|
||||||
|
check_container_resources
|
||||||
|
if [[ ! -d /opt/domain-locker ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if check_for_gh_release "domain-locker" "Lissy93/domain-locker"; then
|
||||||
|
msg_info "Stopping Service"
|
||||||
|
systemctl stop domain-locker
|
||||||
|
msg_info "Service stopped"
|
||||||
|
|
||||||
|
PG_VERSION="17" setup_postgresql
|
||||||
|
setup_nodejs
|
||||||
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "domain-locker" "Lissy93/domain-locker"
|
||||||
|
|
||||||
|
msg_info "Installing Modules (patience)"
|
||||||
|
cd /opt/domain-locker
|
||||||
|
$STD npm install
|
||||||
|
msg_ok "Installed Modules"
|
||||||
|
|
||||||
|
msg_info "Building Domain-Locker (a lot of patience)"
|
||||||
|
set -a
|
||||||
|
source /opt/domain-locker.env
|
||||||
|
set +a
|
||||||
|
$STD npm run build
|
||||||
|
msg_info "Built Domain-Locker"
|
||||||
|
|
||||||
|
msg_info "Restarting Services"
|
||||||
|
systemctl start domain-locker
|
||||||
|
msg_ok "Restarted Services"
|
||||||
|
msg_ok "Updated successfully!"
|
||||||
|
fi
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
start
|
||||||
|
build_container
|
||||||
|
description
|
||||||
|
|
||||||
|
msg_ok "Completed Successfully!\n"
|
||||||
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||||
|
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
|
||||||
@@ -20,41 +20,45 @@ color
|
|||||||
catch_errors
|
catch_errors
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
check_container_storage
|
check_container_storage
|
||||||
check_container_resources
|
check_container_resources
|
||||||
if [[ ! -d /opt/domain-monitor ]]; then
|
if [[ ! -d /opt/domain-monitor ]]; then
|
||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "domain-monitor" "Hosteroid/domain-monitor"; then
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop apache2
|
|
||||||
msg_info "Service stopped"
|
|
||||||
|
|
||||||
msg_info "Creating backup"
|
|
||||||
mv /opt/domain-monitor/.env /opt
|
|
||||||
msg_ok "Created backup"
|
|
||||||
|
|
||||||
setup_composer
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "domain-monitor" "Hosteroid/domain-monitor" "prebuild" "latest" "/opt/domain-monitor" "domain-monitor-v*.zip"
|
|
||||||
|
|
||||||
msg_info "Updating Domain Monitor"
|
|
||||||
cd /opt/domain-monitor
|
|
||||||
$STD composer install
|
|
||||||
msg_ok "Updated Domain Monitor"
|
|
||||||
|
|
||||||
msg_info "Restoring backup"
|
|
||||||
mv /opt/.env /opt/domain-monitor
|
|
||||||
msg_ok "Restored backup"
|
|
||||||
|
|
||||||
msg_info "Restarting Services"
|
|
||||||
systemctl reload apache2
|
|
||||||
msg_ok "Restarted Services"
|
|
||||||
msg_ok "Updated successfully!"
|
|
||||||
fi
|
|
||||||
exit
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! grep -Fq "root /usr/bin/php /opt/domain-monitor/cron/check_domains.php" /etc/crontab; then
|
||||||
|
echo "0 0 * * * root /usr/bin/php /opt/domain-monitor/cron/check_domains.php" >>/etc/crontab
|
||||||
|
fi
|
||||||
|
|
||||||
|
if check_for_gh_release "domain-monitor" "Hosteroid/domain-monitor"; then
|
||||||
|
msg_info "Stopping Service"
|
||||||
|
systemctl stop apache2
|
||||||
|
msg_info "Service stopped"
|
||||||
|
|
||||||
|
msg_info "Creating backup"
|
||||||
|
mv /opt/domain-monitor/.env /opt
|
||||||
|
msg_ok "Created backup"
|
||||||
|
|
||||||
|
setup_composer
|
||||||
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "domain-monitor" "Hosteroid/domain-monitor" "prebuild" "latest" "/opt/domain-monitor" "domain-monitor-v*.zip"
|
||||||
|
|
||||||
|
msg_info "Updating Domain Monitor"
|
||||||
|
cd /opt/domain-monitor
|
||||||
|
$STD composer install
|
||||||
|
msg_ok "Updated Domain Monitor"
|
||||||
|
|
||||||
|
msg_info "Restoring backup"
|
||||||
|
mv /opt/.env /opt/domain-monitor
|
||||||
|
msg_ok "Restored backup"
|
||||||
|
|
||||||
|
msg_info "Restarting Services"
|
||||||
|
systemctl reload apache2
|
||||||
|
msg_ok "Restarted Services"
|
||||||
|
msg_ok "Updated successfully!"
|
||||||
|
fi
|
||||||
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
start
|
start
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ function update_script() {
|
|||||||
"https://dl.evcc.io/public/evcc/stable/deb/debian/" \
|
"https://dl.evcc.io/public/evcc/stable/deb/debian/" \
|
||||||
"$(get_os_info codename)" \
|
"$(get_os_info codename)" \
|
||||||
"main"
|
"main"
|
||||||
|
fi
|
||||||
msg_info "Updating evcc LXC"
|
msg_info "Updating evcc LXC"
|
||||||
$STD apt update
|
$STD apt update
|
||||||
$STD apt --only-upgrade install -y evcc
|
$STD apt --only-upgrade install -y evcc
|
||||||
|
|||||||
70
ct/fenrus.sh
70
ct/fenrus.sh
@@ -1,70 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
|
||||||
# Copyright (c) 2021-2025 tteck
|
|
||||||
# Author: tteck (tteckster) | Co-Author: Scorpoon
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/revenz/Fenrus
|
|
||||||
|
|
||||||
APP="Fenrus"
|
|
||||||
var_tags="${var_tags:-dashboard}"
|
|
||||||
var_cpu="${var_cpu:-1}"
|
|
||||||
var_ram="${var_ram:-512}"
|
|
||||||
var_disk="${var_disk:-4}"
|
|
||||||
var_os="${var_os:-debian}"
|
|
||||||
var_version="${var_version:-12}"
|
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
|
||||||
|
|
||||||
header_info "$APP"
|
|
||||||
variables
|
|
||||||
color
|
|
||||||
catch_errors
|
|
||||||
|
|
||||||
function update_script() {
|
|
||||||
header_info
|
|
||||||
check_container_storage
|
|
||||||
check_container_resources
|
|
||||||
if [[ ! -d /opt/${APP} ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
msg_error "Currently we don't provide an update function for this ${APP}."
|
|
||||||
exit
|
|
||||||
msg_info "Updating ${APP}"
|
|
||||||
systemctl stop ${APP}
|
|
||||||
git clone https://github.com/revenz/Fenrus.git
|
|
||||||
cd Fenrus
|
|
||||||
gitVersionNumber=$(git rev-parse HEAD)
|
|
||||||
|
|
||||||
if [[ "${gitVersionNumber}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
|
|
||||||
mkdir /opt/fenrus-data-backup
|
|
||||||
cp -r "/opt/${APP}/data/" /opt/fenrus-data-backup/data
|
|
||||||
if [[ ! -d /opt/fenrus-data-backup/data ]]; then
|
|
||||||
msg_error "Backup of data folder failed! exiting..."
|
|
||||||
rm -r /opt/fenrus-data-backup/
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
|
||||||
dotnet publish -c Release -o "/opt/${APP}/" Fenrus.csproj
|
|
||||||
cp -r /opt/fenrus-data-backup/data/ "/opt/${APP}/"
|
|
||||||
echo "${gitVersionNumber}" >"/opt/${APP}_version.txt"
|
|
||||||
rm -r /opt/fenrus-data-backup/
|
|
||||||
msg_ok "Updated $APP"
|
|
||||||
msg_ok "Updated successfully!"
|
|
||||||
else
|
|
||||||
msg_ok "No update required. ${APP} is already up to date"
|
|
||||||
fi
|
|
||||||
cd ..
|
|
||||||
rm -r Fenrus/
|
|
||||||
|
|
||||||
systemctl start ${APP}
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
start
|
|
||||||
build_container
|
|
||||||
description
|
|
||||||
|
|
||||||
msg_ok "Completed Successfully!\n"
|
|
||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
|
||||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
|
||||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:5000${CL}"
|
|
||||||
@@ -28,40 +28,65 @@ function update_script() {
|
|||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
if check_for_gh_release "firefly" "firefly-iii/firefly-iii"; then
|
|
||||||
msg_info "Stopping Apache2"
|
|
||||||
systemctl stop apache2
|
|
||||||
msg_ok "Stopped Apache2"
|
|
||||||
|
|
||||||
msg_info "Backing up data"
|
if check_for_gh_release "firefly" "firefly-iii/firefly-iii"; then
|
||||||
|
systemctl stop apache2
|
||||||
cp /opt/firefly/.env /opt/.env
|
cp /opt/firefly/.env /opt/.env
|
||||||
cp -r /opt/firefly/storage /opt/storage
|
cp -r /opt/firefly/storage /opt/storage
|
||||||
msg_ok "Backed up data"
|
|
||||||
|
if [[ -d /opt/firefly/dataimporter ]]; then
|
||||||
|
cp /opt/firefly/dataimporter/.env /opt/dataimporter.env
|
||||||
|
IMPORTER_INSTALLED=1
|
||||||
|
fi
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "firefly" "firefly-iii/firefly-iii" "prebuild" "latest" "/opt/firefly" "FireflyIII-*.zip"
|
fetch_and_deploy_gh_release "firefly" "firefly-iii/firefly-iii" "prebuild" "latest" "/opt/firefly" "FireflyIII-*.zip"
|
||||||
setup_composer
|
setup_composer
|
||||||
|
|
||||||
msg_info "Updating ${APP}"
|
msg_info "Updating Firefly"
|
||||||
rm -rf /opt/firefly/storage
|
rm -rf /opt/firefly/storage
|
||||||
cp /opt/.env /opt/firefly/.env
|
|
||||||
cp -r /opt/storage /opt/firefly/storage
|
cp -r /opt/storage /opt/firefly/storage
|
||||||
|
cp /opt/.env /opt/firefly/.env
|
||||||
|
|
||||||
chown -R www-data:www-data /opt/firefly
|
chown -R www-data:www-data /opt/firefly
|
||||||
find /opt/firefly/storage -type d -exec chmod 775 {} \;
|
chmod -R 775 /opt/firefly/storage
|
||||||
find /opt/firefly/storage -type f -exec chmod 664 {} \;
|
mkdir -p /opt/firefly/storage/framework/cache/data
|
||||||
mkdir -p /opt/firefly/storage/framework/{cache/data,sessions,views}
|
mkdir -p /opt/firefly/storage/framework/sessions
|
||||||
$STD sudo -u www-data php /opt/firefly/artisan cache:clear
|
mkdir -p /opt/firefly/storage/framework/views
|
||||||
|
mkdir -p /opt/firefly/storage/logs
|
||||||
|
mkdir -p /opt/firefly/bootstrap/cache
|
||||||
|
chown -R www-data:www-data /opt/firefly/{storage,bootstrap/cache}
|
||||||
cd /opt/firefly
|
cd /opt/firefly
|
||||||
$STD php artisan migrate --seed --force
|
$STD runuser -u www-data -- composer install --no-dev --optimize-autoloader
|
||||||
$STD php artisan cache:clear
|
$STD runuser -u www-data -- composer dump-autoload -o
|
||||||
$STD php artisan view:clear
|
|
||||||
$STD php artisan firefly-iii:upgrade-database
|
|
||||||
$STD php artisan firefly-iii:laravel-passport-keys
|
|
||||||
msg_ok "Updated ${APP}"
|
|
||||||
|
|
||||||
msg_info "Starting Apache2"
|
$STD runuser -u www-data -- php artisan cache:clear
|
||||||
|
$STD runuser -u www-data -- php artisan config:clear
|
||||||
|
$STD runuser -u www-data -- php artisan route:clear
|
||||||
|
$STD runuser -u www-data -- php artisan view:clear
|
||||||
|
|
||||||
|
$STD runuser -u www-data -- php artisan migrate --seed --force
|
||||||
|
$STD runuser -u www-data -- php artisan firefly-iii:upgrade-database
|
||||||
|
$STD runuser -u www-data -- php artisan firefly-iii:laravel-passport-keys
|
||||||
|
|
||||||
|
$STD runuser -u www-data -- php artisan storage:link || true
|
||||||
|
$STD runuser -u www-data -- php artisan optimize
|
||||||
|
msg_ok "Updated Firefly"
|
||||||
|
|
||||||
|
if [[ "${IMPORTER_INSTALLED:-0}" -eq 1 ]]; then
|
||||||
|
msg_info "Updating Firefly Importer"
|
||||||
|
IMPORTER_RELEASE=$(curl -fsSL https://api.github.com/repos/firefly-iii/data-importer/releases/latest | grep tag_name | cut -d '"' -f 4 | sed 's/v//')
|
||||||
|
rm -rf /opt/firefly/dataimporter
|
||||||
|
mkdir -p /opt/firefly/dataimporter
|
||||||
|
curl -fsSL "https://github.com/firefly-iii/data-importer/releases/download/v${IMPORTER_RELEASE}/DataImporter-v${IMPORTER_RELEASE}.tar.gz" -o "/opt/DataImporter.tar.gz"
|
||||||
|
tar -xzf /opt/DataImporter.tar.gz -C /opt/firefly/dataimporter
|
||||||
|
if [[ -f /opt/dataimporter.env ]]; then
|
||||||
|
cp /opt/dataimporter.env /opt/firefly/dataimporter/.env
|
||||||
|
fi
|
||||||
|
chown -R www-data:www-data /opt/firefly/dataimporter
|
||||||
|
rm -f /opt/DataImporter.tar.gz
|
||||||
|
msg_ok "Updated Firefly Importer"
|
||||||
|
fi
|
||||||
systemctl start apache2
|
systemctl start apache2
|
||||||
msg_ok "Started Apache2"
|
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
|
|||||||
var_ram="${var_ram:-512}"
|
var_ram="${var_ram:-512}"
|
||||||
var_disk="${var_disk:-2}"
|
var_disk="${var_disk:-2}"
|
||||||
var_os="${var_os:-debian}"
|
var_os="${var_os:-debian}"
|
||||||
var_version="${var_version:-12}"
|
var_version="${var_version:-13}"
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
header_info "$APP"
|
header_info "$APP"
|
||||||
@@ -20,19 +20,29 @@ color
|
|||||||
catch_errors
|
catch_errors
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
check_container_storage
|
check_container_storage
|
||||||
check_container_resources
|
check_container_resources
|
||||||
if [[ ! -f /etc/apt/sources.list.d/grafana.list ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg_info "Updating ${APP}"
|
if ! dpkg -s grafana >/dev/null 2>&1; then
|
||||||
$STD apt-get update
|
msg_error "No ${APP} Installation Found!"
|
||||||
$STD apt-get -y upgrade
|
exit 1
|
||||||
msg_ok "Updated successfully!"
|
fi
|
||||||
exit
|
|
||||||
|
if [[ -f /etc/apt/sources.list.d/grafana.list ]] || [[ ! -f /etc/apt/sources.list.d/grafana.sources ]]; then
|
||||||
|
setup_deb822_repo \
|
||||||
|
"grafana" \
|
||||||
|
"https://apt.grafana.com/gpg.key" \
|
||||||
|
"https://apt.grafana.com" \
|
||||||
|
"stable" \
|
||||||
|
"main"
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg_info "Updating Grafana LXC"
|
||||||
|
$STD apt update
|
||||||
|
$STD apt --only-upgrade install -y grafana
|
||||||
|
msg_ok "Updated successfully!"
|
||||||
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
start
|
start
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
____ __ ____ __ __
|
|
||||||
/ __ )____ _______________ ____/ /__ / __ )__ ______/ /___/ /_ __
|
|
||||||
/ __ / __ `/ ___/ ___/ __ \/ __ / _ \______/ __ / / / / __ / __ / / / /
|
|
||||||
/ /_/ / /_/ / / / /__/ /_/ / /_/ / __/_____/ /_/ / /_/ / /_/ / /_/ / /_/ /
|
|
||||||
/_____/\__,_/_/ \___/\____/\__,_/\___/ /_____/\__,_/\__,_/\__,_/\__, /
|
|
||||||
/____/
|
|
||||||
6
ct/headers/domain-locker
Normal file
6
ct/headers/domain-locker
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
____ _ __ __
|
||||||
|
/ __ \____ ____ ___ ____ _(_)___ / / ____ _____/ /_____ _____
|
||||||
|
/ / / / __ \/ __ `__ \/ __ `/ / __ \______/ / / __ \/ ___/ //_/ _ \/ ___/
|
||||||
|
/ /_/ / /_/ / / / / / / /_/ / / / / /_____/ /___/ /_/ / /__/ ,< / __/ /
|
||||||
|
/_____/\____/_/ /_/ /_/\__,_/_/_/ /_/ /_____/\____/\___/_/|_|\___/_/
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
______
|
|
||||||
/ ____/__ ____ _______ _______
|
|
||||||
/ /_ / _ \/ __ \/ ___/ / / / ___/
|
|
||||||
/ __/ / __/ / / / / / /_/ (__ )
|
|
||||||
/_/ \___/_/ /_/_/ \__,_/____/
|
|
||||||
|
|
||||||
6
ct/headers/librenms
Normal file
6
ct/headers/librenms
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
__ _ __ _ ____ ________
|
||||||
|
/ / (_) /_ ________ / | / / |/ / ___/
|
||||||
|
/ / / / __ \/ ___/ _ \/ |/ / /|_/ /\__ \
|
||||||
|
/ /___/ / /_/ / / / __/ /| / / / /___/ /
|
||||||
|
/_____/_/_.___/_/ \___/_/ |_/_/ /_//____/
|
||||||
|
|
||||||
6
ct/headers/metabase
Normal file
6
ct/headers/metabase
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
__ ___ __ __
|
||||||
|
/ |/ /__ / /_____ _/ /_ ____ _________
|
||||||
|
/ /|_/ / _ \/ __/ __ `/ __ \/ __ `/ ___/ _ \
|
||||||
|
/ / / / __/ /_/ /_/ / /_/ / /_/ (__ ) __/
|
||||||
|
/_/ /_/\___/\__/\__,_/_.___/\__,_/____/\___/
|
||||||
|
|
||||||
6
ct/headers/miniflux
Normal file
6
ct/headers/miniflux
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
__ ____ _ ______
|
||||||
|
/ |/ (_)___ (_) __/ /_ ___ __
|
||||||
|
/ /|_/ / / __ \/ / /_/ / / / / |/_/
|
||||||
|
/ / / / / / / / / __/ / /_/ /> <
|
||||||
|
/_/ /_/_/_/ /_/_/_/ /_/\__,_/_/|_|
|
||||||
|
|
||||||
6
ct/headers/netvisor
Normal file
6
ct/headers/netvisor
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
_ __ __ _ ___
|
||||||
|
/ | / /__ / /| | / (_)________ _____
|
||||||
|
/ |/ / _ \/ __/ | / / / ___/ __ \/ ___/
|
||||||
|
/ /| / __/ /_ | |/ / (__ ) /_/ / /
|
||||||
|
/_/ |_/\___/\__/ |___/_/____/\____/_/
|
||||||
|
|
||||||
6
ct/headers/splunk-enterprise
Normal file
6
ct/headers/splunk-enterprise
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
_____ __ __ ______ __ _
|
||||||
|
/ ___/____ / /_ ______ / /__ / ____/___ / /____ _________ _____(_)_______
|
||||||
|
\__ \/ __ \/ / / / / __ \/ //_/_____/ __/ / __ \/ __/ _ \/ ___/ __ \/ ___/ / ___/ _ \
|
||||||
|
___/ / /_/ / / /_/ / / / / ,< /_____/ /___/ / / / /_/ __/ / / /_/ / / / (__ ) __/
|
||||||
|
/____/ .___/_/\__,_/_/ /_/_/|_| /_____/_/ /_/\__/\___/_/ / .___/_/ /_/____/\___/
|
||||||
|
/_/ /_/
|
||||||
@@ -33,7 +33,7 @@ function update_script() {
|
|||||||
systemctl stop healthchecks
|
systemctl stop healthchecks
|
||||||
msg_ok "Stopped Services"
|
msg_ok "Stopped Services"
|
||||||
|
|
||||||
PYTHON_VERSION="3.12" setup_uv
|
PYTHON_VERSION="3.13" setup_uv
|
||||||
fetch_and_deploy_gh_release "healthchecks" "healthchecks/healthchecks"
|
fetch_and_deploy_gh_release "healthchecks" "healthchecks/healthchecks"
|
||||||
|
|
||||||
msg_info "Updating healthchecks"
|
msg_info "Updating healthchecks"
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ function update_script() {
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "karakeep" "karakeep-app/karakeep"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "karakeep" "karakeep-app/karakeep"
|
||||||
if command -v corepack >/dev/null; then
|
if command -v corepack >/dev/null; then
|
||||||
$STD corepack disable
|
$STD corepack disable
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ function update_script() {
|
|||||||
[ -f "$BACKUP_DIR/local.yaml" ] && cp "$BACKUP_DIR/local.yaml" /opt/kimai/config/packages/
|
[ -f "$BACKUP_DIR/local.yaml" ] && cp "$BACKUP_DIR/local.yaml" /opt/kimai/config/packages/
|
||||||
rm -rf "$BACKUP_DIR"
|
rm -rf "$BACKUP_DIR"
|
||||||
cd /opt/kimai
|
cd /opt/kimai
|
||||||
|
sed -i '/^admin_lte:/,/^[^[:space:]]/d' config/local.yaml
|
||||||
$STD composer install --no-dev --optimize-autoloader
|
$STD composer install --no-dev --optimize-autoloader
|
||||||
$STD bin/console kimai:update
|
$STD bin/console kimai:update
|
||||||
msg_ok "Updated Kimai"
|
msg_ok "Updated Kimai"
|
||||||
|
|||||||
45
ct/librenms.sh
Normal file
45
ct/librenms.sh
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: michelroegl-brunner
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://librenms.org
|
||||||
|
|
||||||
|
APP="LibreNMS"
|
||||||
|
var_tags="${var_tags:-monitoring}"
|
||||||
|
var_cpu="${var_cpu:-2}"
|
||||||
|
var_ram="${var_ram:-2048}"
|
||||||
|
var_disk="${var_disk:-4}"
|
||||||
|
var_os="${var_os:-debian}"
|
||||||
|
var_version="${var_version:-13}"
|
||||||
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
|
header_info "$APP"
|
||||||
|
variables
|
||||||
|
color
|
||||||
|
catch_errors
|
||||||
|
|
||||||
|
function update_script() {
|
||||||
|
header_info
|
||||||
|
check_container_storage
|
||||||
|
check_container_resources
|
||||||
|
if [ ! -d /opt/librenms ]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
msg_info "Updating LibreNMS"
|
||||||
|
su librenms
|
||||||
|
cd /opt/librenms
|
||||||
|
./daily.sh
|
||||||
|
msg_ok "Updated LibreNMS"
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
start
|
||||||
|
build_container
|
||||||
|
description
|
||||||
|
|
||||||
|
msg_ok "Completed Successfully!\n"
|
||||||
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||||
|
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
|
||||||
65
ct/metabase.sh
Normal file
65
ct/metabase.sh
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: Slaviša Arežina (tremor021)
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://www.metabase.com/
|
||||||
|
|
||||||
|
APP="Metabase"
|
||||||
|
var_tags="${var_tags:-analytics}"
|
||||||
|
var_cpu="${var_cpu:-2}"
|
||||||
|
var_ram="${var_ram:-2048}"
|
||||||
|
var_disk="${var_disk:-6}"
|
||||||
|
var_os="${var_os:-debian}"
|
||||||
|
var_version="${var_version:-13}"
|
||||||
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
|
header_info "$APP"
|
||||||
|
variables
|
||||||
|
color
|
||||||
|
catch_errors
|
||||||
|
|
||||||
|
function update_script() {
|
||||||
|
header_info
|
||||||
|
check_container_storage
|
||||||
|
check_container_resources
|
||||||
|
if [[ ! -d /opt/metabase ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if check_for_gh_release "metabase" "metabase/metabase"; then
|
||||||
|
msg_info "Stopping Service"
|
||||||
|
systemctl stop metabase
|
||||||
|
msg_info "Stopped Service"
|
||||||
|
|
||||||
|
msg_info "Creating backup"
|
||||||
|
mv /opt/metabase/.env /opt
|
||||||
|
msg_ok "Created backup"
|
||||||
|
|
||||||
|
msg_info "Updating Metabase"
|
||||||
|
RELEASE=$(get_latest_github_release "metabase/metabase")
|
||||||
|
curl -fsSL "https://downloads.metabase.com/v${RELEASE}.x/metabase.jar" -o /opt/metabase/metabase.jar
|
||||||
|
echo $RELEASE >~/.metabase
|
||||||
|
msg_ok "Updated Metabase"
|
||||||
|
|
||||||
|
msg_info "Restoring backup"
|
||||||
|
mv /opt/.env /opt/metabase
|
||||||
|
msg_ok "Restored backup"
|
||||||
|
|
||||||
|
msg_info "Starting Service"
|
||||||
|
systemctl start metabase
|
||||||
|
msg_ok "Started Service"
|
||||||
|
msg_ok "Updated successfully!"
|
||||||
|
fi
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
start
|
||||||
|
build_container
|
||||||
|
description
|
||||||
|
|
||||||
|
msg_ok "Completed Successfully!\n"
|
||||||
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||||
|
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
|
||||||
55
ct/miniflux.sh
Normal file
55
ct/miniflux.sh
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: omernaveedxyz
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://miniflux.app/
|
||||||
|
|
||||||
|
APP="Miniflux"
|
||||||
|
var_tags="${var_tags:-media}"
|
||||||
|
var_cpu="${var_cpu:-2}"
|
||||||
|
var_ram="${var_ram:-2048}"
|
||||||
|
var_disk="${var_disk:-8}"
|
||||||
|
var_os="${var_os:-debian}"
|
||||||
|
var_version="${var_version:-13}"
|
||||||
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
|
header_info "$APP"
|
||||||
|
variables
|
||||||
|
color
|
||||||
|
catch_errors
|
||||||
|
|
||||||
|
function update_script() {
|
||||||
|
header_info
|
||||||
|
check_container_storage
|
||||||
|
check_container_resources
|
||||||
|
if [[ ! -f /etc/systemd/system/miniflux.service ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg_info "Stopping Service"
|
||||||
|
$STD miniflux -flush-sessions -config-file /etc/miniflux.conf
|
||||||
|
systemctl stop miniflux
|
||||||
|
msg_ok "Service Stopped"
|
||||||
|
|
||||||
|
fetch_and_deploy_gh_release "miniflux" "miniflux/v2" "binary" "latest"
|
||||||
|
|
||||||
|
msg_info "Updating Miniflux"
|
||||||
|
$STD miniflux -migrate -config-file /etc/miniflux.conf
|
||||||
|
msg_ok "Updated Miniflux"
|
||||||
|
msg_info "Starting Service"
|
||||||
|
$STD systemctl start miniflux
|
||||||
|
msg_ok "Started Service"
|
||||||
|
msg_ok "Updated successfully"
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
start
|
||||||
|
build_container
|
||||||
|
description
|
||||||
|
|
||||||
|
msg_ok "Completed Successfully!\n"
|
||||||
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||||
|
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}"
|
||||||
86
ct/netvisor.sh
Normal file
86
ct/netvisor.sh
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: vhsdream
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://github.com/maynayza/netvisor
|
||||||
|
|
||||||
|
APP="NetVisor"
|
||||||
|
var_tags="${var_tags:-analytics}"
|
||||||
|
var_cpu="${var_cpu:-2}"
|
||||||
|
var_ram="${var_ram:-3072}"
|
||||||
|
var_disk="${var_disk:-6}"
|
||||||
|
var_os="${var_os:-debian}"
|
||||||
|
var_version="${var_version:-13}"
|
||||||
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
|
header_info "$APP"
|
||||||
|
variables
|
||||||
|
color
|
||||||
|
catch_errors
|
||||||
|
|
||||||
|
function update_script() {
|
||||||
|
header_info
|
||||||
|
check_container_storage
|
||||||
|
check_container_resources
|
||||||
|
|
||||||
|
if [[ ! -d /opt/netvisor ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if check_for_gh_release "netvisor" "mayanayza/netvisor"; then
|
||||||
|
msg_info "Stopping services"
|
||||||
|
systemctl stop netvisor-daemon netvisor-server
|
||||||
|
msg_ok "Stopped services"
|
||||||
|
|
||||||
|
msg_info "Backing up configurations"
|
||||||
|
cp /opt/netvisor/.env /opt/netvisor.env
|
||||||
|
msg_ok "Backed up configurations"
|
||||||
|
|
||||||
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "netvisor" "mayanayza/netvisor" "tarball" "latest" "/opt/netvisor"
|
||||||
|
|
||||||
|
if ! dpkg -l | grep -q "pkg-config"; then
|
||||||
|
$STD apt install -y pkg-config
|
||||||
|
fi
|
||||||
|
if ! dpkg -l | grep -q "libssl-dev"; then
|
||||||
|
$STD apt install -y libssl-dev
|
||||||
|
fi
|
||||||
|
TOOLCHAIN="$(grep "channel" /opt/netvisor/backend/rust-toolchain.toml | awk -F\" '{print $2}')"
|
||||||
|
RUST_TOOLCHAIN=$TOOLCHAIN setup_rust
|
||||||
|
|
||||||
|
mv /opt/netvisor.env /opt/netvisor/.env
|
||||||
|
msg_info "Creating frontend UI"
|
||||||
|
export PUBLIC_SERVER_HOSTNAME=default
|
||||||
|
export PUBLIC_SERVER_PORT=60072
|
||||||
|
cd /opt/netvisor/ui
|
||||||
|
$STD npm ci --no-fund --no-audit
|
||||||
|
$STD npm run build
|
||||||
|
msg_ok "Created frontend UI"
|
||||||
|
|
||||||
|
msg_info "Building Netvisor-server (patience)"
|
||||||
|
cd /opt/netvisor/backend
|
||||||
|
$STD cargo build --release --bin server
|
||||||
|
mv ./target/release/server /usr/bin/netvisor-server
|
||||||
|
msg_ok "Built Netvisor-server"
|
||||||
|
|
||||||
|
msg_info "Building Netvisor-daemon (amd64 version)"
|
||||||
|
$STD cargo build --release --bin daemon
|
||||||
|
cp ./target/release/daemon /usr/bin/netvisor-daemon
|
||||||
|
msg_ok "Built Netvisor-daemon (amd64 version)"
|
||||||
|
|
||||||
|
msg_info "Starting services"
|
||||||
|
systemctl start netvisor-server netvisor-daemon
|
||||||
|
msg_ok "Updated successfully!"
|
||||||
|
fi
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
start
|
||||||
|
build_container
|
||||||
|
description
|
||||||
|
|
||||||
|
msg_ok "Completed Successfully!\n"
|
||||||
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||||
|
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:60072${CL}"
|
||||||
@@ -34,12 +34,17 @@ function update_script() {
|
|||||||
|
|
||||||
if grep -q "uv run" /etc/systemd/system/paperless-webserver.service; then
|
if grep -q "uv run" /etc/systemd/system/paperless-webserver.service; then
|
||||||
|
|
||||||
msg_info "Backing up data"
|
msg_info "Backing up user data and configuration"
|
||||||
mkdir -p /opt/paperless_backup
|
local BACKUP_DIR="/opt/paperless_backup_$$"
|
||||||
cp -r /opt/paperless/data /opt/paperless_backup/
|
mkdir -p "$BACKUP_DIR"
|
||||||
cp -r /opt/paperless/media /opt/paperless_backup/
|
for dir in /opt/paperless/*/; do
|
||||||
cp -r /opt/paperless/paperless.conf /opt/paperless_backup/
|
dir_name=$(basename "$dir")
|
||||||
msg_ok "Backup completed"
|
if [[ ! "$dir_name" =~ ^(docker|docs|scripts|src|static)$ ]]; then
|
||||||
|
cp -r "/opt/paperless/$dir_name" "$BACKUP_DIR/" 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
[[ -f /opt/paperless/paperless.conf ]] && cp /opt/paperless/paperless.conf "$BACKUP_DIR/"
|
||||||
|
msg_ok "Backup completed to $BACKUP_DIR"
|
||||||
|
|
||||||
PYTHON_VERSION="3.13" setup_uv
|
PYTHON_VERSION="3.13" setup_uv
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "paperless" "paperless-ngx/paperless-ngx" "prebuild" "latest" "/opt/paperless" "paperless*tar.xz"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "paperless" "paperless-ngx/paperless-ngx" "prebuild" "latest" "/opt/paperless" "paperless*tar.xz"
|
||||||
@@ -53,19 +58,14 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Updating Paperless-ngx"
|
msg_info "Updating Paperless-ngx"
|
||||||
cp -r /opt/paperless_backup/* /opt/paperless/
|
cp -r "$BACKUP_DIR"/* /opt/paperless/
|
||||||
CONSUME_DIR="$(sed -n 's/^PAPERLESS_CONSUMPTION_DIR=//p' /opt/paperless/paperless.conf)"
|
|
||||||
if [[ -z "$CONSUME_DIR" ]]; then
|
|
||||||
CONSUME_DIR="/opt/paperless/consume"
|
|
||||||
fi
|
|
||||||
mkdir -p "$CONSUME_DIR"
|
|
||||||
cd /opt/paperless
|
cd /opt/paperless
|
||||||
$STD uv sync --all-extras
|
$STD uv sync --all-extras
|
||||||
cd /opt/paperless/src
|
cd /opt/paperless/src
|
||||||
$STD uv run -- python manage.py migrate
|
$STD uv run -- python manage.py migrate
|
||||||
msg_ok "Updated Paperless-ngx"
|
msg_ok "Updated Paperless-ngx"
|
||||||
|
|
||||||
rm -rf /opt/paperless_backup
|
rm -rf "$BACKUP_DIR"
|
||||||
|
|
||||||
else
|
else
|
||||||
msg_warn "You are about to migrate your Paperless-ngx installation to uv!"
|
msg_warn "You are about to migrate your Paperless-ngx installation to uv!"
|
||||||
@@ -83,8 +83,20 @@ function update_script() {
|
|||||||
rm -rf /opt/paperless/venv
|
rm -rf /opt/paperless/venv
|
||||||
find /opt/paperless -name "__pycache__" -type d -exec rm -rf {} +
|
find /opt/paperless -name "__pycache__" -type d -exec rm -rf {} +
|
||||||
|
|
||||||
|
msg_info "Backing up user data and configuration"
|
||||||
|
local BACKUP_DIR="/opt/paperless_backup_$$"
|
||||||
|
mkdir -p "$BACKUP_DIR"
|
||||||
|
|
||||||
|
for dir in /opt/paperless/*/; do
|
||||||
|
dir_name=$(basename "$dir")
|
||||||
|
if [[ ! "$dir_name" =~ ^(docker|docs|scripts|src|static)$ ]]; then
|
||||||
|
cp -r "/opt/paperless/$dir_name" "$BACKUP_DIR/" 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
[[ -f /opt/paperless/paperless.conf ]] && cp /opt/paperless/paperless.conf "$BACKUP_DIR/"
|
||||||
|
msg_ok "Backup completed to $BACKUP_DIR"
|
||||||
|
|
||||||
declare -A PATCHES=(
|
declare -A PATCHES=(
|
||||||
["paperless-consumer.service"]="ExecStart=uv run -- python manage.py document_consumer"
|
|
||||||
["paperless-scheduler.service"]="ExecStart=uv run -- celery --app paperless beat --loglevel INFO"
|
["paperless-scheduler.service"]="ExecStart=uv run -- celery --app paperless beat --loglevel INFO"
|
||||||
["paperless-task-queue.service"]="ExecStart=uv run -- celery --app paperless worker --loglevel INFO"
|
["paperless-task-queue.service"]="ExecStart=uv run -- celery --app paperless worker --loglevel INFO"
|
||||||
["paperless-webserver.service"]="ExecStart=uv run -- granian --interface asgi --ws \"paperless.asgi:application\""
|
["paperless-webserver.service"]="ExecStart=uv run -- granian --interface asgi --ws \"paperless.asgi:application\""
|
||||||
@@ -109,12 +121,18 @@ function update_script() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
$STD systemctl daemon-reload
|
$STD systemctl daemon-reload
|
||||||
msg_info "Backing up data"
|
msg_info "Backing up user data and configuration"
|
||||||
mkdir -p /opt/paperless_backup
|
BACKUP_DIR="/opt/paperless_backup_$$"
|
||||||
cp -r /opt/paperless/data /opt/paperless_backup/
|
mkdir -p "$BACKUP_DIR"
|
||||||
cp -r /opt/paperless/media /opt/paperless_backup/
|
|
||||||
cp -r /opt/paperless/paperless.conf /opt/paperless_backup/
|
for dir in /opt/paperless/*/; do
|
||||||
msg_ok "Backup completed"
|
dir_name=$(basename "$dir")
|
||||||
|
if [[ ! "$dir_name" =~ ^(docker|docs|scripts|src|static)$ ]]; then
|
||||||
|
cp -r "/opt/paperless/$dir_name" "$BACKUP_DIR/" 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
[[ -f /opt/paperless/paperless.conf ]] && cp /opt/paperless/paperless.conf "$BACKUP_DIR/"
|
||||||
|
msg_ok "Backup completed to $BACKUP_DIR"
|
||||||
|
|
||||||
PYTHON_VERSION="3.13" setup_uv
|
PYTHON_VERSION="3.13" setup_uv
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "paperless" "paperless-ngx/paperless-ngx" "prebuild" "latest" "/opt/paperless" "paperless*tar.xz"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "paperless" "paperless-ngx/paperless-ngx" "prebuild" "latest" "/opt/paperless" "paperless*tar.xz"
|
||||||
@@ -130,16 +148,14 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Updating Paperless-ngx"
|
msg_info "Updating Paperless-ngx"
|
||||||
cp -r /opt/paperless_backup/* /opt/paperless/
|
cp -r "$BACKUP_DIR"/* /opt/paperless/
|
||||||
CONSUME_DIR="$(sed -n '/^PAPERLESS_CONSUMPTION/s/[^=]=*//p' /opt/paperless/paperless.conf)"
|
|
||||||
mkdir -p "${CONSUME_DIR:-/opt/paperless/consume}"
|
|
||||||
cd /opt/paperless
|
cd /opt/paperless
|
||||||
$STD uv sync --all-extras
|
$STD uv sync --all-extras
|
||||||
cd /opt/paperless/src
|
cd /opt/paperless/src
|
||||||
$STD uv run -- python manage.py migrate
|
$STD uv run -- python manage.py migrate
|
||||||
msg_ok "Paperless-ngx migration and update completed"
|
msg_ok "Paperless-ngx migration and update completed"
|
||||||
|
|
||||||
rm -rf /opt/paperless_backup
|
rm -rf "$BACKUP_DIR"
|
||||||
if [[ -d /opt/paperless/backup ]]; then
|
if [[ -d /opt/paperless/backup ]]; then
|
||||||
rm -rf /opt/paperless/backup
|
rm -rf /opt/paperless/backup
|
||||||
msg_ok "Removed old backup directory"
|
msg_ok "Removed old backup directory"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
|
|||||||
# Source: https://github.com/Brandawg93/PeaNUT/
|
# Source: https://github.com/Brandawg93/PeaNUT/
|
||||||
|
|
||||||
APP="PeaNUT"
|
APP="PeaNUT"
|
||||||
var_tags="${var_tags:-network;ups;}"
|
var_tags="${var_tags:-network;ups}"
|
||||||
var_cpu="${var_cpu:-2}"
|
var_cpu="${var_cpu:-2}"
|
||||||
var_ram="${var_ram:-4096}"
|
var_ram="${var_ram:-4096}"
|
||||||
var_disk="${var_disk:-7}"
|
var_disk="${var_disk:-7}"
|
||||||
@@ -35,7 +35,7 @@ function update_script() {
|
|||||||
systemctl stop peanut
|
systemctl stop peanut
|
||||||
msg_info "Stopped Service"
|
msg_info "Stopped Service"
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "peanut" "Brandawg93/PeaNUT" "tarball" "latest" "/opt/peanut"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "peanut" "Brandawg93/PeaNUT" "tarball" "latest" "/opt/peanut"
|
||||||
|
|
||||||
msg_info "Updating $APP"
|
msg_info "Updating $APP"
|
||||||
cd /opt/peanut
|
cd /opt/peanut
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ function update_script() {
|
|||||||
mkdir -p /opt/privatebin/data
|
mkdir -p /opt/privatebin/data
|
||||||
mv /tmp/privatebin_conf.bak /opt/privatebin/cfg/conf.php
|
mv /tmp/privatebin_conf.bak /opt/privatebin/cfg/conf.php
|
||||||
chown -R www-data:www-data /opt/privatebin
|
chown -R www-data:www-data /opt/privatebin
|
||||||
chmod -R 0755 /opt/privatebin/data}
|
chmod -R 0755 /opt/privatebin/data
|
||||||
systemctl reload nginx php8.2-fpm
|
systemctl reload nginx php8.2-fpm
|
||||||
msg_ok "Configured ${APP}"
|
msg_ok "Configured ${APP}"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
|
|||||||
41
ct/splunk-enterprise.sh
Normal file
41
ct/splunk-enterprise.sh
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: rcastley
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://www.splunk.com/en_us/download.html
|
||||||
|
|
||||||
|
APP="Splunk-Enterprise"
|
||||||
|
var_tags="${var_tags:-monitoring}"
|
||||||
|
var_cpu="${var_cpu:-4}"
|
||||||
|
var_ram="${var_ram:-8192}"
|
||||||
|
var_disk="${var_disk:-40}"
|
||||||
|
var_os="${var_os:-ubuntu}"
|
||||||
|
var_version="${var_version:-24.04}"
|
||||||
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
|
header_info "$APP"
|
||||||
|
variables
|
||||||
|
color
|
||||||
|
catch_errors
|
||||||
|
|
||||||
|
function update_script() {
|
||||||
|
header_info
|
||||||
|
check_container_storage
|
||||||
|
check_container_resources
|
||||||
|
if [[ ! -d /opt/splunk ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
msg_error "Currently we don't provide an update function for this ${APP}."
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
start
|
||||||
|
build_container
|
||||||
|
description
|
||||||
|
|
||||||
|
msg_ok "Completed Successfully!\n"
|
||||||
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
|
echo -e "${INFO}${YW}Access the Splunk Enterprise Web interface using the following URL:${CL}"
|
||||||
|
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8000${CL}"
|
||||||
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}"
|
|||||||
var_ram="${var_ram:-4096}"
|
var_ram="${var_ram:-4096}"
|
||||||
var_disk="${var_disk:-20}"
|
var_disk="${var_disk:-20}"
|
||||||
var_os="${var_os:-debian}"
|
var_os="${var_os:-debian}"
|
||||||
var_version="${var_version:-13}"
|
var_version="${var_version:-12}"
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
header_info "$APP"
|
header_info "$APP"
|
||||||
|
|||||||
21
ct/tududi.sh
21
ct/tududi.sh
@@ -35,14 +35,15 @@ function update_script() {
|
|||||||
systemctl stop tududi
|
systemctl stop tududi
|
||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
msg_info "Remove and backup Files"
|
msg_info "Backing up env file"
|
||||||
DB="$(sed -n '/^DB_FILE/s/[^=]*=//p' /opt/tududi/backend/.env)"
|
if [[ -f /opt/tududi/backend/.env ]]; then
|
||||||
export DB_FILE="$DB"
|
cp /opt/tududi/backend/.env /opt/tududi.env
|
||||||
cp /opt/tududi/backend/.env /opt/tududi.env
|
else
|
||||||
rm -rf /opt/tududi/backend/dist
|
cp /opt/tududi/.env /opt/tududi.env
|
||||||
msg_ok "Backup and removed Files"
|
fi
|
||||||
|
msg_ok "Backed up env file"
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "tududi" "chrisvel/tududi" "tarball" "latest" "/opt/tududi"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "tududi" "chrisvel/tududi" "tarball" "latest" "/opt/tududi"
|
||||||
|
|
||||||
msg_info "Updating Tududi"
|
msg_info "Updating Tududi"
|
||||||
cd /opt/tududi
|
cd /opt/tududi
|
||||||
@@ -50,9 +51,9 @@ function update_script() {
|
|||||||
export NODE_ENV=production
|
export NODE_ENV=production
|
||||||
$STD npm run frontend:build
|
$STD npm run frontend:build
|
||||||
mv ./dist ./backend
|
mv ./dist ./backend
|
||||||
mv ./public/locales ./backend/dist
|
mv /opt/tududi.env /opt/tududi/backend/.env
|
||||||
mv ./public/favicon.* ./backend/dist
|
DB="$(sed -n '/^DB_FILE/s/[^=]*=//p' /opt/tududi/backend/.env)"
|
||||||
mv /opt/tududi.env /opt/tududi/.env
|
export DB_FILE="$DB"
|
||||||
sed -i -e 's|/tududi$|/tududi/backend|' \
|
sed -i -e 's|/tududi$|/tududi/backend|' \
|
||||||
-e 's|npm run start|bash /opt/tududi/backend/cmd/start.sh|' \
|
-e 's|npm run start|bash /opt/tududi/backend/cmd/start.sh|' \
|
||||||
/etc/systemd/system/tududi.service
|
/etc/systemd/system/tududi.service
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Barcode Buddy",
|
|
||||||
"slug": "barcode-buddy",
|
|
||||||
"categories": [
|
|
||||||
24
|
|
||||||
],
|
|
||||||
"date_created": "2025-02-08",
|
|
||||||
"type": "ct",
|
|
||||||
"updateable": true,
|
|
||||||
"privileged": false,
|
|
||||||
"interface_port": 80,
|
|
||||||
"documentation": "https://barcodebuddy-documentation.readthedocs.io/en/latest/",
|
|
||||||
"website": "https://github.com/Forceu/barcodebuddy",
|
|
||||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/barcode-buddy.webp",
|
|
||||||
"config_path": "/opt/barcodebuddy/data/config.php",
|
|
||||||
"description": "Barcode Buddy for Grocy is an extension for Grocy, allowing to pass barcodes to Grocy. It supports barcodes for products and chores. If you own a physical barcode scanner, it can be integrated, so that all barcodes scanned are automatically pushed to BarcodeBuddy/Grocy.",
|
|
||||||
"install_methods": [
|
|
||||||
{
|
|
||||||
"type": "default",
|
|
||||||
"script": "ct/barcode-buddy.sh",
|
|
||||||
"resources": {
|
|
||||||
"cpu": 1,
|
|
||||||
"ram": 512,
|
|
||||||
"hdd": 3,
|
|
||||||
"os": "debian",
|
|
||||||
"version": "12"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"default_credentials": {
|
|
||||||
"username": null,
|
|
||||||
"password": null
|
|
||||||
},
|
|
||||||
"notes": [
|
|
||||||
{
|
|
||||||
"text": "After install enable the option \"Use Redis cache\" on the settings page.",
|
|
||||||
"type": "info"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -19,8 +19,8 @@
|
|||||||
"type": "default",
|
"type": "default",
|
||||||
"script": "ct/changedetection.sh",
|
"script": "ct/changedetection.sh",
|
||||||
"resources": {
|
"resources": {
|
||||||
"cpu": 2,
|
"cpu": 4,
|
||||||
"ram": 2048,
|
"ram": 4096,
|
||||||
"hdd": 10,
|
"hdd": 10,
|
||||||
"os": "debian",
|
"os": "debian",
|
||||||
"version": "12"
|
"version": "12"
|
||||||
|
|||||||
44
frontend/public/json/domain-locker.json
Normal file
44
frontend/public/json/domain-locker.json
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"name": "Domain Locker",
|
||||||
|
"slug": "domain-locker",
|
||||||
|
"categories": [
|
||||||
|
9
|
||||||
|
],
|
||||||
|
"date_created": "2025-11-17",
|
||||||
|
"type": "ct",
|
||||||
|
"updateable": true,
|
||||||
|
"privileged": false,
|
||||||
|
"interface_port": 3000,
|
||||||
|
"documentation": "https://domain-locker.com/about",
|
||||||
|
"config_path": "/opt/domain-locker.env",
|
||||||
|
"website": "https://github.com/Lissy93/domain-locker",
|
||||||
|
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/domain-locker.webp",
|
||||||
|
"description": "The all-in-one tool, for keeping track of your domain name portfolio. Got domain names? Get Domain Locker! ",
|
||||||
|
"install_methods": [
|
||||||
|
{
|
||||||
|
"type": "default",
|
||||||
|
"script": "ct/domain-locker.sh",
|
||||||
|
"resources": {
|
||||||
|
"cpu": 2,
|
||||||
|
"ram": 4096,
|
||||||
|
"hdd": 8,
|
||||||
|
"os": "Debian",
|
||||||
|
"version": "13"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default_credentials": {
|
||||||
|
"username": null,
|
||||||
|
"password": null
|
||||||
|
},
|
||||||
|
"notes": [
|
||||||
|
{
|
||||||
|
"text": "Show DB credentials: `cat ~/Domain-Locker.creds`",
|
||||||
|
"type": "info"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "Domain-locker takes quite some time to build and a lot of ressources, RAM and Cores can be lowered after install.",
|
||||||
|
"type": "info"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
"privileged": false,
|
"privileged": false,
|
||||||
"interface_port": 2021,
|
"interface_port": 2021,
|
||||||
"documentation": "https://docs.donetick.com/getting-started/",
|
"documentation": "https://docs.donetick.com/getting-started/",
|
||||||
"config_path": "/opt/donetick/config/selfhosted.yml",
|
"config_path": "/opt/donetick/config/selfhosted.yaml",
|
||||||
"website": "https://donetick.com",
|
"website": "https://donetick.com",
|
||||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/donetick.webp",
|
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/donetick.webp",
|
||||||
"description": "Donetick an open-source, user-friendly app for managing tasks and chores, featuring customizable options to help you and others stay organized",
|
"description": "Donetick an open-source, user-friendly app for managing tasks and chores, featuring customizable options to help you and others stay organized",
|
||||||
|
|||||||
@@ -1,35 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Fenrus",
|
|
||||||
"slug": "fenrus",
|
|
||||||
"categories": [
|
|
||||||
10
|
|
||||||
],
|
|
||||||
"date_created": "2024-05-05",
|
|
||||||
"type": "ct",
|
|
||||||
"updateable": false,
|
|
||||||
"privileged": false,
|
|
||||||
"interface_port": 5000,
|
|
||||||
"documentation": "https://github.com/revenz/Fenrus/wiki",
|
|
||||||
"website": "https://github.com/revenz/Fenrus",
|
|
||||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/fenrus.webp",
|
|
||||||
"config_path": "",
|
|
||||||
"description": "A personal home page for quick access to all your personal apps/sites.",
|
|
||||||
"install_methods": [
|
|
||||||
{
|
|
||||||
"type": "default",
|
|
||||||
"script": "ct/fenrus.sh",
|
|
||||||
"resources": {
|
|
||||||
"cpu": 1,
|
|
||||||
"ram": 512,
|
|
||||||
"hdd": 4,
|
|
||||||
"os": "debian",
|
|
||||||
"version": "12"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"default_credentials": {
|
|
||||||
"username": null,
|
|
||||||
"password": null
|
|
||||||
},
|
|
||||||
"notes": []
|
|
||||||
}
|
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
"ram": 512,
|
"ram": 512,
|
||||||
"hdd": 2,
|
"hdd": 2,
|
||||||
"os": "debian",
|
"os": "debian",
|
||||||
"version": "12"
|
"version": "13"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
35
frontend/public/json/librenms.json
Normal file
35
frontend/public/json/librenms.json
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"name": "LibreNMS",
|
||||||
|
"slug": "librenms",
|
||||||
|
"categories": [
|
||||||
|
9
|
||||||
|
],
|
||||||
|
"date_created": "2025-11-14",
|
||||||
|
"type": "ct",
|
||||||
|
"updateable": false,
|
||||||
|
"privileged": false,
|
||||||
|
"interface_port": 80,
|
||||||
|
"documentation": "https://docs.librenms.org/",
|
||||||
|
"website": "https://librenms.org/",
|
||||||
|
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/librenms.webp",
|
||||||
|
"config_path": "/opt/librenms/config.php and /opt/librenms/.env",
|
||||||
|
"description": "LibreNMS is an open-source, community-driven network monitoring system that provides automatic discovery, alerting, and performance tracking for network devices. It supports a wide range of hardware and integrates with various notification and logging platforms.",
|
||||||
|
"install_methods": [
|
||||||
|
{
|
||||||
|
"type": "default",
|
||||||
|
"script": "ct/librenms.sh",
|
||||||
|
"resources": {
|
||||||
|
"cpu": 2,
|
||||||
|
"ram": 2048,
|
||||||
|
"hdd": 4,
|
||||||
|
"os": "Debian",
|
||||||
|
"version": "12"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default_credentials": {
|
||||||
|
"username": "admin",
|
||||||
|
"password": "admin"
|
||||||
|
},
|
||||||
|
"notes": []
|
||||||
|
}
|
||||||
35
frontend/public/json/metabase.json
Normal file
35
frontend/public/json/metabase.json
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"name": "Metabase",
|
||||||
|
"slug": "metabase",
|
||||||
|
"categories": [
|
||||||
|
9
|
||||||
|
],
|
||||||
|
"date_created": "2025-11-16",
|
||||||
|
"type": "ct",
|
||||||
|
"updateable": true,
|
||||||
|
"privileged": false,
|
||||||
|
"interface_port": 3000,
|
||||||
|
"documentation": "https://www.metabase.com/docs/latest/",
|
||||||
|
"config_path": "/opt/metabase/.env",
|
||||||
|
"website": "https://www.metabase.com/",
|
||||||
|
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/metabase.webp",
|
||||||
|
"description": "Metabase is an open-source business intelligence platform. You can use Metabase to ask questions about your data, or embed Metabase in your app to let your customers explore their data on their own.",
|
||||||
|
"install_methods": [
|
||||||
|
{
|
||||||
|
"type": "default",
|
||||||
|
"script": "ct/metabase.sh",
|
||||||
|
"resources": {
|
||||||
|
"cpu": 2,
|
||||||
|
"ram": 2048,
|
||||||
|
"hdd": 6,
|
||||||
|
"os": "Debian",
|
||||||
|
"version": "13"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default_credentials": {
|
||||||
|
"username": null,
|
||||||
|
"password": null
|
||||||
|
},
|
||||||
|
"notes": []
|
||||||
|
}
|
||||||
40
frontend/public/json/miniflux.json
Normal file
40
frontend/public/json/miniflux.json
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"name": "Miniflux",
|
||||||
|
"slug": "miniflux",
|
||||||
|
"categories": [
|
||||||
|
13
|
||||||
|
],
|
||||||
|
"date_created": "2025-11-12",
|
||||||
|
"type": "ct",
|
||||||
|
"updateable": true,
|
||||||
|
"privileged": false,
|
||||||
|
"config_path": "/etc/miniflux.conf",
|
||||||
|
"interface_port": 8080,
|
||||||
|
"documentation": "https://miniflux.app/docs/index.html",
|
||||||
|
"website": "https://miniflux.app/",
|
||||||
|
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/miniflux-light.webp",
|
||||||
|
"description": "Miniflux is a minimalist and opinionated feed reader.",
|
||||||
|
"install_methods": [
|
||||||
|
{
|
||||||
|
"type": "default",
|
||||||
|
"script": "ct/miniflux.sh",
|
||||||
|
"resources": {
|
||||||
|
"cpu": 2,
|
||||||
|
"ram": 2048,
|
||||||
|
"hdd": 8,
|
||||||
|
"os": "Debian",
|
||||||
|
"version": "13"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default_credentials": {
|
||||||
|
"username": "admin",
|
||||||
|
"password": "randomly generated during installation process"
|
||||||
|
},
|
||||||
|
"notes": [
|
||||||
|
{
|
||||||
|
"text": "Admin password available as `ADMIN_PASSWORD` in `~/miniflux.creds`",
|
||||||
|
"type": "info"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
40
frontend/public/json/netvisor.json
Normal file
40
frontend/public/json/netvisor.json
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"name": "NetVisor",
|
||||||
|
"slug": "netvisor",
|
||||||
|
"categories": [
|
||||||
|
9
|
||||||
|
],
|
||||||
|
"date_created": "2025-11-13",
|
||||||
|
"type": "ct",
|
||||||
|
"updateable": true,
|
||||||
|
"privileged": false,
|
||||||
|
"interface_port": 60072,
|
||||||
|
"documentation": "https://github.com/mayanayza/netvisor",
|
||||||
|
"config_path": "/opt/netvisor/.env",
|
||||||
|
"website": "https://github.com/mayanayza/netvisor",
|
||||||
|
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/png/netvisor.png",
|
||||||
|
"description": "Automatically discover and visually document network infrastructure",
|
||||||
|
"install_methods": [
|
||||||
|
{
|
||||||
|
"type": "default",
|
||||||
|
"script": "ct/netvisor.sh",
|
||||||
|
"resources": {
|
||||||
|
"cpu": 2,
|
||||||
|
"ram": 3072,
|
||||||
|
"hdd": 6,
|
||||||
|
"os": "Debian",
|
||||||
|
"version": "13"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default_credentials": {
|
||||||
|
"username": null,
|
||||||
|
"password": null
|
||||||
|
},
|
||||||
|
"notes": [
|
||||||
|
{
|
||||||
|
"text": "The integrated daemon config is located at `/root/.config/daemon/config.json`",
|
||||||
|
"type": "info"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
48
frontend/public/json/splunk-enterprise.json
Normal file
48
frontend/public/json/splunk-enterprise.json
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
{
|
||||||
|
"name": "Splunk Enterprise",
|
||||||
|
"slug": "splunk-enterprise",
|
||||||
|
"categories": [
|
||||||
|
9
|
||||||
|
],
|
||||||
|
"date_created": "2025-11-12",
|
||||||
|
"type": "ct",
|
||||||
|
"updateable": false,
|
||||||
|
"privileged": false,
|
||||||
|
"interface_port": 8000,
|
||||||
|
"documentation": "https://help.splunk.com",
|
||||||
|
"config_path": "",
|
||||||
|
"website": "https://www.splunk.com/en_us/download/splunk-enterprise.html",
|
||||||
|
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/splunk.webp",
|
||||||
|
"description": "Platform for searching, monitoring, and analyzing machine-generated data at scale for operational intelligence and security.",
|
||||||
|
"install_methods": [
|
||||||
|
{
|
||||||
|
"type": "default",
|
||||||
|
"script": "ct/splunk-enterprise.sh",
|
||||||
|
"resources": {
|
||||||
|
"cpu": 4,
|
||||||
|
"ram": 8192,
|
||||||
|
"hdd": 40,
|
||||||
|
"os": "Ubuntu",
|
||||||
|
"version": "24.04"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default_credentials": {
|
||||||
|
"username": null,
|
||||||
|
"password": null
|
||||||
|
},
|
||||||
|
"notes": [
|
||||||
|
{
|
||||||
|
"text": "The credentials to login can be found in splunk.creds.",
|
||||||
|
"type": "info"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "Trial license allows indexing 500 MB/Day. After 60 days you can convert to a perpetual free license or purchase a Splunk Enterprise license to continue using the expanded functionality designed for enterprise-scale deployments.",
|
||||||
|
"type": "warning"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "About Splunk Free License: https://help.splunk.com/en/splunk-enterprise/administer/admin-manual/10.0/configure-splunk-licenses/about-splunk-free",
|
||||||
|
"type": "info"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
"ram": 4096,
|
"ram": 4096,
|
||||||
"hdd": 20,
|
"hdd": 20,
|
||||||
"os": "Debian",
|
"os": "Debian",
|
||||||
"version": "13"
|
"version": "12"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -53,7 +53,7 @@ sed -i -e "s|^APP_URL=.*|APP_URL=http://$IPADDRESS|" \
|
|||||||
-e "s|^DB_PASSWORD=$|DB_PASSWORD=$DB_PASS|" .env
|
-e "s|^DB_PASSWORD=$|DB_PASSWORD=$DB_PASS|" .env
|
||||||
export COMPOSER_ALLOW_SUPERUSER=1
|
export COMPOSER_ALLOW_SUPERUSER=1
|
||||||
$STD composer update --no-plugins --no-scripts
|
$STD composer update --no-plugins --no-scripts
|
||||||
$STD composer install --no-dev --prefer-source --no-plugins --no-scripts
|
$STD composer install --no-dev --prefer-dist --no-plugins --no-scripts
|
||||||
$STD php artisan key:generate --force
|
$STD php artisan key:generate --force
|
||||||
$STD php artisan migrate:refresh
|
$STD php artisan migrate:refresh
|
||||||
$STD php artisan passport:install -q -n
|
$STD php artisan passport:install -q -n
|
||||||
|
|||||||
@@ -1,73 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2025 community-scripts ORG
|
|
||||||
# Author: bvdberg01
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/Forceu/barcodebuddy
|
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
|
||||||
$STD apt-get install -y \
|
|
||||||
redis \
|
|
||||||
sqlite3
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
PHP_VERSION="8.2" PHP_APACHE="YES" PHP_MODULE="redis, sqlite3" setup_php
|
|
||||||
fetch_and_deploy_gh_release "barcodebuddy" "Forceu/barcodebuddy"
|
|
||||||
|
|
||||||
msg_info "Configuring barcodebuddy"
|
|
||||||
chown -R www-data:www-data /opt/barcodebuddy/data
|
|
||||||
msg_ok "Configured barcodebuddy"
|
|
||||||
|
|
||||||
msg_info "Creating Services"
|
|
||||||
cat <<EOF >/etc/systemd/system/barcodebuddy.service
|
|
||||||
[Unit]
|
|
||||||
Description=Run websocket server for barcodebuddy screen feature
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
ExecStart=/usr/bin/php /opt/barcodebuddy/wsserver.php
|
|
||||||
StandardOutput=null
|
|
||||||
Restart=on-failure
|
|
||||||
User=www-data
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
cat <<EOF >/etc/apache2/sites-available/barcodebuddy.conf
|
|
||||||
<VirtualHost *:80>
|
|
||||||
ServerName barcodebuddy
|
|
||||||
DocumentRoot /opt/barcodebuddy
|
|
||||||
|
|
||||||
<Directory /opt/barcodebuddy>
|
|
||||||
Options FollowSymLinks
|
|
||||||
AllowOverride All
|
|
||||||
Require all granted
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
ErrorLog /var/log/apache2/barcodebuddy_error.log
|
|
||||||
CustomLog /var/log/apache2/barcodebuddy_access.log combined
|
|
||||||
</VirtualHost>
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now barcodebuddy
|
|
||||||
$STD a2ensite barcodebuddy
|
|
||||||
$STD a2enmod rewrite
|
|
||||||
$STD a2dissite 000-default.conf
|
|
||||||
$STD systemctl reload apache2
|
|
||||||
msg_ok "Created Services"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
|
||||||
$STD apt-get -y autoremove
|
|
||||||
$STD apt-get -y autoclean
|
|
||||||
msg_ok "Cleaned"
|
|
||||||
72
install/domain-locker-install.sh
Normal file
72
install/domain-locker-install.sh
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: CrazyWolf13
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://github.com/CrazyWolf13/domain-locker
|
||||||
|
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
PG_VERSION="17" setup_postgresql
|
||||||
|
PG_DB_NAME="domainlocker_db" PG_DB_USER="domainlocker" setup_postgresql_db
|
||||||
|
NODE_VERSION="22" setup_nodejs
|
||||||
|
|
||||||
|
fetch_and_deploy_gh_release "domain-locker" "Lissy93/domain-locker"
|
||||||
|
|
||||||
|
msg_info "Installing Modules (patience)"
|
||||||
|
cd /opt/domain-locker
|
||||||
|
$STD npm install
|
||||||
|
msg_ok "Installed Modules"
|
||||||
|
|
||||||
|
msg_info "Building Domain-Locker (a lot of patience)"
|
||||||
|
cat <<EOF >/opt/domain-locker.env
|
||||||
|
# Database connection
|
||||||
|
DL_PG_HOST=localhost
|
||||||
|
DL_PG_PORT=5432
|
||||||
|
DL_PG_USER=$PG_DB_USER
|
||||||
|
DL_PG_PASSWORD=$PG_DB_PASS
|
||||||
|
DL_PG_NAME=$PG_DB_NAME
|
||||||
|
|
||||||
|
# Build + Runtime
|
||||||
|
DL_ENV_TYPE=selfHosted
|
||||||
|
NITRO_PRESET=node_server
|
||||||
|
NODE_ENV=production
|
||||||
|
EOF
|
||||||
|
set -a
|
||||||
|
source /opt/domain-locker.env
|
||||||
|
set +a
|
||||||
|
$STD npm run build
|
||||||
|
msg_info "Built Domain-Locker"
|
||||||
|
|
||||||
|
msg_info "Building Database schema"
|
||||||
|
export PGPASSWORD="$DL_PG_PASSWORD"
|
||||||
|
$STD psql -h "$DL_PG_HOST" -p "$DL_PG_PORT" -U "$DL_PG_USER" -d "$DL_PG_NAME" -f "/opt/domain-locker/db/schema.sql"
|
||||||
|
msg_ok "Built Database schema"
|
||||||
|
|
||||||
|
msg_info "Creating Service"
|
||||||
|
cat <<EOF >/etc/systemd/system/domain-locker.service
|
||||||
|
[Unit]
|
||||||
|
Description=Domain-Locker Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
EnvironmentFile=/opt/domain-locker.env
|
||||||
|
WorkingDirectory=/opt/domain-locker
|
||||||
|
ExecStart=/opt/domain-locker/start.sh
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
systemctl start --now -q domain-locker
|
||||||
|
msg_info "Created Service"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
@@ -43,6 +43,7 @@ sed -i -e "s|^APP_ENV=.*|APP_ENV=production|" \
|
|||||||
-e "s|^DB_USERNAME=.*|DB_USERNAME=$MARIADB_DB_USER|" \
|
-e "s|^DB_USERNAME=.*|DB_USERNAME=$MARIADB_DB_USER|" \
|
||||||
-e "s|^DB_PASSWORD=.*|DB_PASSWORD=$MARIADB_DB_PASS|" \
|
-e "s|^DB_PASSWORD=.*|DB_PASSWORD=$MARIADB_DB_PASS|" \
|
||||||
-e "s|^DB_DATABASE=.*|DB_DATABASE=$MARIADB_DB_NAME|" .env
|
-e "s|^DB_DATABASE=.*|DB_DATABASE=$MARIADB_DB_NAME|" .env
|
||||||
|
echo "0 0 * * * root /usr/bin/php /opt/domain-monitor/cron/check_domains.php" >>/etc/crontab
|
||||||
|
|
||||||
cat <<EOF >/etc/apache2/sites-enabled/000-default.conf
|
cat <<EOF >/etc/apache2/sites-enabled/000-default.conf
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
|
|||||||
@@ -1,62 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2025 tteck
|
|
||||||
# Author: tteck (tteckster)
|
|
||||||
# Co-Author: Scorpoon
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/revenz/Fenrus
|
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
|
||||||
$STD apt-get install -y git
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
msg_info "Installing ASP.NET Core 7 SDK"
|
|
||||||
var_os=$(grep "^ID=" /etc/os-release | cut -d'=' -f2 | tr -d '"')
|
|
||||||
var_version=$(grep "^VERSION_ID=" /etc/os-release | cut -d'=' -f2 | tr -d '"')
|
|
||||||
if [ "${var_os}" = "debian" ]; then
|
|
||||||
curl -fsSL "https://packages.microsoft.com/config/debian/$var_version/packages-microsoft-prod.deb" -o "packages-microsoft-prod.deb"
|
|
||||||
$STD dpkg -i packages-microsoft-prod.deb
|
|
||||||
rm packages-microsoft-prod.deb
|
|
||||||
fi
|
|
||||||
$STD apt-get update
|
|
||||||
$STD apt-get install -y dotnet-sdk-7.0
|
|
||||||
msg_ok "Installed ASP.NET Core 7 SDK"
|
|
||||||
|
|
||||||
msg_info "Installing ${APPLICATION}"
|
|
||||||
git clone -q https://github.com/revenz/Fenrus.git /opt/${APPLICATION}
|
|
||||||
cd /opt/${APPLICATION}
|
|
||||||
$STD dotnet publish -c Release -o "/opt/${APPLICATION}/" Fenrus.csproj
|
|
||||||
msg_ok "Installed ${APPLICATION}"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
|
||||||
cat <<EOF >/etc/systemd/system/"${APPLICATION}".service
|
|
||||||
[Unit]
|
|
||||||
Description=${APPLICATION}
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
WorkingDirectory=/opt/${APPLICATION}
|
|
||||||
ExecStart=/usr/bin/dotnet Fenrus.dll --urls=http://*:5000
|
|
||||||
SyslogIdentifier=${APPLICATION}
|
|
||||||
User=root
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
$STD systemctl enable -q --now ${APPLICATION}
|
|
||||||
msg_ok "Created Service"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
|
||||||
$STD apt-get -y autoremove
|
|
||||||
$STD apt-get -y autoclean
|
|
||||||
msg_ok "Cleaned"
|
|
||||||
@@ -14,26 +14,23 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y apt-transport-https
|
||||||
apt-transport-https \
|
|
||||||
software-properties-common
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Setting up Grafana Repository"
|
msg_info "Setting up Grafana Repository"
|
||||||
curl -fsSL "https://apt.grafana.com/gpg.key" -o "/usr/share/keyrings/grafana.key"
|
setup_deb822_repo \
|
||||||
echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" >/etc/apt/sources.list.d/grafana.list
|
"grafana" \
|
||||||
msg_ok "Set up Grafana Repository"
|
"https://apt.grafana.com/gpg.key" \
|
||||||
|
"https://apt.grafana.com" \
|
||||||
|
"stable" \
|
||||||
|
"main"
|
||||||
|
msg_ok "Grafana Repository setup sucessfully"
|
||||||
|
|
||||||
msg_info "Installing Grafana"
|
msg_info "Installing Grafana"
|
||||||
$STD apt-get update
|
$STD apt install -y grafana
|
||||||
$STD apt-get install -y grafana
|
systemctl enable -q --now grafana-server
|
||||||
systemctl enable -q --now grafana-server
|
|
||||||
msg_ok "Installed Grafana"
|
msg_ok "Installed Grafana"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
cleanup_lxc
|
||||||
msg_info "Cleaning up"
|
|
||||||
$STD apt-get -y autoremove
|
|
||||||
$STD apt-get -y autoclean
|
|
||||||
msg_ok "Cleaned"
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ $STD apt install -y \
|
|||||||
caddy
|
caddy
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
PYTHON_VERSION="3.12" setup_python
|
PYTHON_VERSION="3.13" setup_uv
|
||||||
PG_VERSION=16 setup_postgresql
|
PG_VERSION=16 setup_postgresql
|
||||||
|
|
||||||
msg_info "Setup Database"
|
msg_info "Setup Database"
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ echo "export COMPOSER_ALLOW_SUPERUSER=1" >>~/.bashrc
|
|||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
$STD composer install --no-dev --optimize-autoloader --no-interaction
|
$STD composer install --no-dev --optimize-autoloader --no-interaction
|
||||||
cp .env.dist .env
|
cp .env.dist .env
|
||||||
sed -i "/^DATABASE_URL=/c\DATABASE_URL=mysql://$DB_USER:$DB_PASS@127.0.0.1:3306/$DB_NAME?charset=utf8mb4&serverVersion=$MYSQL_VERSION" /opt/kimai/.env
|
sed -i "/^DATABASE_URL=/c\DATABASE_URL=mysql://$DB_USER:$DB_PASS@127.0.0.1:3306/$DB_NAME?charset=utf8mb4&serverVersion=mariadb-$MYSQL_VERSION" /opt/kimai/.env
|
||||||
$STD bin/console kimai:install -n
|
$STD bin/console kimai:install -n
|
||||||
$STD expect <<EOF
|
$STD expect <<EOF
|
||||||
set timeout -1
|
set timeout -1
|
||||||
@@ -71,9 +71,6 @@ kimai:
|
|||||||
begin: 15
|
begin: 15
|
||||||
end: 15
|
end: 15
|
||||||
|
|
||||||
admin_lte:
|
|
||||||
options:
|
|
||||||
default_avatar: build/apple-touch-icon.png
|
|
||||||
EOF
|
EOF
|
||||||
msg_ok "Installed Kimai"
|
msg_ok "Installed Kimai"
|
||||||
|
|
||||||
|
|||||||
138
install/librenms-install.sh
Normal file
138
install/librenms-install.sh
Normal file
@@ -0,0 +1,138 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: michelroegl-brunner
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://www.librenms.org/
|
||||||
|
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt install -y \
|
||||||
|
acl \
|
||||||
|
fping \
|
||||||
|
graphviz \
|
||||||
|
imagemagick \
|
||||||
|
mtr-tiny \
|
||||||
|
nginx \
|
||||||
|
nmap \
|
||||||
|
rrdtool \
|
||||||
|
snmp \
|
||||||
|
snmpd \
|
||||||
|
whois
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
msg_info "Installing Python Dependencies"
|
||||||
|
$STD apt install -y \
|
||||||
|
python3-dotenv \
|
||||||
|
python3-pymysql \
|
||||||
|
python3-redis \
|
||||||
|
python3-setuptools \
|
||||||
|
python3-systemd \
|
||||||
|
python3-pip
|
||||||
|
msg_ok "Installed Python Dependencies"
|
||||||
|
|
||||||
|
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="gmp,mysql,snmp" setup_php
|
||||||
|
setup_mariadb
|
||||||
|
setup_composer
|
||||||
|
PYTHON_VERSION="3.13" setup_uv
|
||||||
|
MARIADB_DB_NAME="librenms" MARIADB_DB_USER="librenms" MARIADB_DB_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)" setup_mariadb_db
|
||||||
|
fetch_and_deploy_gh_release "librenms" "librenms/librenms"
|
||||||
|
|
||||||
|
msg_info "Configuring LibreNMS"
|
||||||
|
$STD useradd librenms -d /opt/librenms -M -r -s "$(which bash)"
|
||||||
|
mkdir -p /opt/librenms/{rrd,logs,bootstrap/cache,storage,html}
|
||||||
|
cd /opt/librenms
|
||||||
|
APP_KEY=$(openssl rand -base64 40 | tr -dc 'a-zA-Z0-9')
|
||||||
|
$STD uv venv .venv
|
||||||
|
$STD source .venv/bin/activate
|
||||||
|
$STD uv pip install -r requirements.txt
|
||||||
|
cat <<EOF >/opt/librenms/.env
|
||||||
|
DB_DATABASE=${MARIADB_DB_NAME}
|
||||||
|
DB_USERNAME=${MARIADB_DB_USER}
|
||||||
|
DB_PASSWORD=${MARIADB_DB_PASS}
|
||||||
|
APP_KEY=${APP_KEY}
|
||||||
|
EOF
|
||||||
|
chown -R librenms:librenms /opt/librenms
|
||||||
|
chmod 771 /opt/librenms
|
||||||
|
chmod -R ug=rwX /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs /opt/librenms/rrd
|
||||||
|
msg_ok "Configured LibreNMS"
|
||||||
|
|
||||||
|
msg_info "Configure MariaDB"
|
||||||
|
sed -i "/\[mysqld\]/a innodb_file_per_table=1\nlower_case_table_names=0" /etc/mysql/mariadb.conf.d/50-server.cnf
|
||||||
|
systemctl enable -q --now mariadb
|
||||||
|
msg_ok "Configured MariaDB"
|
||||||
|
|
||||||
|
msg_info "Configure PHP-FPM"
|
||||||
|
cp /etc/php/8.4/fpm/pool.d/www.conf /etc/php/8.4/fpm/pool.d/librenms.conf
|
||||||
|
sed -i "s/\[www\]/\[librenms\]/g" /etc/php/8.4/fpm/pool.d/librenms.conf
|
||||||
|
sed -i "s/user = www-data/user = librenms/g" /etc/php/8.4/fpm/pool.d/librenms.conf
|
||||||
|
sed -i "s/group = www-data/group = librenms/g" /etc/php/8.4/fpm/pool.d/librenms.conf
|
||||||
|
sed -i "s/listen = \/run\/php\/php8.4-fpm.sock/listen = \/run\/php-fpm-librenms.sock/g" /etc/php/8.4/fpm/pool.d/librenms.conf
|
||||||
|
msg_ok "Configured PHP-FPM"
|
||||||
|
|
||||||
|
msg_info "Configure Nginx"
|
||||||
|
IP_ADDR=$(hostname -I | awk '{print $1}')
|
||||||
|
cat >/etc/nginx/sites-enabled/librenms <<'EOF'
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name ${IP_ADDR};
|
||||||
|
root /opt/librenms/html;
|
||||||
|
index index.php;
|
||||||
|
|
||||||
|
charset utf-8;
|
||||||
|
gzip on;
|
||||||
|
gzip_types text/css application/javascript text/javascript application/x-javascript image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
|
}
|
||||||
|
location ~ [^/]\.php(/|$) {
|
||||||
|
fastcgi_pass unix:/run/php-fpm-librenms.sock;
|
||||||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
include fastcgi.conf;
|
||||||
|
}
|
||||||
|
location ~ /\.(?!well-known).* {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
rm /etc/nginx/sites-enabled/default
|
||||||
|
$STD systemctl reload nginx
|
||||||
|
systemctl restart php8.4-fpm
|
||||||
|
msg_ok "Configured Nginx"
|
||||||
|
|
||||||
|
msg_info "Configure Services"
|
||||||
|
ln -s /opt/librenms/lnms /usr/bin/lnms
|
||||||
|
mkdir -p /etc/bash_completion.d/
|
||||||
|
cp /opt/librenms/misc/lnms-completion.bash /etc/bash_completion.d/
|
||||||
|
cp /opt/librenms/snmpd.conf.example /etc/snmp/snmpd.conf
|
||||||
|
|
||||||
|
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev"
|
||||||
|
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan migrate --force"
|
||||||
|
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan key:generate --force"
|
||||||
|
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && lnms db:seed --force"
|
||||||
|
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && lnms user:add -p admin -r admin admin"
|
||||||
|
|
||||||
|
RANDOM_STRING=$(openssl rand -base64 16 | tr -dc 'a-zA-Z0-9')
|
||||||
|
sed -i "s/RANDOMSTRINGHERE/$RANDOM_STRING/g" /etc/snmp/snmpd.conf
|
||||||
|
echo "SNMP Community String: $RANDOM_STRING" >>~/librenms.creds
|
||||||
|
curl -qso /usr/bin/distro https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/distro
|
||||||
|
chmod +x /usr/bin/distro
|
||||||
|
systemctl enable -q --now snmpd
|
||||||
|
|
||||||
|
cp /opt/librenms/dist/librenms.cron /etc/cron.d/librenms
|
||||||
|
cp /opt/librenms/dist/librenms-scheduler.service /opt/librenms/dist/librenms-scheduler.timer /etc/systemd/system/
|
||||||
|
|
||||||
|
systemctl enable -q --now librenms-scheduler.timer
|
||||||
|
cp /opt/librenms/misc/librenms.logrotate /etc/logrotate.d/librenms
|
||||||
|
msg_ok "Configured Services"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
59
install/metabase-install.sh
Normal file
59
install/metabase-install.sh
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: Slaviša Arežina (tremor021)
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://www.metabase.com/
|
||||||
|
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
JAVA_VERSION="21" setup_java
|
||||||
|
PG_VERSION="17" setup_postgresql
|
||||||
|
PG_DB_NAME="metabase_db" PG_DB_USER="metabase" setup_postgresql_db
|
||||||
|
|
||||||
|
msg_info "Setting up Metabase"
|
||||||
|
mkdir -p /opt/metabase
|
||||||
|
RELEASE=$(get_latest_github_release "metabase/metabase")
|
||||||
|
curl -fsSL "https://downloads.metabase.com/v${RELEASE}.x/metabase.jar" -o /opt/metabase/metabase.jar
|
||||||
|
cd /opt/metabase
|
||||||
|
|
||||||
|
cat <<EOF >/opt/metabase/.env
|
||||||
|
MB_DB_TYPE=postgres
|
||||||
|
MB_DB_DBNAME=$PG_DB_NAME
|
||||||
|
MB_DB_PORT=5432
|
||||||
|
MB_DB_USER=$PG_DB_USER
|
||||||
|
MB_DB_PASS=$PG_DB_PASS
|
||||||
|
MB_DB_HOST=localhost
|
||||||
|
EOF
|
||||||
|
echo $RELEASE >~/.metabase
|
||||||
|
msg_ok "Setup Metabase"
|
||||||
|
|
||||||
|
msg_info "Creating Service"
|
||||||
|
cat <<EOF >/etc/systemd/system/metabase.service
|
||||||
|
[Unit]
|
||||||
|
Description=Metabase Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
EnvironmentFile=/opt/metabase/.env
|
||||||
|
WorkingDirectory=/opt/metabase
|
||||||
|
ExecStart=/usr/bin/java --add-opens java.base/java.nio=ALL-UNNAMED -jar metabase.jar
|
||||||
|
Restart=always
|
||||||
|
SuccessExitStatus=143
|
||||||
|
TimeoutStopSec=120
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
systemctl enable -q --now metabase
|
||||||
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
41
install/miniflux-install.sh
Normal file
41
install/miniflux-install.sh
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: omernaveedxyz
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://miniflux.app/
|
||||||
|
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
PG_VERSION=17 setup_postgresql
|
||||||
|
PG_DB_NAME="miniflux_db" PG_DB_USER="miniflux" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
|
||||||
|
fetch_and_deploy_gh_release "miniflux" "miniflux/v2" "binary" "latest"
|
||||||
|
|
||||||
|
msg_info "Configuring Miniflux"
|
||||||
|
ADMIN_NAME=admin
|
||||||
|
ADMIN_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)"
|
||||||
|
cat <<EOF >/etc/miniflux.conf
|
||||||
|
# See https://miniflux.app/docs/configuration.html
|
||||||
|
DATABASE_URL=user=$PG_DB_USER password=$PG_DB_PASS dbname=$PG_DB_NAME sslmode=disable
|
||||||
|
CREATE_ADMIN=1
|
||||||
|
ADMIN_USERNAME=$ADMIN_NAME
|
||||||
|
ADMIN_PASSWORD=$ADMIN_PASS
|
||||||
|
LISTEN_ADDR=0.0.0.0:8080
|
||||||
|
EOF
|
||||||
|
{
|
||||||
|
echo "ADMIN_USERNAME: $ADMIN_NAME"
|
||||||
|
echo "ADMIN_PASSWORD: $ADMIN_PASS"
|
||||||
|
} >>~/miniflux.creds
|
||||||
|
$STD miniflux -migrate -config-file /etc/miniflux.conf
|
||||||
|
systemctl enable -q --now miniflux
|
||||||
|
msg_ok "Configured Miniflux"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
129
install/netvisor-install.sh
Normal file
129
install/netvisor-install.sh
Normal file
@@ -0,0 +1,129 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: vhsdream
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://github.com/mayanayza/netvisor
|
||||||
|
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt install -y \
|
||||||
|
build-essential \
|
||||||
|
libssl-dev \
|
||||||
|
pkg-config
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
PG_VERSION=17 setup_postgresql
|
||||||
|
NODE_VERSION="24" setup_nodejs
|
||||||
|
PG_DB_NAME="netvisor_db" PG_DB_USER="netvisor" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
|
||||||
|
|
||||||
|
fetch_and_deploy_gh_release "netvisor" "mayanayza/netvisor" "tarball" "latest" "/opt/netvisor"
|
||||||
|
|
||||||
|
TOOLCHAIN="$(grep "channel" /opt/netvisor/backend/rust-toolchain.toml | awk -F\" '{print $2}')"
|
||||||
|
RUST_TOOLCHAIN=$TOOLCHAIN setup_rust
|
||||||
|
|
||||||
|
msg_info "Creating frontend UI"
|
||||||
|
export PUBLIC_SERVER_HOSTNAME=default
|
||||||
|
export PUBLIC_SERVER_PORT=60072
|
||||||
|
cd /opt/netvisor/ui
|
||||||
|
$STD npm ci --no-fund --no-audit
|
||||||
|
$STD npm run build
|
||||||
|
msg_ok "Created frontend UI"
|
||||||
|
|
||||||
|
msg_info "Building Netvisor-server (patience)"
|
||||||
|
cd /opt/netvisor/backend
|
||||||
|
$STD cargo build --release --bin server
|
||||||
|
mv ./target/release/server /usr/bin/netvisor-server
|
||||||
|
msg_ok "Built Netvisor-server"
|
||||||
|
|
||||||
|
msg_info "Building Netvisor-daemon"
|
||||||
|
$STD cargo build --release --bin daemon
|
||||||
|
cp ./target/release/daemon /usr/bin/netvisor-daemon
|
||||||
|
msg_ok "Built Netvisor-daemon"
|
||||||
|
|
||||||
|
msg_info "Configuring server & daemon for first-run"
|
||||||
|
cat <<EOF >/opt/netvisor/.env
|
||||||
|
### - UI
|
||||||
|
PUBLIC_SERVER_HOSTNAME=default
|
||||||
|
PUBLIC_SERVER_PORT=60072
|
||||||
|
|
||||||
|
### - SERVER
|
||||||
|
NETVISOR_DATABASE_URL=postgresql://$PG_DB_USER:$PG_DB_PASS@localhost:5432/$PG_DB_NAME
|
||||||
|
NETVISOR_WEB_EXTERNAL_PATH="/opt/netvisor/ui/build"
|
||||||
|
NETVISOR_SERVER_PORT=60072
|
||||||
|
NETVISOR_LOG_LEVEL=info
|
||||||
|
NETVISOR_INTEGRATED_DAEMON_URL=http://127.0.0.1:60073
|
||||||
|
## - uncomment to disable signups
|
||||||
|
# NETVISOR_DISABLE_REGISTRATION=true
|
||||||
|
## - uncomment when behind reverse proxy
|
||||||
|
# NETVISOR_USE_SECURE_SESSION_COOKIES=true
|
||||||
|
|
||||||
|
### - OIDC (optional)
|
||||||
|
# NETVISOR_OIDC_ISSUER_URL=
|
||||||
|
# NETVISOR_OIDC_CLIENT_ID=
|
||||||
|
# NETVISOR_OIDC_CLIENT_SECRET=
|
||||||
|
# NETVISOR_OIDC_PROVIDER_NAME=
|
||||||
|
# NETVISOR_OIDC_REDIRECT_URL=
|
||||||
|
## - Callback URL for reference
|
||||||
|
# http://your-netvisor-domain:60072/api/auth/oidc/callback
|
||||||
|
|
||||||
|
### - INTEGRATED DAEMON
|
||||||
|
NETVISOR_SERVER_TARGET=127.0.0.1
|
||||||
|
NETVISOR_BIND_ADDRESS=0.0.0.0
|
||||||
|
NETVISOR_NAME="netvisor-daemon"
|
||||||
|
NETVISOR_HEARTBEAT_INTERVAL=30
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat <<EOF >/etc/systemd/system/netvisor-server.service
|
||||||
|
[Unit]
|
||||||
|
Description=NetVisor Network Discovery Server
|
||||||
|
After=network.target postgresql.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
EnvironmentFile=/opt/netvisor/.env
|
||||||
|
ExecStart=/usr/bin/netvisor-server
|
||||||
|
Restart=always
|
||||||
|
RestartSec=10
|
||||||
|
StandardOutput=journal
|
||||||
|
StandardError=journal
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
|
||||||
|
systemctl enable -q --now netvisor-server
|
||||||
|
sleep 5
|
||||||
|
NETWORK_ID="$(sudo -u postgres psql -1 -t -d $PG_DB_NAME -c 'SELECT id FROM networks;')"
|
||||||
|
API_KEY="$(sudo -u postgres psql -1 -t -d $PG_DB_NAME -c 'SELECT key from api_keys;')"
|
||||||
|
|
||||||
|
cat <<EOF >/etc/systemd/system/netvisor-daemon.service
|
||||||
|
[Unit]
|
||||||
|
Description=NetVisor Network Discovery Daemon
|
||||||
|
After=network.target netvisor-server.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
EnvironmentFile=/opt/netvisor/.env
|
||||||
|
ExecStart=/usr/bin/netvisor-daemon --server-target http://127.0.0.1 --server-port 60072 --network-id ${NETWORK_ID} --daemon-api-key ${API_KEY}
|
||||||
|
Restart=always
|
||||||
|
RestartSec=10
|
||||||
|
StandardOutput=journal
|
||||||
|
StandardError=journal
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
systemctl enable -q --now netvisor-daemon
|
||||||
|
msg_ok "Netvisor server & daemon configured and running"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
@@ -13,6 +13,10 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt install -y fping
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
PHP_VERSION="8.3" PHP_APACHE="YES" PHP_FPM="YES" PHP_MODULE="mysql,gmp,snmp,ldap,apcu" setup_php
|
PHP_VERSION="8.3" PHP_APACHE="YES" PHP_FPM="YES" PHP_MODULE="mysql,gmp,snmp,ldap,apcu" setup_php
|
||||||
|
|
||||||
msg_info "Installing PHP-PEAR"
|
msg_info "Installing PHP-PEAR"
|
||||||
@@ -26,6 +30,8 @@ MARIADB_DB_NAME="phpipam" MARIADB_DB_USER="phpipam" setup_mariadb_db
|
|||||||
fetch_and_deploy_gh_release "phpipam" "phpipam/phpipam" "prebuild" "latest" "/opt/phpipam" "phpipam-v*.zip"
|
fetch_and_deploy_gh_release "phpipam" "phpipam/phpipam" "prebuild" "latest" "/opt/phpipam" "phpipam-v*.zip"
|
||||||
|
|
||||||
msg_info "Installing phpIPAM"
|
msg_info "Installing phpIPAM"
|
||||||
|
# patch SCHEMA, during varchar l_name is to short in upstream (2025-11-15)
|
||||||
|
sed -i -E 's/`l_name`\s+varchar\([0-9]+\)/`l_name` varchar(128)/' /opt/phpipam/db/SCHEMA.sql
|
||||||
$STD mariadb -u root "${MARIADB_DB_NAME}" </opt/phpipam/db/SCHEMA.sql
|
$STD mariadb -u root "${MARIADB_DB_NAME}" </opt/phpipam/db/SCHEMA.sql
|
||||||
cp /opt/phpipam/config.dist.php /opt/phpipam/config.php
|
cp /opt/phpipam/config.dist.php /opt/phpipam/config.php
|
||||||
sed -i -e "s/\(\$disable_installer = \).*/\1true;/" \
|
sed -i -e "s/\(\$disable_installer = \).*/\1true;/" \
|
||||||
|
|||||||
79
install/splunk-enterprise-install.sh
Normal file
79
install/splunk-enterprise-install.sh
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: rcastley
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://www.splunk.com/en_us/download.html
|
||||||
|
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
echo -e "${TAB3}┌─────────────────────────────────────────────────────────────────────────┐"
|
||||||
|
echo -e "${TAB3}│ SPLUNK GENERAL TERMS │"
|
||||||
|
echo -e "${TAB3}└─────────────────────────────────────────────────────────────────────────┘"
|
||||||
|
echo ""
|
||||||
|
echo -e "${TAB3}Before proceeding with the Splunk Enterprise installation, you must"
|
||||||
|
echo -e "${TAB3}review and accept the Splunk General Terms."
|
||||||
|
echo ""
|
||||||
|
echo -e "${TAB3}Please review the terms at:"
|
||||||
|
echo -e "${TAB3}${GATEWAY}${BGN}https://www.splunk.com/en_us/legal/splunk-general-terms.html${CL}"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
echo -e "${TAB3}Do you accept the Splunk General Terms? (y/N): \c"
|
||||||
|
read -r response
|
||||||
|
case $response in
|
||||||
|
[Yy]|[Yy][Ee][Ss])
|
||||||
|
msg_ok "Terms accepted. Proceeding with installation..."
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
[Nn]|[Nn][Oo]|"")
|
||||||
|
msg_error "Terms not accepted. Installation cannot proceed."
|
||||||
|
msg_error "Please review the terms and run the script again if you wish to proceed."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
msg_error "Invalid response. Please enter 'y' for yes or 'n' for no."
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
msg_info "Setup Splunk Enterprise"
|
||||||
|
DOWNLOAD_URL=$(curl -s "https://www.splunk.com/en_us/download/splunk-enterprise.html" | grep -o 'data-link="[^"]*' | sed 's/data-link="//' | grep "https.*products/splunk/releases" | grep "\.deb$")
|
||||||
|
RELEASE=$(echo "$DOWNLOAD_URL" | sed 's|.*/releases/\([^/]*\)/.*|\1|')
|
||||||
|
$STD curl -fsSL -o "splunk-enterprise.deb" "$DOWNLOAD_URL" || {
|
||||||
|
msg_error "Failed to download Splunk Enterprise from the provided link."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
$STD dpkg -i "splunk-enterprise.deb"
|
||||||
|
rm -f "splunk-enterprise.deb"
|
||||||
|
msg_ok "Setup Splunk Enterprise v${RELEASE}"
|
||||||
|
|
||||||
|
msg_info "Creating Splunk admin user"
|
||||||
|
ADMIN_USER="admin"
|
||||||
|
ADMIN_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
||||||
|
{
|
||||||
|
echo "Splunk-Credentials"
|
||||||
|
echo "Username: $ADMIN_USER"
|
||||||
|
echo "Password: $ADMIN_PASS"
|
||||||
|
} >> ~/splunk.creds
|
||||||
|
|
||||||
|
cat > "/opt/splunk/etc/system/local/user-seed.conf" << EOF
|
||||||
|
[user_info]
|
||||||
|
USERNAME = $ADMIN_USER
|
||||||
|
PASSWORD = $ADMIN_PASS
|
||||||
|
EOF
|
||||||
|
msg_ok "Created Splunk admin user"
|
||||||
|
|
||||||
|
msg_info "Starting Service"
|
||||||
|
$STD /opt/splunk/bin/splunk start --accept-license --answer-yes --no-prompt
|
||||||
|
$STD /opt/splunk/bin/splunk enable boot-start
|
||||||
|
msg_ok "Started Service"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
@@ -27,9 +27,4 @@ bash <(curl -sL s5n.sh)
|
|||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
cleanup_lxc
|
||||||
msg_info "Cleaning up"
|
|
||||||
$STD apt -y autoremove
|
|
||||||
$STD apt -y autoclean
|
|
||||||
$STD apt -y clean
|
|
||||||
msg_ok "Cleaned"
|
|
||||||
|
|||||||
@@ -28,8 +28,6 @@ $STD npm install
|
|||||||
export NODE_ENV=production
|
export NODE_ENV=production
|
||||||
$STD npm run frontend:build
|
$STD npm run frontend:build
|
||||||
mv ./dist ./backend
|
mv ./dist ./backend
|
||||||
mv ./public/locales ./backend/dist
|
|
||||||
mv ./public/favicon.* ./backend/dist
|
|
||||||
msg_ok "Configured Tududi"
|
msg_ok "Configured Tududi"
|
||||||
|
|
||||||
msg_info "Creating env and database"
|
msg_info "Creating env and database"
|
||||||
@@ -37,15 +35,16 @@ DB_LOCATION="/opt/tududi-db"
|
|||||||
UPLOAD_DIR="/opt/tududi-uploads"
|
UPLOAD_DIR="/opt/tududi-uploads"
|
||||||
mkdir -p {"$DB_LOCATION","$UPLOAD_DIR"}
|
mkdir -p {"$DB_LOCATION","$UPLOAD_DIR"}
|
||||||
SECRET="$(openssl rand -hex 64)"
|
SECRET="$(openssl rand -hex 64)"
|
||||||
cat <<EOF >/opt/tududi/backend/.env
|
sed -e '/^NODE_ENV=/s/=.*$/=production/' \
|
||||||
TUDUDI_SESSION_SECRET=${SECRET}
|
-e 's/^TUDUDI_USER/# TUDUDI_USER/g' \
|
||||||
TUDUDI_ALLOWED_ORIGINS=<your tududi IP or FQDN>
|
-e "/_SECRET=/s/=.*$/=${SECRET}/" \
|
||||||
NODE_ENV=production
|
-e "/^# DB_FILE/s/^# //; \
|
||||||
DB_FILE=${DB_LOCATION}/production.sqlite3
|
\|DB_FILE|s|/path.*$|${DB_LOCATION}/production.sqlite3|" \
|
||||||
TUDUDI_UPLOAD_PATH=${UPLOAD_DIR}
|
-e "/^# TUDUDI_ALLOWED/s/^# //; \
|
||||||
DISABLE_TELEGRAM=true
|
\|_ORIGINS=|s|=.*$|=<your tududi IP or FDQN>|" \
|
||||||
DIABLE_SCHEDULER=false
|
-e "/^# TUDUDI_UPLOAD/s/^# //; \
|
||||||
EOF
|
\|UPLOAD_PATH=|s|=.*$|=${UPLOAD_DIR}|" \
|
||||||
|
/opt/tududi/backend/.env.example >/opt/tududi/backend/.env
|
||||||
export DB_FILE="${DB_LOCATION}/production.sqlite3"
|
export DB_FILE="${DB_LOCATION}/production.sqlite3"
|
||||||
$STD npm run db:init
|
$STD npm run db:init
|
||||||
msg_ok "Created env and database"
|
msg_ok "Created env and database"
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ else
|
|||||||
AGENT_SERVICE="zabbix-agent"
|
AGENT_SERVICE="zabbix-agent"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
systemctl restart zabbix-server
|
systemctl restart zabbix-server apache2
|
||||||
systemctl enable -q --now zabbix-server $AGENT_SERVICE apache2
|
systemctl enable -q --now zabbix-server $AGENT_SERVICE apache2
|
||||||
msg_ok "Started Services"
|
msg_ok "Started Services"
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ post_to_api() {
|
|||||||
"ram_size": $RAM_SIZE,
|
"ram_size": $RAM_SIZE,
|
||||||
"os_type": "$var_os",
|
"os_type": "$var_os",
|
||||||
"os_version": "$var_version",
|
"os_version": "$var_version",
|
||||||
"disableip6": "",
|
|
||||||
"nsapp": "$NSAPP",
|
"nsapp": "$NSAPP",
|
||||||
"method": "$METHOD",
|
"method": "$METHOD",
|
||||||
"pve_version": "$pve_version",
|
"pve_version": "$pve_version",
|
||||||
@@ -81,7 +80,6 @@ post_to_api_vm() {
|
|||||||
"ram_size": $RAM_SIZE,
|
"ram_size": $RAM_SIZE,
|
||||||
"os_type": "$var_os",
|
"os_type": "$var_os",
|
||||||
"os_version": "$var_version",
|
"os_version": "$var_version",
|
||||||
"disableip6": "",
|
|
||||||
"nsapp": "$NSAPP",
|
"nsapp": "$NSAPP",
|
||||||
"method": "$METHOD",
|
"method": "$METHOD",
|
||||||
"pve_version": "$pve_version",
|
"pve_version": "$pve_version",
|
||||||
|
|||||||
165
misc/tools.func
165
misc/tools.func
@@ -1214,7 +1214,7 @@ setup_deb822_repo() {
|
|||||||
local gpg_url="$2"
|
local gpg_url="$2"
|
||||||
local repo_url="$3"
|
local repo_url="$3"
|
||||||
local suite="$4"
|
local suite="$4"
|
||||||
local component="${5:-main}"
|
local component="${5-main}"
|
||||||
local architectures="${6-}" # optional
|
local architectures="${6-}" # optional
|
||||||
|
|
||||||
# Validate required parameters
|
# Validate required parameters
|
||||||
@@ -2788,7 +2788,7 @@ function setup_java() {
|
|||||||
|
|
||||||
# Validate INSTALLED_VERSION is not empty if matched
|
# Validate INSTALLED_VERSION is not empty if matched
|
||||||
local JDK_COUNT=0
|
local JDK_COUNT=0
|
||||||
JDK_COUNT=$(dpkg -l 2>/dev/null | grep -c "temurin-.*-jdk" || echo "0")
|
JDK_COUNT=$(dpkg -l 2>/dev/null | grep -c "temurin-.*-jdk" || true)
|
||||||
if [[ -z "$INSTALLED_VERSION" && "${JDK_COUNT:-0}" -gt 0 ]]; then
|
if [[ -z "$INSTALLED_VERSION" && "${JDK_COUNT:-0}" -gt 0 ]]; then
|
||||||
msg_warn "Found Temurin JDK but cannot determine version"
|
msg_warn "Found Temurin JDK but cannot determine version"
|
||||||
INSTALLED_VERSION="0"
|
INSTALLED_VERSION="0"
|
||||||
@@ -3117,7 +3117,8 @@ function setup_mariadb_db() {
|
|||||||
|
|
||||||
$STD mariadb -u root -e "FLUSH PRIVILEGES;"
|
$STD mariadb -u root -e "FLUSH PRIVILEGES;"
|
||||||
|
|
||||||
local CREDS_FILE="${MARIADB_DB_CREDS_FILE:-${HOME}/${APPLICATION}.creds}"
|
local app_name="${APPLICATION,,}"
|
||||||
|
local CREDS_FILE="${MARIADB_DB_CREDS_FILE:-${HOME}/${app_name}.creds}"
|
||||||
{
|
{
|
||||||
echo "MariaDB Credentials"
|
echo "MariaDB Credentials"
|
||||||
echo "Database: $MARIADB_DB_NAME"
|
echo "Database: $MARIADB_DB_NAME"
|
||||||
@@ -3805,10 +3806,73 @@ function setup_postgresql() {
|
|||||||
local SUITE
|
local SUITE
|
||||||
case "$DISTRO_CODENAME" in
|
case "$DISTRO_CODENAME" in
|
||||||
trixie | forky | sid)
|
trixie | forky | sid)
|
||||||
|
# For Debian Testing/Unstable, try PostgreSQL repo first, fallback to native packages
|
||||||
if verify_repo_available "https://apt.postgresql.org/pub/repos/apt" "trixie-pgdg"; then
|
if verify_repo_available "https://apt.postgresql.org/pub/repos/apt" "trixie-pgdg"; then
|
||||||
SUITE="trixie-pgdg"
|
SUITE="trixie-pgdg"
|
||||||
|
|
||||||
|
setup_deb822_repo \
|
||||||
|
"pgdg" \
|
||||||
|
"https://www.postgresql.org/media/keys/ACCC4CF8.asc" \
|
||||||
|
"https://apt.postgresql.org/pub/repos/apt" \
|
||||||
|
"$SUITE" \
|
||||||
|
"main"
|
||||||
|
|
||||||
|
if ! $STD apt update; then
|
||||||
|
msg_warn "Failed to update PostgreSQL repository, falling back to native packages"
|
||||||
|
SUITE=""
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
SUITE="bookworm-pgdg"
|
SUITE=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If no repo or packages not installable, use native Debian packages
|
||||||
|
if [[ -z "$SUITE" ]] || ! apt-cache show "postgresql-${PG_VERSION}" 2>/dev/null | grep -q "Version:"; then
|
||||||
|
msg_info "Using native Debian packages for $DISTRO_CODENAME"
|
||||||
|
|
||||||
|
# Install ssl-cert dependency if available
|
||||||
|
if apt-cache search "^ssl-cert$" 2>/dev/null | grep -q .; then
|
||||||
|
$STD apt install -y ssl-cert 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! $STD apt install -y postgresql postgresql-client 2>/dev/null; then
|
||||||
|
msg_error "Failed to install native PostgreSQL packages"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! command -v psql >/dev/null 2>&1; then
|
||||||
|
msg_error "PostgreSQL installed but psql command not found"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Restore database backup if we upgraded from previous version
|
||||||
|
if [[ -n "$CURRENT_PG_VERSION" ]]; then
|
||||||
|
msg_info "Restoring PostgreSQL databases from backup..."
|
||||||
|
$STD runuser -u postgres -- psql </var/lib/postgresql/backup_$(date +%F)_v${CURRENT_PG_VERSION}.sql 2>/dev/null || {
|
||||||
|
msg_warn "Failed to restore database backup - this may be expected for major version upgrades"
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
|
$STD systemctl enable --now postgresql 2>/dev/null || true
|
||||||
|
|
||||||
|
# Get actual installed version
|
||||||
|
INSTALLED_VERSION="$(psql -V 2>/dev/null | awk '{print $3}' | cut -d. -f1)"
|
||||||
|
|
||||||
|
# Add PostgreSQL binaries to PATH
|
||||||
|
if ! grep -q '/usr/lib/postgresql' /etc/environment 2>/dev/null; then
|
||||||
|
echo 'PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/'"${INSTALLED_VERSION}"'/bin"' >/etc/environment
|
||||||
|
fi
|
||||||
|
|
||||||
|
cache_installed_version "postgresql" "$INSTALLED_VERSION"
|
||||||
|
msg_ok "Setup PostgreSQL $INSTALLED_VERSION (native)"
|
||||||
|
|
||||||
|
# Install optional modules if specified
|
||||||
|
if [[ -n "$PG_MODULES" ]]; then
|
||||||
|
IFS=',' read -ra MODULES <<<"$PG_MODULES"
|
||||||
|
for module in "${MODULES[@]}"; do
|
||||||
|
$STD apt install -y "postgresql-${INSTALLED_VERSION}-${module}" 2>/dev/null || true
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@@ -3972,7 +4036,8 @@ function setup_postgresql_db() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Save credentials
|
# Save credentials
|
||||||
local CREDS_FILE="${PG_DB_CREDS_FILE:-${HOME}/${APPLICATION}.creds}"
|
local app_name="${APPLICATION,,}"
|
||||||
|
local CREDS_FILE="${PG_DB_CREDS_FILE:-${HOME}/${app_name}.creds}"
|
||||||
{
|
{
|
||||||
echo "PostgreSQL Credentials"
|
echo "PostgreSQL Credentials"
|
||||||
echo "Database: $PG_DB_NAME"
|
echo "Database: $PG_DB_NAME"
|
||||||
@@ -4341,31 +4406,63 @@ function setup_rust() {
|
|||||||
}
|
}
|
||||||
export PATH="$CARGO_BIN:$PATH"
|
export PATH="$CARGO_BIN:$PATH"
|
||||||
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >>"$HOME/.profile"
|
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >>"$HOME/.profile"
|
||||||
|
|
||||||
|
# Verify installation
|
||||||
|
if ! command -v rustc >/dev/null 2>&1; then
|
||||||
|
msg_error "Rust binary not found after installation"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
local RUST_VERSION=$(rustc --version 2>/dev/null | awk '{print $2}')
|
local RUST_VERSION=$(rustc --version 2>/dev/null | awk '{print $2}')
|
||||||
|
if [[ -z "$RUST_VERSION" ]]; then
|
||||||
|
msg_error "Failed to determine Rust version"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
cache_installed_version "rust" "$RUST_VERSION"
|
cache_installed_version "rust" "$RUST_VERSION"
|
||||||
msg_ok "Setup Rust $RUST_VERSION"
|
msg_ok "Setup Rust $RUST_VERSION"
|
||||||
else
|
else
|
||||||
# Scenario 2: Rustup already installed - update/maintain
|
# Scenario 2: Rustup already installed - update/maintain
|
||||||
msg_info "Update Rust ($RUST_TOOLCHAIN)"
|
msg_info "Update Rust ($RUST_TOOLCHAIN)"
|
||||||
$STD rustup install "$RUST_TOOLCHAIN" || {
|
|
||||||
msg_error "Failed to install Rust toolchain $RUST_TOOLCHAIN"
|
# Ensure default toolchain is set
|
||||||
return 1
|
$STD rustup default "$RUST_TOOLCHAIN" 2>/dev/null || {
|
||||||
}
|
# If default fails, install the toolchain first
|
||||||
$STD rustup default "$RUST_TOOLCHAIN" || {
|
$STD rustup install "$RUST_TOOLCHAIN" || {
|
||||||
msg_error "Failed to set default Rust toolchain"
|
msg_error "Failed to install Rust toolchain $RUST_TOOLCHAIN"
|
||||||
return 1
|
return 1
|
||||||
|
}
|
||||||
|
$STD rustup default "$RUST_TOOLCHAIN" || {
|
||||||
|
msg_error "Failed to set default Rust toolchain"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Update to latest patch version
|
||||||
$STD rustup update "$RUST_TOOLCHAIN" || true
|
$STD rustup update "$RUST_TOOLCHAIN" || true
|
||||||
|
|
||||||
|
# Ensure PATH is updated for current shell session
|
||||||
|
export PATH="$CARGO_BIN:$PATH"
|
||||||
|
|
||||||
local RUST_VERSION=$(rustc --version 2>/dev/null | awk '{print $2}')
|
local RUST_VERSION=$(rustc --version 2>/dev/null | awk '{print $2}')
|
||||||
|
if [[ -z "$RUST_VERSION" ]]; then
|
||||||
|
msg_error "Failed to determine Rust version after update"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
cache_installed_version "rust" "$RUST_VERSION"
|
cache_installed_version "rust" "$RUST_VERSION"
|
||||||
msg_ok "Update Rust $RUST_VERSION"
|
msg_ok "Update Rust $RUST_VERSION"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install global crates
|
# Install global crates
|
||||||
if [[ -n "$RUST_CRATES" ]]; then
|
if [[ -n "$RUST_CRATES" ]]; then
|
||||||
|
msg_info "Processing Rust crates: $RUST_CRATES"
|
||||||
IFS=',' read -ra CRATES <<<"$RUST_CRATES"
|
IFS=',' read -ra CRATES <<<"$RUST_CRATES"
|
||||||
for crate in "${CRATES[@]}"; do
|
for crate in "${CRATES[@]}"; do
|
||||||
local NAME VER INSTALLED_VER
|
crate=$(echo "$crate" | xargs) # trim whitespace
|
||||||
|
[[ -z "$crate" ]] && continue # skip empty entries
|
||||||
|
|
||||||
|
local NAME VER INSTALLED_VER CRATE_LIST
|
||||||
if [[ "$crate" == *"@"* ]]; then
|
if [[ "$crate" == *"@"* ]]; then
|
||||||
NAME="${crate%@*}"
|
NAME="${crate%@*}"
|
||||||
VER="${crate##*@}"
|
VER="${crate##*@}"
|
||||||
@@ -4374,18 +4471,50 @@ function setup_rust() {
|
|||||||
VER=""
|
VER=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
INSTALLED_VER=$(cargo install --list 2>/dev/null | awk "/^$NAME v[0-9]/ {print \$2}" | tr -d 'v')
|
# Get list of installed crates once
|
||||||
|
CRATE_LIST=$(cargo install --list 2>/dev/null || echo "")
|
||||||
|
|
||||||
|
# Check if already installed
|
||||||
|
if echo "$CRATE_LIST" | grep -q "^${NAME} "; then
|
||||||
|
INSTALLED_VER=$(echo "$CRATE_LIST" | grep "^${NAME} " | head -1 | awk '{print $2}' | tr -d 'v:')
|
||||||
|
|
||||||
if [[ -n "$INSTALLED_VER" ]]; then
|
|
||||||
if [[ -n "$VER" && "$VER" != "$INSTALLED_VER" ]]; then
|
if [[ -n "$VER" && "$VER" != "$INSTALLED_VER" ]]; then
|
||||||
$STD cargo install "$NAME" --version "$VER" --force
|
msg_info "Upgrading $NAME from v$INSTALLED_VER to v$VER"
|
||||||
|
$STD cargo install "$NAME" --version "$VER" --force || {
|
||||||
|
msg_error "Failed to install $NAME@$VER"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
msg_ok "Upgraded $NAME to v$VER"
|
||||||
elif [[ -z "$VER" ]]; then
|
elif [[ -z "$VER" ]]; then
|
||||||
$STD cargo install "$NAME" --force
|
msg_info "Upgrading $NAME to latest"
|
||||||
|
$STD cargo install "$NAME" --force || {
|
||||||
|
msg_error "Failed to upgrade $NAME"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
local NEW_VER=$(cargo install --list 2>/dev/null | grep "^${NAME} " | head -1 | awk '{print $2}' | tr -d 'v:')
|
||||||
|
msg_ok "Upgraded $NAME to v$NEW_VER"
|
||||||
|
else
|
||||||
|
msg_ok "$NAME v$INSTALLED_VER already installed"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
$STD cargo install "$NAME" ${VER:+--version "$VER"}
|
msg_info "Installing $NAME${VER:+@$VER}"
|
||||||
|
if [[ -n "$VER" ]]; then
|
||||||
|
$STD cargo install "$NAME" --version "$VER" || {
|
||||||
|
msg_error "Failed to install $NAME@$VER"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
msg_ok "Installed $NAME v$VER"
|
||||||
|
else
|
||||||
|
$STD cargo install "$NAME" || {
|
||||||
|
msg_error "Failed to install $NAME"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
local NEW_VER=$(cargo install --list 2>/dev/null | grep "^${NAME} " | head -1 | awk '{print $2}' | tr -d 'v:')
|
||||||
|
msg_ok "Installed $NAME v$NEW_VER"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
msg_ok "Processed Rust crates"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ INSTALL_PATH="/usr/local/bin/filebrowser"
|
|||||||
CONFIG_PATH="/usr/local/community-scripts/fq-config.yaml"
|
CONFIG_PATH="/usr/local/community-scripts/fq-config.yaml"
|
||||||
DEFAULT_PORT=8080
|
DEFAULT_PORT=8080
|
||||||
SRC_DIR="/"
|
SRC_DIR="/"
|
||||||
|
TMP_BIN="/tmp/filebrowser.$$"
|
||||||
|
|
||||||
# Get primary IP
|
# Get primary IP
|
||||||
IFACE=$(ip -4 route | awk '/default/ {print $5; exit}')
|
IFACE=$(ip -4 route | awk '/default/ {print $5; exit}')
|
||||||
@@ -109,8 +110,9 @@ if [[ -f "$INSTALL_PATH" ]]; then
|
|||||||
read -r update_prompt
|
read -r update_prompt
|
||||||
if [[ "${update_prompt,,}" =~ ^(y|yes)$ ]]; then
|
if [[ "${update_prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||||
msg_info "Updating ${APP}"
|
msg_info "Updating ${APP}"
|
||||||
curl -fsSL https://github.com/gtsteffaniak/filebrowser/releases/latest/download/linux-amd64-filebrowser -o "$INSTALL_PATH"
|
curl -fsSL https://github.com/gtsteffaniak/filebrowser/releases/latest/download/linux-amd64-filebrowser -o "$TMP_BIN"
|
||||||
chmod +x "$INSTALL_PATH"
|
chmod +x "$TMP_BIN"
|
||||||
|
mv -f "$TMP_BIN" /usr/local/bin/filebrowser
|
||||||
msg_ok "Updated ${APP}"
|
msg_ok "Updated ${APP}"
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
@@ -133,8 +135,9 @@ fi
|
|||||||
|
|
||||||
msg_info "Installing ${APP} on ${OS}"
|
msg_info "Installing ${APP} on ${OS}"
|
||||||
$PKG_MANAGER curl ffmpeg &>/dev/null
|
$PKG_MANAGER curl ffmpeg &>/dev/null
|
||||||
curl -fsSL https://github.com/gtsteffaniak/filebrowser/releases/latest/download/linux-amd64-filebrowser -o "$INSTALL_PATH"
|
curl -fsSL https://github.com/gtsteffaniak/filebrowser/releases/latest/download/linux-amd64-filebrowser -o "$TMP_BIN"
|
||||||
chmod +x "$INSTALL_PATH"
|
chmod +x "$TMP_BIN"
|
||||||
|
mv -f "$TMP_BIN" /usr/local/bin/filebrowser
|
||||||
msg_ok "Installed ${APP}"
|
msg_ok "Installed ${APP}"
|
||||||
|
|
||||||
msg_info "Preparing configuration directory"
|
msg_info "Preparing configuration directory"
|
||||||
|
|||||||
Reference in New Issue
Block a user