This commit is contained in:
CanbiZ 2025-09-15 15:38:03 +02:00
parent 3f69160fb9
commit eed916b6cc
51 changed files with 656 additions and 661 deletions

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os
@ -135,7 +135,7 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
sudo su sudo su
$STD curl -L -o /etc/nginx/funkwhale_proxy.conf "https://dev.funkwhale.audio/funkwhale/funkwhale/raw/$FUNKWHALE_VERSION/deploy/funkwhale_proxy.conf" $STD curl -L -o /etc/nginx/funkwhale_proxy.conf "https://dev.funkwhale.audio/funkwhale/funkwhale/raw/$FUNKWHALE_VERSION/deploy/funkwhale_proxy.conf"
$STD curl -L -o /etc/nginx/sites-available/funkwhale.template "https://dev.funkwhale.audio/funkwhale/funkwhale/raw/$FUNKWHALE_VERSION/deploy/nginx.template" $STD curl -L -o /etc/nginx/sites-available/funkwhale.template "https://dev.funkwhale.audio/funkwhale/funkwhale/raw/$FUNKWHALE_VERSION/deploy/nginx.template"
$STD set -a && source /opt/funkwhale/config/.env && set +a envsubst "`env | awk -F = '{printf \" $%s\", $$1}'`" \ $STD set -a && source /opt/funkwhale/config/.env && set +a envsubst "$(env | awk -F = '{printf \" $%s\", $$1}')" \
</etc/nginx/sites-available/funkwhale.template \ </etc/nginx/sites-available/funkwhale.template \
>/etc/nginx/sites-available/funkwhale.conf >/etc/nginx/sites-available/funkwhale.conf
$STD grep '${' /etc/nginx/sites-available/funkwhale.conf $STD grep '${' /etc/nginx/sites-available/funkwhale.conf

View File

@ -9,7 +9,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -9,7 +9,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -9,7 +9,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -9,7 +9,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -10,7 +10,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@ source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -7,7 +7,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os
@ -135,7 +135,6 @@ EOF
systemctl restart postgresql systemctl restart postgresql
msg_ok "Installed PostgreSQL" msg_ok "Installed PostgreSQL"
msg_info "Setup TimescaleDB" msg_info "Setup TimescaleDB"
echo "deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/timescaledb.list echo "deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/timescaledb.list
wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/timescaledb.gpg wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/timescaledb.gpg

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -7,7 +7,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os
@ -31,7 +31,6 @@ $STD apt-get install -y \
#ocrmypdf #ocrmypdf
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
setup_gs setup_gs
JAVA_VERSION="21" setup_java JAVA_VERSION="21" setup_java
POSTGRES_VERSION="16" setup_postgresql POSTGRES_VERSION="16" setup_postgresql
@ -55,13 +54,11 @@ $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC';"
} >>~/docspell.creds } >>~/docspell.creds
msg_ok "Set up PostgreSQL Database" msg_ok "Set up PostgreSQL Database"
fetch_and_deploy_gh_release "docspell-joex" "eikek/docspell" "binary" "latest" "/opt/docspell-joex" "docspell-joex_*all.deb" fetch_and_deploy_gh_release "docspell-joex" "eikek/docspell" "binary" "latest" "/opt/docspell-joex" "docspell-joex_*all.deb"
fetch_and_deploy_gh_release "docspell-restserver" "eikek/docspell" "binary" "latest" "/opt/docspell-restserver" "docspell-restserver_*all.deb" fetch_and_deploy_gh_release "docspell-restserver" "eikek/docspell" "binary" "latest" "/opt/docspell-restserver" "docspell-restserver_*all.deb"
fetch_and_deploy_gh_release "docspell-dsc" "docspell/dsc" "singlefile" "latest" "/usr/bin" "dsc" fetch_and_deploy_gh_release "docspell-dsc" "docspell/dsc" "singlefile" "latest" "/usr/bin" "dsc"
fetch_and_deploy_gh_release "apache-solr" "apache/solr" "tarball" "latest" "/opt/docspell" fetch_and_deploy_gh_release "apache-solr" "apache/solr" "tarball" "latest" "/opt/docspell"
msg_info "Setup Docspell" msg_info "Setup Docspell"
ln -s /etc/docspell-joex /opt/docspell/docspell-joex && ln -s /etc/docspell-restserver /opt/docspell/docspell-restserver && ln -s /usr/bin/dsc /opt/docspell/dsc ln -s /etc/docspell-joex /opt/docspell/docspell-joex && ln -s /etc/docspell-restserver /opt/docspell/docspell-restserver && ln -s /usr/bin/dsc /opt/docspell/dsc
sed -i \ sed -i \

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -12,7 +12,7 @@ INSTALL_PATH="/opt/sng_freepbx_debian_install.sh"
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os
@ -69,8 +69,8 @@ if [[ $ONLY_OPENSOURCE == "yes" ]]; then
com_list=$(fwconsole ma list) com_list=$(fwconsole ma list)
end_count=$(awk '/Commercial/ {count++} END {print count + 0}' <<<"$com_list") end_count=$(awk '/Commercial/ {count++} END {print count + 0}' <<<"$com_list")
awk '/Commercial/ {found=1} END {exit !found}' <<<"$com_list" || break awk '/Commercial/ {found=1} END {exit !found}' <<<"$com_list" || break
if [[ "$REMOVE_FIREWALL" == "no" ]] && \ if [[ "$REMOVE_FIREWALL" == "no" ]] &&
[[ $end_count -eq 1 ]] && \ [[ $end_count -eq 1 ]] &&
[[ $(awk '/Commercial/ {print $2}' <<<"$com_list") == "sysadmin" ]]; then [[ $(awk '/Commercial/ {print $2}' <<<"$com_list") == "sysadmin" ]]; then
break break
fi fi

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -9,7 +9,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -7,7 +7,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -7,7 +7,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -9,7 +9,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os
@ -20,7 +20,6 @@ $STD apt-get install -y \
ca-certificates ca-certificates
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
setup_clickhouse setup_clickhouse
PG_VERSION=17 setup_postgresql PG_VERSION=17 setup_postgresql
NODE_VERSION="20" NODE_MODULE="next" setup_nodejs NODE_VERSION="20" NODE_MODULE="next" setup_nodejs

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -8,7 +8,7 @@
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os

View File

@ -7,7 +7,7 @@
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
color color
verb_ip6 verb_ip6
catch_errors init_error_traps
setting_up_container setting_up_container
network_check network_check
update_os update_os