From 230653102101c855fca0c15b2d0c2599bc0aef22 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 24 Mar 2025 14:20:56 +0100 Subject: [PATCH] [core] Rebase Scripts (formatting, highlighting & remove old deps) (#3378) * Big Refactor: Remove Deps / Formatting & Correct End Of Line Sequence * f --- ct/ghost.sh | 6 +-- ct/gitea.sh | 2 +- ct/glance.sh | 2 +- ct/gokapi.sh | 2 +- ct/hev-socks5-server.sh | 2 +- install/2fauth-install.sh | 37 ++++++------- install/actualbudget-install.sh | 7 +-- install/adguard-install.sh | 8 +-- install/adventurelog-install.sh | 35 ++++++------ install/agentdvr-install.sh | 5 +- install/alpine-docker-install.sh | 2 +- install/alpine-grafana-install.sh | 4 +- install/alpine-install.sh | 2 +- install/alpine-it-tools-install.sh | 4 +- install/alpine-nextcloud-install.sh | 4 +- install/alpine-redis-install.sh | 6 +-- install/alpine-vaultwarden-install.sh | 4 +- install/alpine-zigbee2mqtt-install.sh | 2 +- install/apache-cassandra-install.sh | 5 +- install/apache-couchdb-install.sh | 15 +++--- install/apache-guacamole-install.sh | 53 +++++++++---------- install/apache-tika-install.sh | 6 +-- install/apache-tomcat-install.sh | 3 -- install/apt-cacher-ng-install.sh | 8 +-- install/archivebox-install.sh | 9 ++-- install/aria2-install.sh | 10 +--- install/audiobookshelf-install.sh | 5 +- install/authelia-install.sh | 15 ++---- install/authentik-install.sh | 5 +- install/autobrr-install.sh | 8 +-- install/baikal-install.sh | 25 ++++----- install/barcode-buddy-install.sh | 5 +- install/bazarr-install.sh | 10 +--- install/beszel-install.sh | 16 ++---- install/blocky-install.sh | 10 +--- install/boltdiy-install.sh | 5 +- install/bookstack-install.sh | 27 +++++----- install/bunkerweb-install.sh | 7 +-- install/bytestash-install.sh | 3 -- install/caddy-install.sh | 5 +- install/calibre-web-install.sh | 5 +- install/casaos-install.sh | 12 ++--- install/changedetection-install.sh | 5 +- install/channels-install.sh | 5 +- install/checkmk-install.sh | 9 +--- install/cloudflared-install.sh | 8 +-- install/cockpit-install.sh | 8 +-- install/commafeed-install.sh | 7 +-- install/cosmos-install.sh | 14 ++--- install/crafty-controller-install.sh | 15 +++--- install/cronicle-install.sh | 8 +-- install/cross-seed-install.sh | 8 +-- install/cryptpad-install.sh | 3 -- install/daemonsync-install.sh | 5 +- install/dashy-install.sh | 5 +- install/debian-install.sh | 10 +--- install/deconz-install.sh | 8 +-- install/deluge-install.sh | 5 +- install/docker-install.sh | 6 --- install/dockge-install.sh | 8 +-- install/docmost-install.sh | 21 ++++---- install/dolibarr-install.sh | 11 ++-- install/dotnetaspwebapi-install.sh | 13 ++--- install/duplicati-install.sh | 11 ++-- install/elementsynapse-install.sh | 6 +-- install/emby-install.sh | 8 +-- install/emqx-install.sh | 8 +-- install/ersatztv-install.sh | 7 --- install/esphome-install.sh | 3 -- install/evcc-install.sh | 11 ++-- install/excalidraw-install.sh | 7 +-- install/fenrus-install.sh | 5 +- install/fhem-install.sh | 5 +- install/firefly-install.sh | 10 ++-- install/flaresolverr-install.sh | 7 +-- install/flowiseai-install.sh | 5 +- install/fluid-calendar-install.sh | 17 +++--- install/forgejo-install.sh | 7 +-- install/freshrss-install.sh | 16 +++--- install/frigate-install.sh | 10 ++-- install/ghost-install.sh | 16 +++--- install/gitea-install.sh | 7 +-- install/glance-install.sh | 10 +--- install/glpi-install.sh | 21 ++++---- install/go2rtc-install.sh | 8 +-- install/gokapi-install.sh | 10 +--- install/gomft-install.sh | 3 -- install/gotify-install.sh | 10 +--- install/grafana-install.sh | 5 +- install/graylog-install.sh | 18 +++---- install/grist-install.sh | 5 +- install/grocy-install.sh | 5 +- install/habitica-install.sh | 3 -- install/headscale-install.sh | 8 +-- install/heimdall-dashboard-install.sh | 5 +- install/hev-socks5-server-install.sh | 11 +--- install/hivemq-install.sh | 5 +- install/hoarder-install.sh | 21 ++++---- install/homarr-install.sh | 7 +-- install/homeassistant-core-install.sh | 5 +- install/homeassistant-install.sh | 6 --- install/homebox-install.sh | 9 +--- install/homebridge-install.sh | 5 +- install/homepage-install.sh | 9 ++-- install/homer-install.sh | 5 +- install/hyperhdr-install.sh | 5 +- install/hyperion-install.sh | 5 +- install/influxdb-install.sh | 9 ++-- install/inspircd-install.sh | 8 --- install/inventree-install.sh | 7 +-- install/iobroker-install.sh | 5 +- install/iventoy-install.sh | 8 +-- install/jackett-install.sh | 8 +-- install/jellyfin-install.sh | 9 ++-- install/jellyseerr-install.sh | 5 +- install/jenkins-install.sh | 8 +-- install/jupyternotebook-install.sh | 3 -- install/kavita-install.sh | 8 +-- install/keycloak-install.sh | 6 +-- install/kimai-install.sh | 19 +++---- install/koillection-install.sh | 32 +++++------ install/kometa-install.sh | 9 +--- install/komga-install.sh | 8 +-- install/komodo-install.sh | 37 ++++++------- install/kubo-install.sh | 5 +- install/lazylibrarian-install.sh | 5 +- install/lidarr-install.sh | 5 +- install/linkwarden-install.sh | 19 +++---- install/listmonk-install.sh | 20 +++---- install/lldap-install.sh | 5 +- install/lubelogger-install.sh | 11 +--- install/mafl-install.sh | 5 +- install/magicmirror-install.sh | 8 +-- install/mariadb-install.sh | 30 +++++------ install/matterbridge-install.sh | 7 +-- install/mattermost-install.sh | 19 +++---- install/mediamtx-install.sh | 5 +- install/medusa-install.sh | 6 +-- install/memos-install.sh | 9 ++-- install/meshcentral-install.sh | 5 +- install/metube-install.sh | 7 +-- install/minio-install.sh | 11 +--- install/mongodb-install.sh | 7 +-- install/monica-install.sh | 24 ++++----- install/motioneye-install.sh | 5 +- install/mqtt-install.sh | 5 +- install/mylar3-install.sh | 12 ++--- install/myspeed-install.sh | 5 +- install/mysql-install.sh | 39 +++++++------- install/n8n-install.sh | 5 +- install/navidrome-install.sh | 5 +- install/neo4j-install.sh | 7 +-- install/netbox-install.sh | 29 +++++----- install/nextcloudpi-install.sh | 9 +--- install/nextpvr-install.sh | 7 +-- install/nginxproxymanager-install.sh | 3 -- install/nocodb-install.sh | 8 +-- install/node-red-install.sh | 5 +- install/nodebb-install.sh | 35 ++++++------ install/notifiarr-install.sh | 5 +- install/npmplus-install.sh | 1 - install/ntfy-install.sh | 7 +-- install/nxwitness-install.sh | 5 +- install/nzbget-install.sh | 6 +-- install/octoprint-install.sh | 9 ++-- install/ollama-install.sh | 5 +- install/omada-install.sh | 4 +- install/ombi-install.sh | 8 +-- install/omv-install.sh | 6 +-- install/onedev-install.sh | 4 -- install/opengist-install.sh | 6 +-- install/openhab-install.sh | 7 +-- install/openobserve-install.sh | 8 +-- install/openwebui-install.sh | 5 +- install/outline-install.sh | 13 ++--- install/overseerr-install.sh | 5 +- install/owncast-install.sh | 5 +- install/pairdrop-install.sh | 5 +- install/paperless-ai-install.sh | 7 +-- install/paperless-gpt-install.sh | 3 -- install/paperless-ngx-install.sh | 7 +-- install/part-db-install.sh | 28 +++++----- install/paymenter-install.sh | 5 +- install/peanut-install.sh | 5 +- install/pelican-panel-install.sh | 15 +++--- install/pelican-wings-install.sh | 9 +--- install/petio-install.sh | 11 ++-- install/pf2etools-install.sh | 7 +-- install/photoprism-install.sh | 5 +- install/phpipam-install.sh | 27 +++++----- install/pialert-install.sh | 8 +-- install/pihole-install.sh | 6 +-- install/pingvin-install.sh | 3 -- install/plant-it-install.sh | 3 -- install/plex-install.sh | 5 +- install/pocketbase-install.sh | 8 +-- install/pocketid-install.sh | 7 +-- install/podman-homeassistant-install.sh | 22 +++----- install/podman-install.sh | 23 +++----- install/postgresql-install.sh | 5 +- install/privatebin-install.sh | 5 +- install/projectsend-install.sh | 29 +++++----- install/prometheus-alertmanager-install.sh | 9 +--- install/prometheus-install.sh | 9 +--- ...ometheus-paperless-ngx-exporter-install.sh | 11 +--- install/prometheus-pve-exporter-install.sh | 11 +--- install/prowlarr-install.sh | 5 +- install/proxmox-backup-server-install.sh | 8 +-- install/proxmox-datacenter-manager-install.sh | 8 +-- install/proxmox-mail-gateway-install.sh | 12 +---- install/ps5-mqtt-install.sh | 10 ++-- install/pterodactyl-panel-install.sh | 27 +++++----- install/pterodactyl-wings-install.sh | 9 +--- install/qbittorrent-install.sh | 8 +-- install/rabbitmq-install.sh | 7 +-- install/radarr-install.sh | 3 -- install/radicale-install.sh | 3 -- install/rdtclient-install.sh | 7 --- install/readarr-install.sh | 5 +- install/readeck-install.sh | 8 +-- install/recyclarr-install.sh | 5 +- install/redis-install.sh | 5 +- install/revealjs-install.sh | 6 +-- install/rtsptoweb-install.sh | 5 +- install/runtipi-install.sh | 10 +--- install/rustdeskserver-install.sh | 11 +--- install/sabnzbd-install.sh | 5 +- install/seafile-install.sh | 20 +++---- install/searxng-install.sh | 15 +++--- install/seelf-install.sh | 19 ++++--- install/semaphore-install.sh | 5 +- install/sftpgo-install.sh | 5 +- install/shinobi-install.sh | 11 ++-- install/silverbullet-install.sh | 7 --- install/smokeping-install.sh | 8 +-- install/snipeit-install.sh | 3 -- install/sonarr-install.sh | 7 +-- install/spoolman-install.sh | 5 +- install/sqlserver2022-install.sh | 3 -- install/stirling-pdf-install.sh | 7 +-- install/suwayomiserver-install.sh | 7 +-- install/syncthing-install.sh | 5 +- install/tandoor-install.sh | 21 ++++---- install/tasmoadmin-install.sh | 5 +- install/tasmocompiler-install.sh | 7 +-- install/tautulli-install.sh | 5 +- install/tdarr-install.sh | 5 +- install/technitiumdns-install.sh | 8 +-- install/teddycloud-install.sh | 6 +-- install/the-lounge-install.sh | 6 +-- install/threadfin-install.sh | 5 +- install/tianji-install.sh | 9 ++-- install/traccar-install.sh | 10 +--- install/traefik-install.sh | 6 +-- install/transmission-install.sh | 9 +--- install/trilium-install.sh | 9 +--- install/typesense-install.sh | 11 +--- install/ubuntu-install.sh | 8 +-- install/umami-install.sh | 5 +- install/umbrel-install.sh | 10 +--- install/unbound-install.sh | 9 +--- install/unifi-install.sh | 7 +-- install/unmanic-install.sh | 7 +-- install/uptimekuma-install.sh | 5 +- install/urbackupserver-install.sh | 5 +- install/vaultwarden-install.sh | 5 +- install/victoriametrics-install.sh | 7 --- install/vikunja-install.sh | 8 +-- install/wallos-install.sh | 13 ++--- install/wastebin-install.sh | 7 --- install/watcharr-install.sh | 7 +-- install/watchyourlan-install.sh | 4 +- install/wavelog-install.sh | 16 +++--- install/web-check-install.sh | 13 ++--- install/wger-install.sh | 13 ++--- install/whisparr-install.sh | 7 +-- install/whoogle-install.sh | 8 +-- install/wikijs-install.sh | 15 +++--- install/wireguard-install.sh | 7 +-- install/wordpress-install.sh | 28 +++++----- install/yt-dlp-webui-install.sh | 6 +-- install/yunohost-install.sh | 3 -- install/zabbix-install.sh | 7 --- install/zammad-install.sh | 7 +-- install/zerotier-one-install.sh | 20 +++---- install/zigbee2mqtt-install.sh | 5 +- install/zipline-install.sh | 7 +-- install/zitadel-install.sh | 33 +++++------- install/zoraxy-install.sh | 10 +--- install/zwave-js-ui-install.sh | 11 +--- 290 files changed, 794 insertions(+), 1891 deletions(-) diff --git a/ct/ghost.sh b/ct/ghost.sh index 5aa325317..bb50897ee 100644 --- a/ct/ghost.sh +++ b/ct/ghost.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -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) # Copyright (c) 2021-2025 community-scripts ORG # Author: fabrice1236 # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE @@ -25,7 +25,7 @@ function update_script() { check_container_resources msg_info "Updating ${APP} LXC" - if command -v ghost &> /dev/null; then + if command -v ghost &>/dev/null; then current_version=$(ghost version | grep 'Ghost-CLI version' | awk '{print $3}') latest_version=$(npm show ghost-cli version) if [ "$current_version" != "$latest_version" ]; then @@ -49,4 +49,4 @@ 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}:2368${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:2368${CL}" diff --git a/ct/gitea.sh b/ct/gitea.sh index 975855fb7..4c09fdb0c 100644 --- a/ct/gitea.sh +++ b/ct/gitea.sh @@ -46,4 +46,4 @@ 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}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" diff --git a/ct/glance.sh b/ct/glance.sh index 448193ed4..88552383f 100644 --- a/ct/glance.sh +++ b/ct/glance.sh @@ -64,4 +64,4 @@ 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}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}" diff --git a/ct/gokapi.sh b/ct/gokapi.sh index 740160720..74ff5c04d 100644 --- a/ct/gokapi.sh +++ b/ct/gokapi.sh @@ -38,4 +38,4 @@ 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}:53842/setup${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:53842/setup${CL}" diff --git a/ct/hev-socks5-server.sh b/ct/hev-socks5-server.sh index f439d4284..84e9bd287 100644 --- a/ct/hev-socks5-server.sh +++ b/ct/hev-socks5-server.sh @@ -61,4 +61,4 @@ msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it with a SOCKS5 client using the following URL:${CL}" echo -e "${TAB}${GATEWAY}${BGN}${IP}:1080${CL}" -echo -e "${INFO}${YW} and the credentials stored at /root/hev.creds${CL}" \ No newline at end of file +echo -e "${INFO}${YW} and the credentials stored at /root/hev.creds${CL}" diff --git a/install/2fauth-install.sh b/install/2fauth-install.sh index 7b87822aa..e7b3af6d0 100644 --- a/install/2fauth-install.sh +++ b/install/2fauth-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://docs.2fauth.app/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,13 +15,10 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ - nginx \ - composer \ - php8.2-{bcmath,common,ctype,curl,fileinfo,fpm,gd,mbstring,mysql,xml,cli} \ - mariadb-server + nginx \ + composer \ + php8.2-{bcmath,common,ctype,curl,fileinfo,fpm,gd,mbstring,mysql,xml,cli} \ + mariadb-server msg_ok "Installed Dependencies" msg_info "Setting up Database" @@ -32,30 +29,30 @@ $STD mysql -u root -e "CREATE DATABASE $DB_NAME;" $STD mysql -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$DB_PASS');" $STD mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;" { - echo "2FAuth Credentials" - echo "Database User: $DB_USER" - echo "Database Password: $DB_PASS" - echo "Database Name: $DB_NAME" -} >> ~/2FAuth.creds + echo "2FAuth Credentials" + echo "Database User: $DB_USER" + echo "Database Password: $DB_PASS" + echo "Database Name: $DB_NAME" +} >>~/2FAuth.creds msg_ok "Set up Database" msg_info "Setup 2FAuth" RELEASE=$(curl -s https://api.github.com/repos/Bubka/2FAuth/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') wget -q "https://github.com/Bubka/2FAuth/archive/refs/tags/${RELEASE}.zip" unzip -q "${RELEASE}.zip" -mv "2FAuth-${RELEASE//v}/" /opt/2fauth +mv "2FAuth-${RELEASE//v/}/" /opt/2fauth cd "/opt/2fauth" || return cp .env.example .env IPADDRESS=$(hostname -I | awk '{print $1}') sed -i -e "s|^APP_URL=.*|APP_URL=http://$IPADDRESS|" \ - -e "s|^DB_CONNECTION=$|DB_CONNECTION=mysql|" \ - -e "s|^DB_DATABASE=$|DB_DATABASE=$DB_NAME|" \ - -e "s|^DB_HOST=$|DB_HOST=127.0.0.1|" \ - -e "s|^DB_PORT=$|DB_PORT=3306|" \ - -e "s|^DB_USERNAME=$|DB_USERNAME=$DB_USER|" \ - -e "s|^DB_PASSWORD=$|DB_PASSWORD=$DB_PASS|" .env + -e "s|^DB_CONNECTION=$|DB_CONNECTION=mysql|" \ + -e "s|^DB_DATABASE=$|DB_DATABASE=$DB_NAME|" \ + -e "s|^DB_HOST=$|DB_HOST=127.0.0.1|" \ + -e "s|^DB_PORT=$|DB_PORT=3306|" \ + -e "s|^DB_USERNAME=$|DB_USERNAME=$DB_USER|" \ + -e "s|^DB_PASSWORD=$|DB_PASSWORD=$DB_PASS|" .env export COMPOSER_ALLOW_SUPERUSER=1 $STD composer update --no-plugins --no-scripts diff --git a/install/actualbudget-install.sh b/install/actualbudget-install.sh index 2c56f2351..7403c5196 100644 --- a/install/actualbudget-install.sh +++ b/install/actualbudget-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://actualbudget.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ tini \ gpg \ build-essential @@ -46,7 +43,7 @@ mkdir -p /opt/actualbudget-data/{server-files,upload,migrate,user-files,migratio chown -R root:root /opt/actualbudget-data chmod -R 755 /opt/actualbudget-data -cat < /opt/actualbudget-data/.env +cat </opt/actualbudget-data/.env ACTUAL_UPLOAD_DIR=/opt/actualbudget-data/upload ACTUAL_DATA_DIR=/opt/actualbudget-data ACTUAL_SERVER_FILES_DIR=/opt/actualbudget-data/server-files diff --git a/install/adguard-install.sh b/install/adguard-install.sh index 9adf15389..877324d79 100644 --- a/install/adguard-install.sh +++ b/install/adguard-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://adguard.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing AdGuard Home" $STD tar zxvf <(curl -fsSL https://static.adtidy.org/adguardhome/release/AdGuardHome_linux_amd64.tar.gz) -C /opt msg_ok "Installed AdGuard Home" diff --git a/install/adventurelog-install.sh b/install/adventurelog-install.sh index 16ad60dc9..dbaaf823e 100644 --- a/install/adventurelog-install.sh +++ b/install/adventurelog-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/seanmorley15/AdventureLog -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -17,9 +17,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ gpg \ - curl \ - sudo \ - mc \ gdal-bin \ libgdal-dev \ git \ @@ -57,12 +54,12 @@ $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8' $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET default_transaction_isolation TO 'read committed';" $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC';" { - echo "AdventureLog-Credentials" - echo "AdventureLog Database User: $DB_USER" - echo "AdventureLog Database Password: $DB_PASS" - echo "AdventureLog Database Name: $DB_NAME" - echo "AdventureLog Secret: $SECRET_KEY" -} >> ~/adventurelog.creds + echo "AdventureLog-Credentials" + echo "AdventureLog Database User: $DB_USER" + echo "AdventureLog Database Password: $DB_PASS" + echo "AdventureLog Database Name: $DB_NAME" + echo "AdventureLog Secret: $SECRET_KEY" +} >>~/adventurelog.creds msg_ok "Set up PostgreSQL" msg_info "Installing AdventureLog (Patience)" @@ -74,7 +71,7 @@ RELEASE=$(curl -s https://api.github.com/repos/seanmorley15/AdventureLog/release wget -q "https://github.com/seanmorley15/AdventureLog/archive/refs/tags/v${RELEASE}.zip" unzip -q v${RELEASE}.zip mv AdventureLog-${RELEASE} /opt/adventurelog -cat < /opt/adventurelog/backend/server/.env +cat </opt/adventurelog/backend/server/.env PGHOST='localhost' PGDATABASE='${DB_NAME}' PGUSER='${DB_USER}' @@ -103,7 +100,7 @@ $STD pip install -r requirements.txt $STD python3 manage.py collectstatic --noinput $STD python3 manage.py migrate $STD python3 manage.py download-countries -cat < /opt/adventurelog/frontend/.env +cat </opt/adventurelog/frontend/.env PUBLIC_SERVER_URL=http://$LOCAL_IP:8000 BODY_SIZE_LIMIT=Infinity ORIGIN='http://$LOCAL_IP:3000' @@ -115,7 +112,7 @@ echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" msg_ok "Installed AdventureLog" msg_info "Setting up Django Admin" -$STD python3 /opt/adventurelog/backend/server/manage.py shell << EOF +$STD python3 /opt/adventurelog/backend/server/manage.py shell <> ~/adventurelog.creds + echo "" + echo "Django-Credentials" + echo "Django Admin User: $DJANGO_ADMIN_USER" + echo "Django Admin Password: $DJANGO_ADMIN_PASS" +} >>~/adventurelog.creds msg_ok "Setup Django Admin" msg_info "Creating Service" @@ -171,4 +168,4 @@ msg_info "Cleaning up" rm -rf /opt/v${RELEASE}.zip $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/agentdvr-install.sh b/install/agentdvr-install.sh index 4aeb19b18..58272816f 100644 --- a/install/agentdvr-install.sh +++ b/install/agentdvr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.ispyconnect.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y unzip $STD apt-get install -y apt-transport-https $STD apt-get install -y alsa-utils diff --git a/install/alpine-docker-install.sh b/install/alpine-docker-install.sh index cd5068a45..3330d7dde 100644 --- a/install/alpine-docker-install.sh +++ b/install/alpine-docker-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.docker.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors diff --git a/install/alpine-grafana-install.sh b/install/alpine-grafana-install.sh index 424354d74..8deae4dff 100644 --- a/install/alpine-grafana-install.sh +++ b/install/alpine-grafana-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://grafana.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -29,4 +29,4 @@ $STD rc-update add grafana default msg_ok "Installed Grafana" motd_ssh -customize \ No newline at end of file +customize diff --git a/install/alpine-install.sh b/install/alpine-install.sh index e288d2faf..aabf22346 100644 --- a/install/alpine-install.sh +++ b/install/alpine-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://alpinelinux.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors diff --git a/install/alpine-it-tools-install.sh b/install/alpine-it-tools-install.sh index f6bdca6a8..d8bb390c8 100644 --- a/install/alpine-it-tools-install.sh +++ b/install/alpine-it-tools-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://it-tools.tech/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -30,7 +30,7 @@ curl -fsSL -o it-tools.zip "$DOWNLOAD_URL" mkdir -p /usr/share/nginx/html unzip -q it-tools.zip -d /tmp/it-tools cp -r /tmp/it-tools/dist/* /usr/share/nginx/html -cat <<'EOF' > /etc/nginx/http.d/default.conf +cat <<'EOF' >/etc/nginx/http.d/default.conf server { listen 80; server_name localhost; diff --git a/install/alpine-nextcloud-install.sh b/install/alpine-nextcloud-install.sh index b0510b8c1..bbfed7e2d 100644 --- a/install/alpine-nextcloud-install.sh +++ b/install/alpine-nextcloud-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://nextcloud.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -139,7 +139,7 @@ server { } EOF sed -i -e 's|memory_limit = 128M|memory_limit = 512M|; $aapc.enable_cli=1' /etc/php83/php.ini -sed -i -e 's|upload_max_file_size = 2M|upload_max_file_size = 16G|' /etc/php83/php.ini +sed -i -e 's|upload_max_file_size = 2M|upload_max_file_size = 16G|' /etc/php83/php.ini sed -i -E '/^php_admin_(flag|value)\[opcache/s/^/;/' /etc/php83/php-fpm.d/nextcloud.conf msg_ok "Installed Nextcloud" diff --git a/install/alpine-redis-install.sh b/install/alpine-redis-install.sh index 2fb4140cd..5657e2c7e 100644 --- a/install/alpine-redis-install.sh +++ b/install/alpine-redis-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://redis.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -21,7 +21,7 @@ $STD apk add \ nano \ mc \ gpg - + msg_ok "Installed Dependencies" msg_info "Installing Redis" @@ -32,4 +32,4 @@ $STD rc-service redis start msg_ok "Installed Redis" motd_ssh -customize \ No newline at end of file +customize diff --git a/install/alpine-vaultwarden-install.sh b/install/alpine-vaultwarden-install.sh index 8483f951e..9d6767854 100644 --- a/install/alpine-vaultwarden-install.sh +++ b/install/alpine-vaultwarden-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/dani-garcia/vaultwarden -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -32,7 +32,7 @@ msg_ok "Installed Alpine-Vaultwarden" msg_info "Installing Web-Vault" $STD apk add vaultwarden-web-vault -msg_ok "Installed Web-Vault" +msg_ok "Installed Web-Vault" msg_info "Starting Alpine-Vaultwarden" $STD rc-service vaultwarden start diff --git a/install/alpine-zigbee2mqtt-install.sh b/install/alpine-zigbee2mqtt-install.sh index ecd27be72..dee853801 100644 --- a/install/alpine-zigbee2mqtt-install.sh +++ b/install/alpine-zigbee2mqtt-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.zigbee2mqtt.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors diff --git a/install/apache-cassandra-install.sh b/install/apache-cassandra-install.sh index 2337badb9..0c784345b 100644 --- a/install/apache-cassandra-install.sh +++ b/install/apache-cassandra-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://cassandra.apache.org/_/index.html -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y apt-transport-https $STD apt-get install -y gpg msg_ok "Installed Dependencies" diff --git a/install/apache-couchdb-install.sh b/install/apache-couchdb-install.sh index 98c60572e..eea4b8413 100644 --- a/install/apache-couchdb-install.sh +++ b/install/apache-couchdb-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://couchdb.apache.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y apt-transport-https $STD apt-get install -y gnupg msg_ok "Installed Dependencies" @@ -24,11 +21,11 @@ msg_ok "Installed Dependencies" msg_info "Installing Apache CouchDB" ERLANG_COOKIE=$(openssl rand -base64 32) ADMIN_PASS="$(openssl rand -base64 18 | cut -c1-13)" -debconf-set-selections <<< "couchdb couchdb/cookie string $ERLANG_COOKIE" -debconf-set-selections <<< "couchdb couchdb/mode select standalone" -debconf-set-selections <<< "couchdb couchdb/bindaddress string 0.0.0.0" -debconf-set-selections <<< "couchdb couchdb/adminpass password $ADMIN_PASS" -debconf-set-selections <<< "couchdb couchdb/adminpass_again password $ADMIN_PASS" +debconf-set-selections <<<"couchdb couchdb/cookie string $ERLANG_COOKIE" +debconf-set-selections <<<"couchdb couchdb/mode select standalone" +debconf-set-selections <<<"couchdb couchdb/bindaddress string 0.0.0.0" +debconf-set-selections <<<"couchdb couchdb/adminpass password $ADMIN_PASS" +debconf-set-selections <<<"couchdb couchdb/adminpass_again password $ADMIN_PASS" curl -fsSL https://couchdb.apache.org/repo/keys.asc | gpg --dearmor -o /usr/share/keyrings/couchdb-archive-keyring.gpg VERSION_CODENAME="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)" echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg] https://apache.jfrog.io/artifactory/couchdb-deb/ ${VERSION_CODENAME} main" >/etc/apt/sources.list.d/couchdb.sources.list diff --git a/install/apache-guacamole-install.sh b/install/apache-guacamole-install.sh index d4ab310b9..fca785d45 100644 --- a/install/apache-guacamole-install.sh +++ b/install/apache-guacamole-install.sh @@ -14,30 +14,29 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - build-essential \ - curl \ - jq \ - libcairo2-dev \ - libturbojpeg0 \ - libpng-dev \ - libtool-bin \ - libossp-uuid-dev \ - libvncserver-dev \ - freerdp2-dev \ - libssh2-1-dev \ - libtelnet-dev \ - libwebsockets-dev \ - libpulse-dev \ - libvorbis-dev \ - libwebp-dev \ - libssl-dev \ - libpango1.0-dev \ - libswscale-dev \ - libavcodec-dev \ - libavutil-dev \ - libavformat-dev \ - mariadb-server \ - default-jdk + build-essential \ + jq \ + libcairo2-dev \ + libturbojpeg0 \ + libpng-dev \ + libtool-bin \ + libossp-uuid-dev \ + libvncserver-dev \ + freerdp2-dev \ + libssh2-1-dev \ + libtelnet-dev \ + libwebsockets-dev \ + libpulse-dev \ + libvorbis-dev \ + libwebp-dev \ + libssl-dev \ + libpango1.0-dev \ + libswscale-dev \ + libavcodec-dev \ + libavutil-dev \ + libavformat-dev \ + mariadb-server \ + default-jdk msg_ok "Installed Dependencies" msg_info "Setup Apache Tomcat" @@ -84,7 +83,7 @@ mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVI echo "Database User: $DB_USER" echo "Database Password: $DB_PASS" echo "Database Name: $DB_NAME" -} >> ~/guacamole.creds +} >>~/guacamole.creds cd guacamole-auth-jdbc-1.5.5/mysql/schema cat *.sql | mysql -u root ${DB_NAME} { @@ -94,7 +93,7 @@ cat *.sql | mysql -u root ${DB_NAME} echo "mysql-username: $DB_USER" echo "mysql-password: $DB_PASS" -} >> /etc/guacamole/guacamole.properties +} >>/etc/guacamole/guacamole.properties msg_ok "Setup Database" msg_info "Setup Service" @@ -147,7 +146,7 @@ motd_ssh customize msg_info "Cleaning up" -rm -rf ~/mysql-connector-java-8.0.26{,.tar.gz} +rm -rf ~/mysql-connector-java-8.0.26{,.tar.gz} rm -rf ~/guacamole-auth-jdbc-1.5.5{,.tar.gz} $STD apt-get -y autoremove $STD apt-get -y autoclean diff --git a/install/apache-tika-install.sh b/install/apache-tika-install.sh index 1976e60bc..ab6955aa9 100644 --- a/install/apache-tika-install.sh +++ b/install/apache-tika-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/apache/tika/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ software-properties-common \ gdal-bin \ tesseract-ocr \ @@ -26,6 +23,7 @@ $STD apt-get install -y \ tesseract-ocr-fra \ tesseract-ocr-spa \ tesseract-ocr-deu + $STD echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections $STD apt-get install -y \ xfonts-utils \ diff --git a/install/apache-tomcat-install.sh b/install/apache-tomcat-install.sh index 26e11f0fe..4a915be22 100644 --- a/install/apache-tomcat-install.sh +++ b/install/apache-tomcat-install.sh @@ -16,9 +16,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ gnupg2 \ - curl \ - sudo \ - mc \ lsb-release \ gpg \ apt-transport-https diff --git a/install/apt-cacher-ng-install.sh b/install/apt-cacher-ng-install.sh index 8cb628a16..e831c46eb 100644 --- a/install/apt-cacher-ng-install.sh +++ b/install/apt-cacher-ng-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://wiki.debian.org/AptCacherNg -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing Apt-Cacher NG" DEBIAN_FRONTEND=noninteractive $STD apt-get -o Dpkg::Options::="--force-confold" install -y apt-cacher-ng sed -i 's/# PassThroughPattern: .* # this would allow CONNECT to everything/PassThroughPattern: .*/' /etc/apt-cacher-ng/acng.conf diff --git a/install/archivebox-install.sh b/install/archivebox-install.sh index 3c7f9f655..f0c9846e0 100644 --- a/install/archivebox-install.sh +++ b/install/archivebox-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://archivebox.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ git \ expect \ libssl-dev \ @@ -48,8 +45,8 @@ $STD apt-get install -y nodejs msg_ok "Installed Node.js" msg_info "Installing Playwright" -$STD pip install playwright -$STD playwright install-deps chromium +$STD pip install playwright +$STD playwright install-deps chromium msg_ok "Installed Playwright" msg_info "Installing Chromium and ArchiveBox" diff --git a/install/aria2-install.sh b/install/aria2-install.sh index 2e33edcb3..571dc2684 100644 --- a/install/aria2-install.sh +++ b/install/aria2-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://aria2.github.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing Aria2" $STD apt-get install -y aria2 msg_ok "Installed Aria2" @@ -95,4 +89,4 @@ msg_info "Cleaning up" rm AriaNg-*-AllInOne.zip $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/audiobookshelf-install.sh b/install/audiobookshelf-install.sh index 2b621f7a7..0d9adf48f 100644 --- a/install/audiobookshelf-install.sh +++ b/install/audiobookshelf-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.audiobookshelf.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,10 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo $STD apt-get install -y gnupg -$STD apt-get install -y mc msg_ok "Installed Dependencies" msg_info "Installing audiobookshelf" diff --git a/install/authelia-install.sh b/install/authelia-install.sh index 2ea34521c..cc97e8219 100644 --- a/install/authelia-install.sh +++ b/install/authelia-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.authelia.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Installing Authelia" RELEASE=$(curl -s https://api.github.com/repos/authelia/authelia/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') wget -q "https://github.com/authelia/authelia/releases/download/${RELEASE}/authelia_${RELEASE}_amd64.deb" @@ -30,9 +23,9 @@ read -p "Enter your domain (ex. example.com): " DOMAIN msg_info "Setting Authelia up" touch /etc/authelia/emails.txt -JWT_SECRET=$(openssl rand -hex 64) -SESSION_SECRET=$(openssl rand -hex 64) -STORAGE_KEY=$(openssl rand -hex 64) +JWT_SECRET=$(openssl rand -hex 64) +SESSION_SECRET=$(openssl rand -hex 64) +STORAGE_KEY=$(openssl rand -hex 64) cat </etc/authelia/users.yml users: authelia: diff --git a/install/authentik-install.sh b/install/authentik-install.sh index 8fedc347c..1f9d79f54 100644 --- a/install/authentik-install.sh +++ b/install/authentik-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies (Patience)" $STD apt-get install -y \ - curl \ - sudo \ - mc \ gpg \ pkg-config \ libffi-dev \ @@ -104,7 +101,7 @@ DB_USER="authentik" DB_PASS="$(openssl rand -base64 18 | cut -c1-13)" $STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME;" $STD sudo -u postgres psql -c "CREATE USER $DB_USER WITH PASSWORD '$DB_PASS';" -$STD sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE $DB_NAME TO $DB_USER;" +$STD sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE $DB_NAME TO $DB_USER;" $STD sudo -u postgres psql -c "ALTER DATABASE $DB_NAME OWNER TO $DB_USER;" $STD sudo -u postgres psql -c "ALTER USER $DB_USER WITH SUPERUSER;" msg_ok "Installed PostgreSQL" diff --git a/install/autobrr-install.sh b/install/autobrr-install.sh index f0550a06c..4fc19d1df 100644 --- a/install/autobrr-install.sh +++ b/install/autobrr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://autobrr.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing Autobrr" wget -q $(curl -s https://api.github.com/repos/autobrr/autobrr/releases/latest | grep download | grep linux_x86_64 | cut -d\" -f4) tar -C /usr/local/bin -xzf autobrr*.tar.gz diff --git a/install/baikal-install.sh b/install/baikal-install.sh index ab452287a..0a13a9b12 100644 --- a/install/baikal-install.sh +++ b/install/baikal-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://sabre.io/baikal/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,13 +15,10 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ - postgresql \ - apache2 \ - libapache2-mod-php \ - php-{pgsql,dom} + postgresql \ + apache2 \ + libapache2-mod-php \ + php-{pgsql,dom} msg_ok "Installed Dependencies" msg_info "Setting up PostgreSQL" @@ -31,11 +28,11 @@ DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13) $STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';" $STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER TEMPLATE template0;" { -echo "Baikal Credentials" -echo "Baikal Database User: $DB_USER" -echo "Baikal Database Password: $DB_PASS" -echo "Baikal Database Name: $DB_NAME" -} >> ~/baikal.creds + echo "Baikal Credentials" + echo "Baikal Database User: $DB_USER" + echo "Baikal Database Password: $DB_PASS" + echo "Baikal Database Name: $DB_NAME" +} >>~/baikal.creds msg_ok "Set up PostgreSQL" msg_info "Installing Baikal" @@ -57,7 +54,7 @@ echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed Baikal" msg_info "Creating Service" -cat < /etc/apache2/sites-available/baikal.conf +cat </etc/apache2/sites-available/baikal.conf ServerName baikal DocumentRoot /opt/baikal/html diff --git a/install/barcode-buddy-install.sh b/install/barcode-buddy-install.sh index 3de9aae24..0c5763f83 100644 --- a/install/barcode-buddy-install.sh +++ b/install/barcode-buddy-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/Forceu/barcodebuddy -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ apache2 \ redis \ php-{curl,date,json,mbstring,redis,sqlite3,sockets} \ diff --git a/install/bazarr-install.sh b/install/bazarr-install.sh index 5dd3c1a23..2802de084 100755 --- a/install/bazarr-install.sh +++ b/install/bazarr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.bazarr.media/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Setup Python3" $STD apt-get install -y \ python3 \ @@ -65,4 +59,4 @@ msg_info "Cleaning up" rm -rf bazarr.zip $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/beszel-install.sh b/install/beszel-install.sh index 46554721c..0c508a289 100644 --- a/install/beszel-install.sh +++ b/install/beszel-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://beszel.dev/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,17 +13,9 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - tar \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Installing Beszel" -mkdir -p /opt/beszel -curl -sL "https://github.com/henrygd/beszel/releases/latest/download/beszel_$(uname -s)_$(uname -m | sed -e 's/x86_64/amd64/' -e 's/armv6l/arm/' -e 's/armv7l/arm/' -e 's/aarch64/arm64/').tar.gz" | tar -xz -O beszel | tee /opt/beszel/beszel >/dev/null +mkdir -p /opt/beszel +curl -sL "https://github.com/henrygd/beszel/releases/latest/download/beszel_$(uname -s)_$(uname -m | sed -e 's/x86_64/amd64/' -e 's/armv6l/arm/' -e 's/armv7l/arm/' -e 's/aarch64/arm64/').tar.gz" | tar -xz -O beszel | tee /opt/beszel/beszel >/dev/null chmod +x /opt/beszel/beszel msg_ok "Installed Beszel" @@ -51,4 +43,4 @@ customize msg_info "Cleaning up" $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/blocky-install.sh b/install/blocky-install.sh index b3d3ee870..b03174407 100644 --- a/install/blocky-install.sh +++ b/install/blocky-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://0xerr0r.github.io/blocky/latest/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,14 +13,8 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing Blocky" -if systemctl is-active systemd-resolved > /dev/null 2>&1; then +if systemctl is-active systemd-resolved >/dev/null 2>&1; then systemctl disable -q --now systemd-resolved fi mkdir /opt/blocky diff --git a/install/boltdiy-install.sh b/install/boltdiy-install.sh index 17b4b2fec..809191336 100644 --- a/install/boltdiy-install.sh +++ b/install/boltdiy-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/stackblitz-labs/bolt.diy/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ gnupg \ git msg_ok "Installed Dependencies" diff --git a/install/bookstack-install.sh b/install/bookstack-install.sh index 6e288e54c..4d5340e7b 100644 --- a/install/bookstack-install.sh +++ b/install/bookstack-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/BookStackApp/BookStack -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,16 +15,13 @@ update_os msg_info "Installing Dependencies (Patience)" $STD apt-get install -y \ - unzip \ - mariadb-server \ - apache2 \ - curl \ - sudo \ - php8.2-{mbstring,gd,fpm,curl,intl,ldap,tidy,bz2,mysql,zip,xml} \ - composer \ - libapache2-mod-php \ - make \ - mc + unzip \ + mariadb-server \ + apache2 \ + php8.2-{mbstring,gd,fpm,curl,intl,ldap,tidy,bz2,mysql,zip,xml} \ + composer \ + libapache2-mod-php \ + make msg_ok "Installed Dependencies" msg_info "Setting up Database" @@ -39,7 +36,7 @@ $STD sudo mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; F echo "Bookstack Database User: $DB_USER" echo "Bookstack Database Password: $DB_PASS" echo "Bookstack Database Name: $DB_NAME" -} >> ~/bookstack.creds +} >>~/bookstack.creds msg_ok "Set up database" msg_info "Setup Bookstack (Patience)" @@ -58,8 +55,8 @@ sudo sed -i "s/DB_PASSWORD=.*/DB_PASSWORD=$DB_PASS/" /opt/bookstack/.env $STD composer install --no-dev --no-plugins --no-interaction $STD php artisan key:generate --no-interaction --force $STD php artisan migrate --no-interaction --force -chown www-data:www-data -R /opt/bookstack /opt/bookstack/bootstrap/cache /opt/bookstack/public/uploads /opt/bookstack/storage -chmod -R 755 /opt/bookstack /opt/bookstack/bootstrap/cache /opt/bookstack/public/uploads /opt/bookstack/storage +chown www-data:www-data -R /opt/bookstack /opt/bookstack/bootstrap/cache /opt/bookstack/public/uploads /opt/bookstack/storage +chmod -R 755 /opt/bookstack /opt/bookstack/bootstrap/cache /opt/bookstack/public/uploads /opt/bookstack/storage chmod -R 775 /opt/bookstack/storage /opt/bookstack/bootstrap/cache /opt/bookstack/public/uploads chmod -R 640 /opt/bookstack/.env $STD a2enmod rewrite @@ -106,7 +103,7 @@ cat </etc/apache2/sites-available/bookstack.conf EOF $STD a2ensite bookstack.conf -$STD a2dissite 000-default.conf +$STD a2dissite 000-default.conf $STD systemctl reload apache2 msg_ok "Created Services" diff --git a/install/bunkerweb-install.sh b/install/bunkerweb-install.sh index 70df88a77..c9bb6cb1a 100644 --- a/install/bunkerweb-install.sh +++ b/install/bunkerweb-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.bunkerweb.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,12 +14,9 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg $STD apt-get install -y apt-transport-https -$STD apt-get install -y lsb-release +$STD apt-get install -y lsb-release msg_ok "Installed Dependencies" msg_info "Installing Nginx" diff --git a/install/bytestash-install.sh b/install/bytestash-install.sh index 51a80eeac..9f2b65988 100644 --- a/install/bytestash-install.sh +++ b/install/bytestash-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - sudo \ - curl \ - mc \ gnupg msg_ok "Installed Dependencies" diff --git a/install/caddy-install.sh b/install/caddy-install.sh index f17bcd5f7..9542a71e7 100644 --- a/install/caddy-install.sh +++ b/install/caddy-install.sh @@ -18,10 +18,7 @@ $STD apt-get install -y \ debian-keyring \ debian-archive-keyring \ apt-transport-https \ - gpg \ - curl \ - sudo \ - mc + gpg msg_ok "Installed Dependencies" msg_info "Installing Caddy" diff --git a/install/calibre-web-install.sh b/install/calibre-web-install.sh index 60bfaf0be..0643cf9b7 100644 --- a/install/calibre-web-install.sh +++ b/install/calibre-web-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/janeczku/calibre-web -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y imagemagick msg_ok "Installed Dependencies" diff --git a/install/casaos-install.sh b/install/casaos-install.sh index 79c502c7d..41ad77aae 100644 --- a/install/casaos-install.sh +++ b/install/casaos-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://casaos.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,17 +13,11 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing CasaOS (Patience)" DOCKER_CONFIG_PATH='/etc/docker/daemon.json' mkdir -p $(dirname $DOCKER_CONFIG_PATH) -echo -e '{\n "log-driver": "journald"\n}' > /etc/docker/daemon.json -$STD bash <(curl -fsSL https://get.casaos.io/v0.4.1) +echo -e '{\n "log-driver": "journald"\n}' >/etc/docker/daemon.json +$STD bash <(curl -fsSL https://get.casaos.io/) msg_ok "Installed CasaOS" motd_ssh diff --git a/install/changedetection-install.sh b/install/changedetection-install.sh index 5bfa89ac1..cc54b0a35 100644 --- a/install/changedetection-install.sh +++ b/install/changedetection-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://changedetection.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies (Patience)" $STD apt-get install -y \ - curl \ - sudo \ - mc \ git \ build-essential \ dumb-init \ diff --git a/install/channels-install.sh b/install/channels-install.sh index 2eec64360..6ec8c49f1 100644 --- a/install/channels-install.sh +++ b/install/channels-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://getchannels.com/dvr-server/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y chromium $STD apt-get install -y xvfb msg_ok "Installed Dependencies" diff --git a/install/checkmk-install.sh b/install/checkmk-install.sh index 7150546f8..fabcc0ba8 100644 --- a/install/checkmk-install.sh +++ b/install/checkmk-install.sh @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Install Checkmk" RELEASE=$(curl -fsSL https://api.github.com/repos/checkmk/checkmk/tags | grep "name" | awk '{print substr($2, 3, length($2)-4) }' | tr ' ' '\n' | grep -v '\-rc' | sort -V | tail -n 1) wget -q https://download.checkmk.com/checkmk/${RELEASE}/check-mk-raw-${RELEASE}_0.bookworm_amd64.deb -O /opt/checkmk.deb @@ -37,7 +30,7 @@ $STD omd start echo "Application-Credentials" echo "Username: cmkadmin" echo "Password: $PASSWORD" -} >> ~/checkmk.creds +} >>~/checkmk.creds msg_ok "Created Service" msg_info "Cleaning up" diff --git a/install/cloudflared-install.sh b/install/cloudflared-install.sh index 6a6d78a01..2022ab906 100644 --- a/install/cloudflared-install.sh +++ b/install/cloudflared-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.cloudflare.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing Cloudflared" mkdir -p --mode=0755 /usr/share/keyrings VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)" diff --git a/install/cockpit-install.sh b/install/cockpit-install.sh index 84082413f..67b946c80 100644 --- a/install/cockpit-install.sh +++ b/install/cockpit-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/cockpit-project/cockpit -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,12 +14,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing Cockpit" source /etc/os-release echo "deb http://deb.debian.org/debian ${VERSION_CODENAME}-backports main" >/etc/apt/sources.list.d/backports.list diff --git a/install/commafeed-install.sh b/install/commafeed-install.sh index 5795c584b..b4ec7f162 100644 --- a/install/commafeed-install.sh +++ b/install/commafeed-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.commafeed.com/#/welcome -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y rsync msg_ok "Installed Dependencies" @@ -58,7 +55,7 @@ motd_ssh customize msg_info "Cleaning up" -rm -rf commafeed-${RELEASE}-h2 commafeed-${RELEASE}-h2-jvm.zip zulu-repo_1.0.0-3_all.deb +rm -rf commafeed-${RELEASE}-h2 commafeed-${RELEASE}-h2-jvm.zip zulu-repo_1.0.0-3_all.deb $STD apt-get -y autoremove $STD apt-get -y autoclean msg_ok "Cleaned" diff --git a/install/cosmos-install.sh b/install/cosmos-install.sh index 176ca09df..f266a926c 100644 --- a/install/cosmos-install.sh +++ b/install/cosmos-install.sh @@ -1,6 +1,5 @@ #!/usr/bin/env bash - #Copyright (c) 2021-2025 community-scripts ORG # Author: Michel Roegl-Brunner (michelroegl-brunner) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE @@ -16,12 +15,9 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - mc \ - sudo \ - snapraid \ - avahi-daemon \ - fdisk + snapraid \ + avahi-daemon \ + fdisk msg_ok "Installed Dependencies" msg_info "Install mergerfs" @@ -37,7 +33,7 @@ $STD sh get-docker.sh rm get-docker.sh msg_ok "Installed Docker" -msg_info "Install Cosmos" +msg_info "Install Cosmos" mkdir -p /opt/cosmos LATEST_RELEASE=$(curl -s https://api.github.com/repos/azukaar/Cosmos-Server/releases/latest | grep "tag_name" | cut -d '"' -f 4) ZIP_FILE="cosmos-cloud-${LATEST_RELEASE#v}-amd64.zip" @@ -51,7 +47,7 @@ chmod +x /opt/cosmos/cosmos msg_ok "Installed Cosmos" msg_info "Creating Service" -cat < /etc/systemd/system/cosmos.service +cat </etc/systemd/system/cosmos.service [Unit] Description=Cosmos Cloud service ConditionFileIsExecutable=/opt/cosmos/start.sh diff --git a/install/crafty-controller-install.sh b/install/crafty-controller-install.sh index 6e5f68785..969b22354 100644 --- a/install/crafty-controller-install.sh +++ b/install/crafty-controller-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://docs.craftycontrol.com/pages/getting-started/installation/linux/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies (a lot of patience)" $STD apt-get install -y \ - curl \ - sudo \ - mc \ git \ sed \ lsb-release \ @@ -66,7 +63,7 @@ $STD sudo -u crafty bash -c ' msg_ok "Installed Craft-Controller and dependencies" msg_info "Setting up Crafty-Controller service" -cat > /etc/systemd/system/crafty-controller.service << 'EOF' +cat >/etc/systemd/system/crafty-controller.service <<'EOF' [Unit] Description=Crafty 4 After=network.target @@ -85,10 +82,10 @@ EOF $STD systemctl enable -q --now crafty-controller sleep 10 { - echo "Crafty-Controller-Credentials" - echo "Username: $(grep -oP '(?<="username": ")[^"]*' /opt/crafty-controller/crafty/crafty-4/app/config/default-creds.txt)" - echo "Password: $(grep -oP '(?<="password": ")[^"]*' /opt/crafty-controller/crafty/crafty-4/app/config/default-creds.txt)" -} >> ~/crafty-controller.creds + echo "Crafty-Controller-Credentials" + echo "Username: $(grep -oP '(?<="username": ")[^"]*' /opt/crafty-controller/crafty/crafty-4/app/config/default-creds.txt)" + echo "Password: $(grep -oP '(?<="password": ")[^"]*' /opt/crafty-controller/crafty/crafty-4/app/config/default-creds.txt)" +} >>~/crafty-controller.creds msg_ok "Crafty-Controller service started" motd_ssh diff --git a/install/cronicle-install.sh b/install/cronicle-install.sh index 0d0bc4ea8..f46604520 100644 --- a/install/cronicle-install.sh +++ b/install/cronicle-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://cronicle.net/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc \ - gnupg +$STD apt-get install -y gnupg msg_ok "Installed Dependencies" msg_info "Setting up Node.js Repository" diff --git a/install/cross-seed-install.sh b/install/cross-seed-install.sh index 278c01928..6413cf661 100644 --- a/install/cross-seed-install.sh +++ b/install/cross-seed-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.cross-seed.org -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc \ - gnupg +$STD apt-get install -y gnupg msg_ok "Installed Dependencies" msg_info "Setting up Node.js Repository" diff --git a/install/cryptpad-install.sh b/install/cryptpad-install.sh index 634b4f464..9bf77192a 100644 --- a/install/cryptpad-install.sh +++ b/install/cryptpad-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ gnupg \ git msg_ok "Installed Dependencies" diff --git a/install/daemonsync-install.sh b/install/daemonsync-install.sh index 4cbdb6396..9aa62e9f0 100644 --- a/install/daemonsync-install.sh +++ b/install/daemonsync-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://daemonsync.me/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y g++-multilib msg_ok "Installed Dependencies" diff --git a/install/dashy-install.sh b/install/dashy-install.sh index 2eeb34458..2611b179d 100644 --- a/install/dashy-install.sh +++ b/install/dashy-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://dashy.to/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg msg_ok "Installed Dependencies" diff --git a/install/debian-install.sh b/install/debian-install.sh index 6835c1873..e68ea9490 100644 --- a/install/debian-install.sh +++ b/install/debian-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.debian.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,16 +13,10 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - motd_ssh customize msg_info "Cleaning up" $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/deconz-install.sh b/install/deconz-install.sh index fde873492..e9d74c0d8 100644 --- a/install/deconz-install.sh +++ b/install/deconz-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.phoscon.de/en/conbee2/software#deconz -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Setting Phoscon Repository" VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)" curl -fsSL http://phoscon.de/apt/deconz.pub.key >/etc/apt/trusted.gpg.d/deconz.pub.asc diff --git a/install/deluge-install.sh b/install/deluge-install.sh index dc2eeb1eb..f8ebab681 100644 --- a/install/deluge-install.sh +++ b/install/deluge-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.deluge-torrent.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y python3-libtorrent msg_ok "Installed Dependencies" diff --git a/install/docker-install.sh b/install/docker-install.sh index bf45a1d49..7a3615cae 100644 --- a/install/docker-install.sh +++ b/install/docker-install.sh @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - get_latest_release() { curl -sL https://api.github.com/repos/$1/releases/latest | grep '"tag_name":' | cut -d'"' -f4 } diff --git a/install/dockge-install.sh b/install/dockge-install.sh index d443a4006..4f6c5288d 100644 --- a/install/dockge-install.sh +++ b/install/dockge-install.sh @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - get_latest_release() { curl -sL https://api.github.com/repos/$1/releases/latest | grep '"tag_name":' | cut -d'"' -f4 } @@ -75,7 +69,7 @@ services: privileged: true network_mode: host EOF -msg_ok "Added Home Assistant compose.yaml" + msg_ok "Added Home Assistant compose.yaml" fi motd_ssh diff --git a/install/docmost-install.sh b/install/docmost-install.sh index 176f89579..b3580f07e 100644 --- a/install/docmost-install.sh +++ b/install/docmost-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://docmost.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -16,11 +16,8 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ gpg \ - curl \ - sudo \ redis \ make \ - mc \ postgresql msg_ok "Installed Dependencies" @@ -46,11 +43,11 @@ $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8' $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET default_transaction_isolation TO 'read committed';" $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC'" { - echo "Docmost-Credentials" - echo "Database Name: $DB_NAME" - echo "Database User: $DB_USER" - echo "Database Password: $DB_PASS" -} >> ~/docmost.creds + echo "Docmost-Credentials" + echo "Database Name: $DB_NAME" + echo "Database User: $DB_USER" + echo "Database Password: $DB_PASS" +} >>~/docmost.creds msg_ok "Set up PostgreSQL" msg_info "Installing Docmost (Patience)" @@ -63,9 +60,9 @@ cd /opt/docmost mv .env.example .env mkdir data sed -i -e "s|APP_SECRET=.*|APP_SECRET=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-32)|" \ - -e "s|DATABASE_URL=.*|DATABASE_URL=postgres://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME|" \ - -e "s|FILE_UPLOAD_SIZE_LIMIT=.*|FILE_UPLOAD_SIZE_LIMIT=50mb|" \ - /opt/docmost/.env + -e "s|DATABASE_URL=.*|DATABASE_URL=postgres://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME|" \ + -e "s|FILE_UPLOAD_SIZE_LIMIT=.*|FILE_UPLOAD_SIZE_LIMIT=50mb|" \ + /opt/docmost/.env export NODE_OPTIONS="--max-old-space-size=2048" $STD pnpm install $STD pnpm build diff --git a/install/dolibarr-install.sh b/install/dolibarr-install.sh index cc09e54aa..323eada89 100644 --- a/install/dolibarr-install.sh +++ b/install/dolibarr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/Dolibarr/dolibarr/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ php-imap \ debconf-utils \ mariadb-server @@ -27,9 +24,9 @@ msg_info "Setting up Database" ROOT_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13) $STD sudo mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$ROOT_PASS'); flush privileges;" { - echo "Dolibarr DB Credentials" - echo "MariaDB Root Password: $ROOT_PASS" -} >> ~/dolibarr.creds + echo "Dolibarr DB Credentials" + echo "MariaDB Root Password: $ROOT_PASS" +} >>~/dolibarr.creds msg_ok "Set up database" msg_info "Setup Dolibarr" diff --git a/install/dotnetaspwebapi-install.sh b/install/dotnetaspwebapi-install.sh index a89277028..4c2e8616b 100644 --- a/install/dotnetaspwebapi-install.sh +++ b/install/dotnetaspwebapi-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-9.0&tabs=linux-ubuntu -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -18,6 +18,7 @@ $STD apt-get update $STD apt-get install -y \ ssh \ software-properties-common + $STD add-apt-repository -y ppa:dotnet/backports $STD apt-get install -y \ dotnet-sdk-9.0 \ @@ -37,7 +38,7 @@ FTP_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13) usermod --password $(echo ${FTP_PASS} | openssl passwd -1 -stdin) ftpuser mkdir -p /var/www/html usermod -d /var/www/html ftp -usermod -d /var/www/html ftpuser +usermod -d /var/www/html ftpuser chown ftpuser /var/www/html sed -i "s|#write_enable=YES|write_enable=YES|g" /etc/vsftpd.conf @@ -46,10 +47,10 @@ sed -i "s|#chroot_local_user=YES|chroot_local_user=NO|g" /etc/vsftpd.conf systemctl restart -q vsftpd.service { - echo "FTP-Credentials" - echo "Username: ftpuser" - echo "Password: $FTP_PASS" -} >> ~/ftp.creds + echo "FTP-Credentials" + echo "Username: ftpuser" + echo "Password: $FTP_PASS" +} >>~/ftp.creds msg_ok "FTP server setup completed" diff --git a/install/duplicati-install.sh b/install/duplicati-install.sh index faa5087ca..b51ea566c 100644 --- a/install/duplicati-install.sh +++ b/install/duplicati-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/duplicati/duplicati/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ libice6 \ libsm6 \ libfontconfig1 @@ -33,9 +30,9 @@ msg_ok "Finished setting up Duplicati" DECRYPTKEY=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13) ADMINPASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13) { - echo "Admin password = ${ADMINPASS}" - echo "Database encryption key = ${DECRYPTKEY}" -} >> ~/duplicati.creds + echo "Admin password = ${ADMINPASS}" + echo "Database encryption key = ${DECRYPTKEY}" +} >>~/duplicati.creds msg_info "Creating Service" cat </etc/systemd/system/duplicati.service diff --git a/install/elementsynapse-install.sh b/install/elementsynapse-install.sh index e0359fd9a..2c288fee0 100644 --- a/install/elementsynapse-install.sh +++ b/install/elementsynapse-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/element-hq/synapse -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,11 +15,7 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - sudo \ - curl \ - mc \ lsb-release \ - wget \ apt-transport-https \ debconf-utils msg_ok "Installed Dependencies" diff --git a/install/emby-install.sh b/install/emby-install.sh index 77fab516b..1e0a59945 100644 --- a/install/emby-install.sh +++ b/install/emby-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://emby.media/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Setting Up Hardware Acceleration" $STD apt-get -y install {va-driver-all,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools} if [[ "$CTTYPE" == "0" ]]; then diff --git a/install/emqx-install.sh b/install/emqx-install.sh index 41b809a90..755d1190b 100644 --- a/install/emqx-install.sh +++ b/install/emqx-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.emqx.com/en -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing EMQX" $STD bash <(curl -fsSL https://packagecloud.io/install/repositories/emqx/emqx/script.deb.sh) $STD apt-get install -y emqx diff --git a/install/ersatztv-install.sh b/install/ersatztv-install.sh index a4fad8beb..127ddab82 100644 --- a/install/ersatztv-install.sh +++ b/install/ersatztv-install.sh @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Installing FFmpeg (Patience)" cd /usr/local/bin wget -q https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz diff --git a/install/esphome-install.sh b/install/esphome-install.sh index cb64c95e4..3efd1473a 100644 --- a/install/esphome-install.sh +++ b/install/esphome-install.sh @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y git msg_ok "Installed Dependencies" diff --git a/install/evcc-install.sh b/install/evcc-install.sh index ce2ae44ac..7b493b5c4 100644 --- a/install/evcc-install.sh +++ b/install/evcc-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/evcc-io/evcc -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -16,16 +16,13 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ lsb-release \ - gpg + gpg msg_ok "Installed Dependencies" msg_info "Setting up evcc Repository" -curl -fsSL https://dl.evcc.io/public/evcc/stable/gpg.EAD5D0E07B0EC0FD.key | gpg --dearmor -o /etc/apt/keyrings/evcc-stable.gpg -echo "deb [signed-by=/etc/apt/keyrings/evcc-stable.gpg] https://dl.evcc.io/public/evcc/stable/deb/debian $(lsb_release -cs) main" >/etc/apt/sources.list.d/evcc-stable.list +curl -fsSL https://dl.evcc.io/public/evcc/stable/gpg.EAD5D0E07B0EC0FD.key | gpg --dearmor -o /etc/apt/keyrings/evcc-stable.gpg +echo "deb [signed-by=/etc/apt/keyrings/evcc-stable.gpg] https://dl.evcc.io/public/evcc/stable/deb/debian $(lsb_release -cs) main" >/etc/apt/sources.list.d/evcc-stable.list $STD apt update msg_ok "evcc Repository setup sucessfully" diff --git a/install/excalidraw-install.sh b/install/excalidraw-install.sh index e83c5aae2..5d273e713 100644 --- a/install/excalidraw-install.sh +++ b/install/excalidraw-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/excalidraw/excalidraw -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ gnupg \ xdg-utils msg_ok "Installed Dependencies" @@ -70,4 +67,4 @@ msg_info "Cleaning up" rm -f $temp_file $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/fenrus-install.sh b/install/fenrus-install.sh index 758b1ba33..d9b8b986f 100644 --- a/install/fenrus-install.sh +++ b/install/fenrus-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/revenz/Fenrus -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y sudo -$STD apt-get install -y mc -$STD apt-get install -y curl $STD apt-get install -y git msg_ok "Installed Dependencies" diff --git a/install/fhem-install.sh b/install/fhem-install.sh index d5617b349..c5057c0c9 100644 --- a/install/fhem-install.sh +++ b/install/fhem-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://fhem.de/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y avahi-daemon $STD apt-get install -y gnupg2 msg_ok "Installed Dependencies" diff --git a/install/firefly-install.sh b/install/firefly-install.sh index 20e55441d..023732348 100644 --- a/install/firefly-install.sh +++ b/install/firefly-install.sh @@ -14,10 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - mc \ - sudo curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ bookworm main" >/etc/apt/sources.list.d/php.list $STD apt-get update @@ -42,7 +38,7 @@ mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVI echo "Firefly Database User: $DB_USER" echo "Firefly Database Password: $DB_PASS" echo "Firefly Database Name: $DB_NAME" -} >> ~/firefly.creds +} >>~/firefly.creds msg_ok "Set up database" msg_info "Installing Firefly III (Patience)" @@ -57,7 +53,7 @@ cd /opt/firefly cp .env.example .env sed -i "s/DB_HOST=.*/DB_HOST=localhost/" /opt/firefly/.env sed -i "s/DB_PASSWORD=.*/DB_PASSWORD=$DB_PASS/" /opt/firefly/.env -echo "export COMPOSER_ALLOW_SUPERUSER=1" >> ~/.bashrc +echo "export COMPOSER_ALLOW_SUPERUSER=1" >>~/.bashrc source ~/.bashrc $STD composer install --no-dev --no-plugins --no-interaction $STD php artisan firefly:upgrade-database @@ -88,7 +84,7 @@ chown www-data:www-data /opt/firefly/storage/oauth-*.key $STD a2enmod php8.4 $STD a2enmod rewrite $STD a2ensite firefly.conf -$STD a2dissite 000-default.conf +$STD a2dissite 000-default.conf $STD systemctl reload apache2 msg_ok "Created Service" diff --git a/install/flaresolverr-install.sh b/install/flaresolverr-install.sh index 27a295bfa..82909e62a 100644 --- a/install/flaresolverr-install.sh +++ b/install/flaresolverr-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/FlareSolverr/FlareSolverr -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y apt-transport-https $STD apt-get install -y gpg $STD apt-get install -y xvfb @@ -25,7 +22,7 @@ msg_ok "Installed Dependencies" msg_info "Installing Chrome" wget -qO- https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/google-chrome.gpg -echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list +echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" >/etc/apt/sources.list.d/google-chrome.list $STD apt update $STD apt install -y google-chrome-stable msg_ok "Installed Chrome" diff --git a/install/flowiseai-install.sh b/install/flowiseai-install.sh index f902364ee..666019fd9 100644 --- a/install/flowiseai-install.sh +++ b/install/flowiseai-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://flowiseai.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg msg_ok "Installed Dependencies" diff --git a/install/fluid-calendar-install.sh b/install/fluid-calendar-install.sh index 82a96a394..ed5c83b17 100644 --- a/install/fluid-calendar-install.sh +++ b/install/fluid-calendar-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/dotnetfactory/fluid-calendar -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ zip \ gnupg \ postgresql-common @@ -40,12 +37,12 @@ $STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCO $STD sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE $DB_NAME to $DB_USER;" $STD sudo -u postgres psql -c "ALTER USER $DB_USER WITH SUPERUSER;" { - echo "${APPLICATION} Credentials" - echo "Database User: $DB_USER" - echo "Database Password: $DB_PASS" - echo "Database Name: $DB_NAME" - echo "NextAuth Secret: $NEXTAUTH_SECRET" -} >> ~/$APPLICATION.creds + echo "${APPLICATION} Credentials" + echo "Database User: $DB_USER" + echo "Database Password: $DB_PASS" + echo "Database Name: $DB_NAME" + echo "NextAuth Secret: $NEXTAUTH_SECRET" +} >>~/$APPLICATION.creds msg_ok "Set up Postgresql Database" msg_info "Setup ${APPLICATION}" diff --git a/install/forgejo-install.sh b/install/forgejo-install.sh index 990234f22..dcd4d044f 100644 --- a/install/forgejo-install.sh +++ b/install/forgejo-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://forgejo.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y git $STD apt-get install -y git-lfs msg_ok "Installed Dependencies" @@ -30,7 +27,7 @@ ln -sf /opt/forgejo/forgejo-$RELEASE-linux-amd64 /usr/local/bin/forgejo msg_ok "Installed Forgejo" msg_info "Setting up Forgejo" -$STD adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git +$STD adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git mkdir /var/lib/forgejo chown git:git /var/lib/forgejo chmod 750 /var/lib/forgejo diff --git a/install/freshrss-install.sh b/install/freshrss-install.sh index f30f6c155..cd287846b 100644 --- a/install/freshrss-install.sh +++ b/install/freshrss-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/FreshRSS/FreshRSS -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,16 +15,12 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ postgresql \ apache2 \ php-{curl,dom,json,ctype,pgsql,gmp,mbstring,iconv,zip} \ libapache2-mod-php msg_ok "Installed Dependencies" - msg_info "Setting up PostgreSQL" DB_NAME=freshrss DB_USER=freshrss @@ -32,11 +28,11 @@ DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13) $STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';" $STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER TEMPLATE template0;" { -echo "FreshRSS Credentials" -echo "FreshRSS Database User: $DB_USER" -echo "FreshRSS Database Password: $DB_PASS" -echo "FreshRSS Database Name: $DB_NAME" -} >> ~/freshrss.creds + echo "FreshRSS Credentials" + echo "FreshRSS Database User: $DB_USER" + echo "FreshRSS Database Password: $DB_PASS" + echo "FreshRSS Database Name: $DB_NAME" +} >>~/freshrss.creds msg_ok "Set up PostgreSQL" msg_info "Installing FreshRSS" diff --git a/install/frigate-install.sh b/install/frigate-install.sh index b7049754e..91a2bc79d 100644 --- a/install/frigate-install.sh +++ b/install/frigate-install.sh @@ -15,7 +15,7 @@ network_check update_os msg_info "Installing Dependencies (Patience)" -$STD apt-get install -y {curl,sudo,mc,git,gpg,ca-certificates,automake,build-essential,xz-utils,libtool,ccache,pkg-config,libgtk-3-dev,libavcodec-dev,libavformat-dev,libswscale-dev,libv4l-dev,libxvidcore-dev,libx264-dev,libjpeg-dev,libpng-dev,libtiff-dev,gfortran,openexr,libatlas-base-dev,libssl-dev,libtbb2,libtbb-dev,libdc1394-22-dev,libopenexr-dev,libgstreamer-plugins-base1.0-dev,libgstreamer1.0-dev,gcc,gfortran,libopenblas-dev,liblapack-dev,libusb-1.0-0-dev,jq,moreutils} +$STD apt-get install -y {git,gpg,ca-certificates,automake,build-essential,xz-utils,libtool,ccache,pkg-config,libgtk-3-dev,libavcodec-dev,libavformat-dev,libswscale-dev,libv4l-dev,libxvidcore-dev,libx264-dev,libjpeg-dev,libpng-dev,libtiff-dev,gfortran,openexr,libatlas-base-dev,libssl-dev,libtbb2,libtbb-dev,libdc1394-22-dev,libopenexr-dev,libgstreamer-plugins-base1.0-dev,libgstreamer1.0-dev,gcc,gfortran,libopenblas-dev,liblapack-dev,libusb-1.0-0-dev,jq,moreutils} msg_ok "Installed Dependencies" msg_info "Setup Python3" @@ -51,7 +51,7 @@ msg_ok "Set Up Hardware Acceleration" #RELEASE=$(curl -s https://api.github.com/repos/blakeblackshear/frigate/releases/latest | jq -r '.tag_name') msg_ok "Stop spinner to prevent segmentation fault" msg_info "Installing Frigate v0.14.1 (Perseverance)" -if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then kill $SPINNER_PID > /dev/null; fi +if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID >/dev/null; then kill $SPINNER_PID >/dev/null; fi cd ~ mkdir -p /opt/frigate/models wget -q https://github.com/blakeblackshear/frigate/archive/refs/tags/v0.14.1.tar.gz -O frigate.tar.gz @@ -101,7 +101,7 @@ if [[ "$CTTYPE" == "0" ]]; then else sed -i -e 's/^kvm:x:104:$/render:x:104:frigate/' -e 's/^render:x:105:$/kvm:x:105:/' /etc/group fi -echo "tmpfs /tmp/cache tmpfs defaults 0 0" >> /etc/fstab +echo "tmpfs /tmp/cache tmpfs defaults 0 0" >>/etc/fstab msg_ok "Installed Frigate" if grep -q -o -m1 -E 'avx[^ ]*' /proc/cpuinfo; then @@ -151,7 +151,7 @@ $STD ./configure --disable-udev --enable-shared $STD make -j $(nproc --all) cd /opt/frigate/libusb-1.0.26/libusb mkdir -p /usr/local/lib -$STD /bin/bash ../libtool --mode=install /usr/bin/install -c libusb-1.0.la '/usr/local/lib' +$STD /bin/bash ../libtool --mode=install /usr/bin/install -c libusb-1.0.la '/usr/local/lib' mkdir -p /usr/local/include/libusb-1.0 $STD /usr/bin/install -c -m 644 libusb.h '/usr/local/include/libusb-1.0' ldconfig @@ -171,7 +171,7 @@ msg_ok "Installed Coral Object Detection Model" msg_info "Building Nginx with Custom Modules" $STD /opt/frigate/docker/main/build_nginx.sh sed -e '/s6-notifyoncheck/ s/^#*/#/' -i /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/run -ln -sf /usr/local/nginx/sbin/nginx /usr/local/bin/nginx +ln -sf /usr/local/nginx/sbin/nginx /usr/local/bin/nginx msg_ok "Built Nginx" msg_info "Installing Tempio" diff --git a/install/ghost-install.sh b/install/ghost-install.sh index d87f8e214..a69e5f44e 100644 --- a/install/ghost-install.sh +++ b/install/ghost-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://ghost.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,8 @@ setting_up_container network_check update_os - msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ nginx \ mariadb-server \ ca-certificates \ @@ -34,11 +30,11 @@ mariadb -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASS'; mariadb -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;" { - echo "Ghost-Credentials" - echo "Ghost Database User: $DB_USER" - echo "Ghost Database Password: $DB_PASS" - echo "Ghost Database Name: $DB_NAME" -} >> ~/ghost.creds + echo "Ghost-Credentials" + echo "Ghost Database User: $DB_USER" + echo "Ghost Database Password: $DB_PASS" + echo "Ghost Database Name: $DB_NAME" +} >>~/ghost.creds msg_ok "Configured MySQL" msg_info "Setting up Node.js Repository" diff --git a/install/gitea-install.sh b/install/gitea-install.sh index f54ff2ded..64dabb738 100644 --- a/install/gitea-install.sh +++ b/install/gitea-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://about.gitea.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -16,9 +16,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y git -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y sqlite3 msg_ok "Installed Dependencies" @@ -27,7 +24,7 @@ RELEASE=$(wget -q https://github.com/go-gitea/gitea/releases/latest -O - | grep wget -q https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-linux-amd64 mv gitea* /usr/local/bin/gitea chmod +x /usr/local/bin/gitea -adduser --system --group --disabled-password --shell /bin/bash --home /etc/gitea gitea > /dev/null +adduser --system --group --disabled-password --shell /bin/bash --home /etc/gitea gitea >/dev/null mkdir -p /var/lib/gitea/{custom,data,log} chown -R gitea:gitea /var/lib/gitea/ chmod -R 750 /var/lib/gitea/ diff --git a/install/glance-install.sh b/install/glance-install.sh index ef8361901..442a454c1 100644 --- a/install/glance-install.sh +++ b/install/glance-install.sh @@ -13,14 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - - msg_info "Installing Glance" RELEASE=$(curl -s https://api.github.com/repos/glanceapp/glance/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') cd /opt @@ -78,4 +70,4 @@ msg_info "Cleaning up" rm -rf /opt/glance-linux-amd64.tar.gz $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/glpi-install.sh b/install/glpi-install.sh index bf9f0c5ec..6f49a782d 100644 --- a/install/glpi-install.sh +++ b/install/glpi-install.sh @@ -15,15 +15,12 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - git \ - sudo \ - mc \ - apache2 \ - php8.2-{apcu,cli,common,curl,gd,imap,ldap,mysql,xmlrpc,xml,mbstring,bcmath,intl,zip,redis,bz2,soap} \ - php-cas \ - libapache2-mod-php \ - mariadb-server + git \ + apache2 \ + php8.2-{apcu,cli,common,curl,gd,imap,ldap,mysql,xmlrpc,xml,mbstring,bcmath,intl,zip,redis,bz2,soap} \ + php-cas \ + libapache2-mod-php \ + mariadb-server msg_ok "Installed Dependencies" msg_info "Setting up database" @@ -40,7 +37,7 @@ mysql -u root -e "GRANT SELECT ON \`mysql\`.\`time_zone_name\` TO '$DB_USER'@'lo echo "Database: $DB_NAME" echo "Username: $DB_USER" echo "Password: $DB_PASS" -} >> ~/glpi_db.creds +} >>~/glpi_db.creds msg_ok "Set up database" msg_info "Installing GLPi" @@ -54,7 +51,7 @@ echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed GLPi" msg_info "Setting Downstream file" -cat < /opt/glpi/inc/downstream.php +cat </opt/glpi/inc/downstream.php /etc/glpi/local_define.php +cat </etc/glpi/local_define.php /etc/systemd/system/gokapi.service [Unit] Description=gokapi diff --git a/install/gomft-install.sh b/install/gomft-install.sh index a9596a891..ebf32b437 100644 --- a/install/gomft-install.sh +++ b/install/gomft-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ sqlite3 \ rclone \ tzdata \ diff --git a/install/gotify-install.sh b/install/gotify-install.sh index d4446c0bd..17de14229 100644 --- a/install/gotify-install.sh +++ b/install/gotify-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://gotify.net/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,18 +13,12 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing Gotify" RELEASE=$(curl -s https://api.github.com/repos/gotify/server/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') mkdir -p /opt/gotify cd /opt/gotify wget -q https://github.com/gotify/server/releases/download/v${RELEASE}/gotify-linux-amd64.zip -$STD unzip gotify-linux-amd64.zip +unzip -q gotify-linux-amd64.zip rm -rf gotify-linux-amd64.zip chmod +x gotify-linux-amd64 echo "${RELEASE}" >/opt/${APPLICATION}_version.txt diff --git a/install/grafana-install.sh b/install/grafana-install.sh index 4e532963c..4a532b8e8 100644 --- a/install/grafana-install.sh +++ b/install/grafana-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://grafana.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gnupg $STD apt-get install -y apt-transport-https $STD apt-get install -y software-properties-common diff --git a/install/graylog-install.sh b/install/graylog-install.sh index 351e8c1f5..4f89ad7b6 100644 --- a/install/graylog-install.sh +++ b/install/graylog-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://graylog.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc \ - gnupg +$STD apt-get install -y gnupg msg_ok "Installed Dependencies" msg_info "Setup MongoDB" @@ -44,10 +40,10 @@ msg_info "Setup ${APPLICATION}" $STD apt-get install graylog-server ROOT_PASSWORD=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c16) { - echo "${APPLICATION} Credentials" - echo "Admin User: admin" - echo "Admin Password: ${ROOT_PASSWORD}" -} >> ~/graylog.creds + echo "${APPLICATION} Credentials" + echo "Admin User: admin" + echo "Admin Password: ${ROOT_PASSWORD}" +} >>~/graylog.creds ROOT_PASSWORD=$(echo -n $ROOT_PASSWORD | shasum -a 256 | awk '{print $1}') sed -i "s/password_secret =/password_secret = $PASSWORD_SECRET/g" /etc/graylog/server/server.conf sed -i "s/root_password_sha2 =/root_password_sha2 = $ROOT_PASSWORD/g" /etc/graylog/server/server.conf @@ -62,4 +58,4 @@ msg_info "Cleaning up" rm -f graylog-*-repository_latest.deb $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/grist-install.sh b/install/grist-install.sh index 6f9540ba3..e41493f47 100644 --- a/install/grist-install.sh +++ b/install/grist-install.sh @@ -15,12 +15,9 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ make \ gnupg \ ca-certificates \ - mc \ unzip \ python3.11-venv msg_ok "Installed Dependencies" @@ -79,4 +76,4 @@ msg_info "Cleaning up" rm -rf /opt/v${RELEASE}.zip $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/grocy-install.sh b/install/grocy-install.sh index 34d1e3263..af0ea3104 100644 --- a/install/grocy-install.sh +++ b/install/grocy-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://grocy.info/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y apt-transport-https msg_ok "Installed Dependencies" diff --git a/install/habitica-install.sh b/install/habitica-install.sh index 9aaf92939..443a33c9b 100644 --- a/install/habitica-install.sh +++ b/install/habitica-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ libkrb5-dev \ gnupg \ build-essential \ diff --git a/install/headscale-install.sh b/install/headscale-install.sh index 51b683955..9a523f4df 100644 --- a/install/headscale-install.sh +++ b/install/headscale-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/juanfont/headscale -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - RELEASE=$(curl -s https://api.github.com/repos/juanfont/headscale/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') msg_info "Installing ${APPLICATION} v${RELEASE}" wget -q https://github.com/juanfont/headscale/releases/download/v${RELEASE}/headscale_${RELEASE}_linux_amd64.deb diff --git a/install/heimdall-dashboard-install.sh b/install/heimdall-dashboard-install.sh index e279614ef..dfc80d4f3 100644 --- a/install/heimdall-dashboard-install.sh +++ b/install/heimdall-dashboard-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://heimdall.site/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y apt-transport-https $STD apt-get install -y composer $STD apt-get install -y php8.2-{bz2,curl,sqlite3,zip,xml} diff --git a/install/hev-socks5-server-install.sh b/install/hev-socks5-server-install.sh index d5b6310bc..68e24fd21 100644 --- a/install/hev-socks5-server-install.sh +++ b/install/hev-socks5-server-install.sh @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Setup ${APPLICATION}" RELEASE=$(curl -s https://api.github.com/repos/heiher/${APPLICATION}/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') curl -L -o "${APPLICATION}" "https://github.com/heiher/${APPLICATION}/releases/download/${RELEASE}/hev-socks5-server-linux-x86_64" @@ -32,7 +25,7 @@ mkdir -p /etc/${APPLICATION} USERNAME="admin" PASSWORD=$(openssl rand -base64 16) MARK="0" -echo "$USERNAME $PASSWORD $MARK" > /root/hev.creds +echo "$USERNAME $PASSWORD $MARK" >/root/hev.creds mv main.yml /etc/${APPLICATION}/main.yml msg_ok "Setup ${APPLICATION}" @@ -58,4 +51,4 @@ customize msg_info "Cleaning up" $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/hivemq-install.sh b/install/hivemq-install.sh index 265bcc686..45bfab281 100644 --- a/install/hivemq-install.sh +++ b/install/hivemq-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.hivemq.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg msg_ok "Installed Dependencies" diff --git a/install/hoarder-install.sh b/install/hoarder-install.sh index b0fc7f0d5..e1e6e2a52 100644 --- a/install/hoarder-install.sh +++ b/install/hoarder-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://hoarder.app/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -17,16 +17,13 @@ msg_info "Installing Dependencies" $STD apt-get install -y \ g++ \ build-essential \ - curl \ git \ - sudo \ gnupg \ ca-certificates \ chromium/stable \ chromium-common/stable \ graphicsmagick \ - ghostscript \ - mc + ghostscript msg_ok "Installed Dependencies" msg_info "Installing Additional Tools" @@ -43,13 +40,13 @@ $STD dpkg -i meilisearch.deb wget -q https://raw.githubusercontent.com/meilisearch/meilisearch/latest/config.toml -O /etc/meilisearch.toml MASTER_KEY=$(openssl rand -base64 12) sed -i \ - -e 's|^env =.*|env = "production"|' \ - -e "s|^# master_key =.*|master_key = \"$MASTER_KEY\"|" \ - -e 's|^db_path =.*|db_path = "/var/lib/meilisearch/data"|' \ - -e 's|^dump_dir =.*|dump_dir = "/var/lib/meilisearch/dumps"|' \ - -e 's|^snapshot_dir =.*|snapshot_dir = "/var/lib/meilisearch/snapshots"|' \ - -e 's|^# no_analytics = true|no_analytics = true|' \ - /etc/meilisearch.toml + -e 's|^env =.*|env = "production"|' \ + -e "s|^# master_key =.*|master_key = \"$MASTER_KEY\"|" \ + -e 's|^db_path =.*|db_path = "/var/lib/meilisearch/data"|' \ + -e 's|^dump_dir =.*|dump_dir = "/var/lib/meilisearch/dumps"|' \ + -e 's|^snapshot_dir =.*|snapshot_dir = "/var/lib/meilisearch/snapshots"|' \ + -e 's|^# no_analytics = true|no_analytics = true|' \ + /etc/meilisearch.toml msg_ok "Installed Meilisearch" msg_info "Installing Node.js" diff --git a/install/homarr-install.sh b/install/homarr-install.sh index 2335133eb..f6bca857e 100644 --- a/install/homarr-install.sh +++ b/install/homarr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/homarr-labs/homarr -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - sudo \ - mc \ - curl \ redis-server \ ca-certificates \ gpg \ @@ -76,7 +73,7 @@ rm /etc/nginx/nginx.conf cp /opt/homarr/nginx.conf /etc/nginx/templates/nginx.conf mkdir -p /opt/homarr/apps/cli cp /opt/homarr/packages/cli/cli.cjs /opt/homarr/apps/cli/cli.cjs -echo $'#!/bin/bash\ncd /opt/homarr/apps/cli && node ./cli.cjs "$@"' > /usr/bin/homarr +echo $'#!/bin/bash\ncd /opt/homarr/apps/cli && node ./cli.cjs "$@"' >/usr/bin/homarr chmod +x /usr/bin/homarr mkdir /opt/homarr/build cp ./node_modules/better-sqlite3/build/Release/better_sqlite3.node ./build/better_sqlite3.node diff --git a/install/homeassistant-core-install.sh b/install/homeassistant-core-install.sh index 9a6ea6cdf..c725e59a7 100644 --- a/install/homeassistant-core-install.sh +++ b/install/homeassistant-core-install.sh @@ -15,10 +15,7 @@ update_os msg_info "Installing Dependencies (Patience)" $STD apt-get install -y \ - curl \ git \ - sudo \ - mc \ gnupg \ ca-certificates \ bluez \ @@ -99,4 +96,4 @@ customize msg_info "Cleaning up" $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/homeassistant-install.sh b/install/homeassistant-install.sh index f1a6c4eda..eb1b24af2 100644 --- a/install/homeassistant-install.sh +++ b/install/homeassistant-install.sh @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Setup Python3" $STD apt-get install -y \ python3 \ diff --git a/install/homebox-install.sh b/install/homebox-install.sh index b6bbb7335..8c0df5955 100644 --- a/install/homebox-install.sh +++ b/install/homebox-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/sysadminsmedia/homebox -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,13 +14,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Installing Homebox" RELEASE=$(curl -s https://api.github.com/repos/sysadminsmedia/homebox/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') wget -qO- https://github.com/sysadminsmedia/homebox/releases/download/${RELEASE}/homebox_Linux_x86_64.tar.gz | tar -xzf - -C /opt diff --git a/install/homebridge-install.sh b/install/homebridge-install.sh index 7b788dea9..cc0013e08 100644 --- a/install/homebridge-install.sh +++ b/install/homebridge-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://homebridge.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y avahi-daemon $STD apt-get install -y gnupg2 msg_ok "Installed Dependencies" diff --git a/install/homepage-install.sh b/install/homepage-install.sh index 02f3c5f4a..f96c0d40a 100644 --- a/install/homepage-install.sh +++ b/install/homepage-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://gethomepage.dev/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,10 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl \ - sudo \ - mc \ - gpg +$STD apt-get install -y gpg msg_ok "Installed Dependencies" msg_info "Setting up Node.js Repository" @@ -48,7 +45,7 @@ export NEXT_PUBLIC_VERSION="v$RELEASE" export NEXT_PUBLIC_REVISION="source" export NEXT_TELEMETRY_DISABLED=1 $STD pnpm build -echo "HOMEPAGE_ALLOWED_HOSTS=localhost:3000,${LOCAL_IP}:3000" > /opt/homepage/.env +echo "HOMEPAGE_ALLOWED_HOSTS=localhost:3000,${LOCAL_IP}:3000" >/opt/homepage/.env echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed Homepage v${RELEASE}" diff --git a/install/homer-install.sh b/install/homer-install.sh index 465544082..36b393224 100644 --- a/install/homer-install.sh +++ b/install/homer-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/bastienwirtz/homer -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y pip msg_ok "Installed Dependencies" diff --git a/install/hyperhdr-install.sh b/install/hyperhdr-install.sh index eefbce4ca..ce84bec9a 100644 --- a/install/hyperhdr-install.sh +++ b/install/hyperhdr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.hyperhdr.eu/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg msg_ok "Installed Dependencies" diff --git a/install/hyperion-install.sh b/install/hyperion-install.sh index f5a6965df..2abf73d3c 100644 --- a/install/hyperion-install.sh +++ b/install/hyperion-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://hyperion-project.org/forum/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y lsb-release $STD apt-get install -y gpg $STD apt-get install -y apt-transport-https diff --git a/install/influxdb-install.sh b/install/influxdb-install.sh index 414a3f6c0..cadfe3c37 100644 --- a/install/influxdb-install.sh +++ b/install/influxdb-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.influxdata.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,17 +14,14 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y lsb-base $STD apt-get install -y lsb-release $STD apt-get install -y gnupg2 msg_ok "Installed Dependencies" msg_info "Setting up InfluxDB Repository" -wget -qO- https://repos.influxdata.com/influxdata-archive_compat.key | gpg --dearmor > /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg -echo "deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main" > /etc/apt/sources.list.d/influxdata.list +wget -qO- https://repos.influxdata.com/influxdata-archive_compat.key | gpg --dearmor >/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg +echo "deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main" >/etc/apt/sources.list.d/influxdata.list msg_ok "Set up InfluxDB Repository" read -r -p "Which version of InfluxDB to install? (1 or 2) " prompt diff --git a/install/inspircd-install.sh b/install/inspircd-install.sh index 724b9294a..d0c6ba250 100644 --- a/install/inspircd-install.sh +++ b/install/inspircd-install.sh @@ -13,14 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - mc \ - sudo -msg_ok "Installed Dependencies" - - msg_info "Installing InspIRCd" RELEASE=$(curl -s https://api.github.com/repos/inspircd/inspircd/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') cd /opt diff --git a/install/inventree-install.sh b/install/inventree-install.sh index 49aaa783a..a51c1555e 100644 --- a/install/inventree-install.sh +++ b/install/inventree-install.sh @@ -14,12 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc \ - gnupg \ - sudo +$STD apt-get install -y gnupg temp_file=$(mktemp) wget -q http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb -O $temp_file $STD dpkg -i $temp_file diff --git a/install/iobroker-install.sh b/install/iobroker-install.sh index c2a749d56..018f4a7c2 100644 --- a/install/iobroker-install.sh +++ b/install/iobroker-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.iobroker.net/#en/intro -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y ca-certificates $STD apt-get install -y gnupg msg_ok "Installed Dependencies" diff --git a/install/iventoy-install.sh b/install/iventoy-install.sh index 7376a5aca..ba25fdd4d 100644 --- a/install/iventoy-install.sh +++ b/install/iventoy-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.iventoy.com/en/index.html -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - RELEASE=$(curl -s https://api.github.com/repos/ventoy/pxe/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') msg_info "Installing iVentoy v${RELEASE}" mkdir -p /opt/iventoy/{data,iso} diff --git a/install/jackett-install.sh b/install/jackett-install.sh index c4c21436a..3c93ef694 100644 --- a/install/jackett-install.sh +++ b/install/jackett-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/Jackett/Jackett -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing Jackett" RELEASE=$(wget -q https://github.com/Jackett/Jackett/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) wget -q https://github.com/Jackett/Jackett/releases/download/$RELEASE/Jackett.Binaries.LinuxAMDx64.tar.gz diff --git a/install/jellyfin-install.sh b/install/jellyfin-install.sh index 534294a01..fe945e0bc 100644 --- a/install/jellyfin-install.sh +++ b/install/jellyfin-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://jellyfin.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,10 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo $STD apt-get install -y gpg -$STD apt-get install -y mc msg_ok "Installed Dependencies" msg_info "Setting Up Hardware Acceleration" @@ -32,10 +29,10 @@ fi msg_ok "Set Up Hardware Acceleration" msg_info "Installing Jellyfin" -VERSION="$( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release )" +VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)" # If the keyring directory is absent, create it if [[ ! -d /etc/apt/keyrings ]]; then - mkdir -p /etc/apt/keyrings + mkdir -p /etc/apt/keyrings fi # Download the repository signing key and install it to the keyring directory curl -fsSL https://repo.jellyfin.org/jellyfin_team.gpg.key | gpg --dearmor --yes --output /etc/apt/keyrings/jellyfin.gpg diff --git a/install/jellyseerr-install.sh b/install/jellyseerr-install.sh index f36ce5a67..c7966c185 100644 --- a/install/jellyseerr-install.sh +++ b/install/jellyseerr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://docs.jellyseerr.dev/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,11 +15,8 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ gnupg \ - mc \ git \ - sudo \ build-essential msg_ok "Installed Dependencies" diff --git a/install/jenkins-install.sh b/install/jenkins-install.sh index 417997f81..55d4398c6 100644 --- a/install/jenkins-install.sh +++ b/install/jenkins-install.sh @@ -13,11 +13,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - mc \ - sudo \ - openjdk-17-jre +$STD apt-get install -y openjdk-17-jre msg_ok "Installed Dependencies" msg_info "Setup Jenkins" @@ -33,4 +29,4 @@ customize msg_info "Cleaning up" $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/jupyternotebook-install.sh b/install/jupyternotebook-install.sh index 4e22d61b9..843921187 100644 --- a/install/jupyternotebook-install.sh +++ b/install/jupyternotebook-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ python3 \ python3-pip msg_ok "Installed Dependencies" diff --git a/install/kavita-install.sh b/install/kavita-install.sh index 24318d7eb..0e98a210f 100644 --- a/install/kavita-install.sh +++ b/install/kavita-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.kavitareader.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing Kavita" cd /opt RELEASE=$(curl -s https://api.github.com/repos/Kareadita/Kavita/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') diff --git a/install/keycloak-install.sh b/install/keycloak-install.sh index e0a1024ce..472187d44 100644 --- a/install/keycloak-install.sh +++ b/install/keycloak-install.sh @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ -curl \ -sudo \ -mc \ -gnupg +$STD apt-get install -y gnupg msg_ok "Installed Dependencies" msg_info "Installing OpenJDK" diff --git a/install/kimai-install.sh b/install/kimai-install.sh index 85767f8a2..de282959e 100644 --- a/install/kimai-install.sh +++ b/install/kimai-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.kimai.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -16,9 +16,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ apt-transport-https \ - sudo \ - mc \ - curl \ apache2 \ git \ expect \ @@ -52,11 +49,11 @@ mysql -u root -e "CREATE DATABASE $DB_NAME;" mysql -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$DB_PASS');" mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;" { - echo "Kimai-Credentials" - echo "Kimai Database User: $DB_USER" - echo "Kimai Database Password: $DB_PASS" - echo "Kimai Database Name: $DB_NAME" -} >> ~/kimai.creds + echo "Kimai-Credentials" + echo "Kimai Database User: $DB_USER" + echo "Kimai Database Password: $DB_PASS" + echo "Kimai Database Name: $DB_NAME" +} >>~/kimai.creds msg_ok "Set up database" msg_info "Installing Kimai (Patience)" @@ -65,7 +62,7 @@ wget -q "https://github.com/kimai/kimai/archive/refs/tags/${RELEASE}.zip" unzip -q ${RELEASE}.zip mv kimai-${RELEASE} /opt/kimai cd /opt/kimai -echo "export COMPOSER_ALLOW_SUPERUSER=1" >> ~/.bashrc +echo "export COMPOSER_ALLOW_SUPERUSER=1" >>~/.bashrc source ~/.bashrc $STD composer install --no-dev --optimize-autoloader --no-interaction cp .env.dist .env @@ -117,7 +114,7 @@ cat </etc/apache2/sites-available/kimai.conf EOF $STD a2ensite kimai.conf -$STD a2dissite 000-default.conf +$STD a2dissite 000-default.conf $STD systemctl reload apache2 msg_ok "Created Service" diff --git a/install/koillection-install.sh b/install/koillection-install.sh index 66b58575b..8a844b50a 100644 --- a/install/koillection-install.sh +++ b/install/koillection-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://koillection.github.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,11 +15,7 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ - gnupg2\ - postgresql \ + gnupg2 postgresql \ apache2 \ lsb-release msg_ok "Installed Dependencies" @@ -46,11 +42,11 @@ DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13) $STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';" $STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER TEMPLATE template0;" { -echo "Koillection Credentials" -echo "Koillection Database User: $DB_USER" -echo "Koillection Database Password: $DB_PASS" -echo "Koillection Database Name: $DB_NAME" -} >> ~/koillection.creds + echo "Koillection Credentials" + echo "Koillection Database User: $DB_USER" + echo "Koillection Database Password: $DB_PASS" + echo "Koillection Database Name: $DB_NAME" +} >>~/koillection.creds msg_ok "Set up PostgreSQL" msg_info "Setting up Node.js/Yarn" @@ -73,19 +69,19 @@ cd /opt/koillection cp /opt/koillection/.env /opt/koillection/.env.local APP_SECRET=$(openssl rand -base64 32) sed -i -e "s|^APP_ENV=.*|APP_ENV=prod|" \ - -e "s|^APP_DEBUG=.*|APP_DEBUG=0|" \ - -e "s|^APP_SECRET=.*|APP_SECRET=${APP_SECRET}|" \ - -e "s|^DB_NAME=.*|DB_NAME=${DB_NAME}|" \ - -e "s|^DB_USER=.*|DB_USER=${DB_USER}|" \ - -e "s|^DB_PASSWORD=.*|DB_PASSWORD=${DB_PASS}|" \ - /opt/koillection/.env.local + -e "s|^APP_DEBUG=.*|APP_DEBUG=0|" \ + -e "s|^APP_SECRET=.*|APP_SECRET=${APP_SECRET}|" \ + -e "s|^DB_NAME=.*|DB_NAME=${DB_NAME}|" \ + -e "s|^DB_USER=.*|DB_USER=${DB_USER}|" \ + -e "s|^DB_PASSWORD=.*|DB_PASSWORD=${DB_PASS}|" \ + /opt/koillection/.env.local export COMPOSER_ALLOW_SUPERUSER=1 $STD composer install --no-dev -o --no-interaction --classmap-authoritative $STD php bin/console doctrine:migrations:migrate --no-interaction $STD php bin/console app:translations:dump cd assets/ $STD yarn install -$STD yarn build +$STD yarn build chown -R www-data:www-data /opt/koillection/public/uploads echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed Koillection" diff --git a/install/kometa-install.sh b/install/kometa-install.sh index 23c0f5516..540629f81 100644 --- a/install/kometa-install.sh +++ b/install/kometa-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/Kometa-Team/Kometa -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - mc \ - sudo -msg_ok "Installed Dependencies" - msg_info "Setup Python 3" $STD apt-get install python3-pip -y rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED diff --git a/install/komga-install.sh b/install/komga-install.sh index 1873ee7c1..63db9397a 100644 --- a/install/komga-install.sh +++ b/install/komga-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://komga.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - mc \ - sudo \ - openjdk-17-jre +$STD apt-get install -y openjdk-17-jre msg_ok "Installed Dependencies" msg_info "Installing Komga" diff --git a/install/komodo-install.sh b/install/komodo-install.sh index 9650a4d3b..153c280d1 100644 --- a/install/komodo-install.sh +++ b/install/komodo-install.sh @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc \ - ca-certificates +$STD apt-get install -y ca-certificates msg_ok "Installed Dependencies" msg_info "Setup Docker Repository" @@ -27,8 +23,8 @@ curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/doc chmod a+r /etc/apt/keyrings/docker.asc echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \ - $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ - sudo tee /etc/apt/sources.list.d/docker.list > /dev/null + $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | + sudo tee /etc/apt/sources.list.d/docker.list >/dev/null $STD apt-get update msg_ok "Setup Docker Repository" @@ -49,25 +45,24 @@ read -rp "Enter your choice (default: 1): " DB_CHOICE DB_CHOICE=${DB_CHOICE:-1} case $DB_CHOICE in - 1) - DB_COMPOSE_FILE="mongo.compose.yaml" - ;; - 2) - DB_COMPOSE_FILE="sqlite.compose.yaml" - ;; - 3) - DB_COMPOSE_FILE="postgres.compose.yaml" - ;; - *) - echo "Invalid choice. Defaulting to MongoDB." - DB_COMPOSE_FILE="mongo.compose.yaml" - ;; +1) + DB_COMPOSE_FILE="mongo.compose.yaml" + ;; +2) + DB_COMPOSE_FILE="sqlite.compose.yaml" + ;; +3) + DB_COMPOSE_FILE="postgres.compose.yaml" + ;; +*) + echo "Invalid choice. Defaulting to MongoDB." + DB_COMPOSE_FILE="mongo.compose.yaml" + ;; esac mkdir -p /opt/komodo cd /opt/komodo wget -q "https://raw.githubusercontent.com/mbecker20/komodo/main/compose/$DB_COMPOSE_FILE" - msg_info "Setup Komodo Environment" wget -q -O /opt/komodo/compose.env https://raw.githubusercontent.com/mbecker20/komodo/main/compose/compose.env DB_PASSWORD=$(openssl rand -base64 16 | tr -d '/+=') diff --git a/install/kubo-install.sh b/install/kubo-install.sh index 023d04598..66961d3a3 100644 --- a/install/kubo-install.sh +++ b/install/kubo-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/ipfs/kubo -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg msg_ok "Installed Dependencies" diff --git a/install/lazylibrarian-install.sh b/install/lazylibrarian-install.sh index a85f47896..7749ae6bc 100644 --- a/install/lazylibrarian-install.sh +++ b/install/lazylibrarian-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://gitlab.com/LazyLibrarian/LazyLibrarian -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -16,9 +16,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ git \ libpng-dev \ libjpeg-dev \ diff --git a/install/lidarr-install.sh b/install/lidarr-install.sh index 7bdabd2ea..301c21011 100644 --- a/install/lidarr-install.sh +++ b/install/lidarr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://lidarr.audio/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y sqlite3 $STD apt-get install -y libchromaprint-tools $STD apt-get install -y mediainfo diff --git a/install/linkwarden-install.sh b/install/linkwarden-install.sh index c35e29291..91f6483cb 100644 --- a/install/linkwarden-install.sh +++ b/install/linkwarden-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://linkwarden.app/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -16,9 +16,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ make \ git \ postgresql \ @@ -59,12 +56,12 @@ $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8' $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET default_transaction_isolation TO 'read committed';" $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC';" { - echo "Linkwarden-Credentials" - echo "Linkwarden Database User: $DB_USER" - echo "Linkwarden Database Password: $DB_PASS" - echo "Linkwarden Database Name: $DB_NAME" - echo "Linkwarden Secret: $SECRET_KEY" -} >> ~/linkwarden.creds + echo "Linkwarden-Credentials" + echo "Linkwarden Database User: $DB_USER" + echo "Linkwarden Database Password: $DB_PASS" + echo "Linkwarden Database Name: $DB_NAME" + echo "Linkwarden Secret: $SECRET_KEY" +} >>~/linkwarden.creds msg_ok "Set up PostgreSQL DB" read -r -p "Would you like to add Adminer? " prompt @@ -88,7 +85,7 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then echo "Adminer Database User: $DB_USER" echo "Adminer Database Password: $DB_PASS" echo "Adminer Database Name: $DB_NAME" -} >> ~/linkwarden.creds + } >>~/linkwarden.creds msg_ok "Installed Adminer" fi diff --git a/install/listmonk-install.sh b/install/listmonk-install.sh index 17163ed9b..4896af051 100644 --- a/install/listmonk-install.sh +++ b/install/listmonk-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://listmonk.app/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc \ - postgresql +$STD apt-get install -y postgresql msg_ok "Installed Dependencies" msg_info "Setting up PostgreSQL" @@ -28,11 +24,11 @@ DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13) $STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';" $STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER TEMPLATE template0;" { -echo "listmonk-Credentials" -echo -e "listmonk Database User: \e[32m$DB_USER\e[0m" -echo -e "listmonk Database Password: \e[32m$DB_PASS\e[0m" -echo -e "listmonk Database Name: \e[32m$DB_NAME\e[0m" -} >> ~/listmonk.creds + echo "listmonk-Credentials" + echo -e "listmonk Database User: \e[32m$DB_USER\e[0m" + echo -e "listmonk Database Password: \e[32m$DB_PASS\e[0m" + echo -e "listmonk Database Name: \e[32m$DB_NAME\e[0m" +} >>~/listmonk.creds msg_ok "Set up PostgreSQL" msg_info "Installing listmonk" @@ -77,4 +73,4 @@ msg_info "Cleaning up" rm -rf "/opt/listmonk_${RELEASE}_linux_amd64.tar.gz" $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/lldap-install.sh b/install/lldap-install.sh index a122ca146..57a17cfbe 100644 --- a/install/lldap-install.sh +++ b/install/lldap-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/lldap/lldap -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg msg_ok "Installed Dependencies" diff --git a/install/lubelogger-install.sh b/install/lubelogger-install.sh index a696ec7fc..43323e725 100644 --- a/install/lubelogger-install.sh +++ b/install/lubelogger-install.sh @@ -14,16 +14,9 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - wget \ - mc \ - zip \ - jq +$STD apt-get install -y jq msg_ok "Installed Dependencies" - msg_info "Installing LubeLogger" cd /opt mkdir -p /opt/lubelogger @@ -34,7 +27,7 @@ wget -q https://github.com/hargata/lubelog/releases/download/v${RELEASE}/LubeLog unzip -q LubeLogger_v${RELEASE_TRIMMED}_linux_x64.zip chmod 700 /opt/lubelogger/CarCareTracker cp /opt/lubelogger/appsettings.json /opt/lubelogger/appsettings_bak.json -jq '.Kestrel = {"Endpoints": {"Http": {"Url": "http://0.0.0.0:5000"}}}' /opt/lubelogger/appsettings_bak.json > /opt/lubelogger/appsettings.json +jq '.Kestrel = {"Endpoints": {"Http": {"Url": "http://0.0.0.0:5000"}}}' /opt/lubelogger/appsettings_bak.json >/opt/lubelogger/appsettings.json echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" msg_ok "Installed LubeLogger" diff --git a/install/mafl-install.sh b/install/mafl-install.sh index d9600d21b..daa3a4e21 100644 --- a/install/mafl-install.sh +++ b/install/mafl-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://mafl.hywax.space/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y make $STD apt-get install -y g++ $STD apt-get install -y gcc diff --git a/install/magicmirror-install.sh b/install/magicmirror-install.sh index 8864b7eba..58345e8b4 100644 --- a/install/magicmirror-install.sh +++ b/install/magicmirror-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://magicmirror.builders/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc \ - gnupg +$STD apt-get install -y gnupg msg_ok "Installed Dependencies" msg_info "Setting up Node.js Repository" diff --git a/install/mariadb-install.sh b/install/mariadb-install.sh index 0a1fff468..94bcb6c76 100644 --- a/install/mariadb-install.sh +++ b/install/mariadb-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://mariadb.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing MariaDB" $STD apt-get install -y mariadb-server sed -i 's/^# *\(port *=.*\)/\1/' /etc/mysql/my.cnf @@ -36,17 +30,17 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then php-zip \ php-gd \ php-json \ - php-curl - - wget -q "https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.tar.gz" - mkdir -p /var/www/html/phpMyAdmin - tar xf phpMyAdmin-5.2.1-all-languages.tar.gz --strip-components=1 -C /var/www/html/phpMyAdmin - cp /var/www/html/phpMyAdmin/config.sample.inc.php /var/www/html/phpMyAdmin/config.inc.php - SECRET=$(openssl rand -base64 24) - sed -i "s#\$cfg\['blowfish_secret'\] = '';#\$cfg['blowfish_secret'] = '${SECRET}';#" /var/www/html/phpMyAdmin/config.inc.php - chmod 660 /var/www/html/phpMyAdmin/config.inc.php - chown -R www-data:www-data /var/www/html/phpMyAdmin - systemctl restart apache2 + php-curl + + wget -q "https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.tar.gz" + mkdir -p /var/www/html/phpMyAdmin + tar xf phpMyAdmin-5.2.1-all-languages.tar.gz --strip-components=1 -C /var/www/html/phpMyAdmin + cp /var/www/html/phpMyAdmin/config.sample.inc.php /var/www/html/phpMyAdmin/config.inc.php + SECRET=$(openssl rand -base64 24) + sed -i "s#\$cfg\['blowfish_secret'\] = '';#\$cfg['blowfish_secret'] = '${SECRET}';#" /var/www/html/phpMyAdmin/config.inc.php + chmod 660 /var/www/html/phpMyAdmin/config.inc.php + chown -R www-data:www-data /var/www/html/phpMyAdmin + systemctl restart apache2 msg_ok "Installed phpMyAdmin" fi diff --git a/install/matterbridge-install.sh b/install/matterbridge-install.sh index f8b0603ce..44e102bef 100644 --- a/install/matterbridge-install.sh +++ b/install/matterbridge-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/Luligu/matterbridge/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg msg_ok "Installed Dependencies" @@ -32,7 +29,7 @@ $STD apt-get update $STD apt-get install -y nodejs msg_ok "Installed Node.js" -msg_info "Install Matterbridge" +msg_info "Install Matterbridge" mkdir -p /root/Matterbridge $STD npm install -g matterbridge msg_ok "Installed Matterbridge" diff --git a/install/mattermost-install.sh b/install/mattermost-install.sh index b5f7f5aad..d94703778 100644 --- a/install/mattermost-install.sh +++ b/install/mattermost-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://mattermost.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,11 +15,8 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ gpg \ - postgresql + postgresql msg_ok "Installed Dependencies" msg_info "Setting up PostgreSQL" @@ -32,11 +29,11 @@ $STD sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE $DB_NAME to $DB_ $STD sudo -u postgres psql -c "ALTER DATABASE $DB_NAME OWNER TO $DB_USER;" $STD sudo -u postgres psql -c "GRANT USAGE, CREATE ON SCHEMA PUBLIC TO $DB_USER;" { - echo "Mattermost Credentials" - echo "Database User: $DB_USER" - echo "Database Password: $DB_PASS" - echo "Database Name: $DB_NAME" -} >> ~/mattermost.creds + echo "Mattermost Credentials" + echo "Database User: $DB_USER" + echo "Database Password: $DB_PASS" + echo "Database Name: $DB_NAME" +} >>~/mattermost.creds msg_ok "Set up PostgreSQL" msg_info "Installing Mattermost" @@ -47,7 +44,7 @@ $STD apt-get update $STD apt-get install -y mattermost $STD install -C -m 600 -o mattermost -g mattermost /opt/mattermost/config/config.defaults.json /opt/mattermost/config/config.json sed -i -e "/DataSource/c\ \"DataSource\": \"postgres://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME?sslmode=disable&connect_timeout=10\"," \ - -e "/SiteURL/c\ \"SiteURL\": \"http://$IPADDRESS:8065\"," /opt/mattermost/config/config.json + -e "/SiteURL/c\ \"SiteURL\": \"http://$IPADDRESS:8065\"," /opt/mattermost/config/config.json systemctl enable -q --now mattermost.service msg_ok "Installed Mattermost" diff --git a/install/mediamtx-install.sh b/install/mediamtx-install.sh index 497a0b068..1e951579e 100644 --- a/install/mediamtx-install.sh +++ b/install/mediamtx-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/bluenviron/mediamtx -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y ffmpeg msg_ok "Installed Dependencies" diff --git a/install/medusa-install.sh b/install/medusa-install.sh index a9ef95d17..8dfaf2430 100644 --- a/install/medusa-install.sh +++ b/install/medusa-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/pymedusa/Medusa -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -17,11 +17,9 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ gpg \ - curl \ - sudo \ - mc \ git-core \ mediainfo + cat </etc/apt/sources.list.d/non-free.list deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware EOF diff --git a/install/memos-install.sh b/install/memos-install.sh index 191843915..0fe256a97 100644 --- a/install/memos-install.sh +++ b/install/memos-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/usememos/memos -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -18,10 +18,7 @@ msg_info "Installing Dependencies" $STD apt-get install -y \ build-essential \ git \ - curl \ - sudo \ - tzdata \ - mc + tzdata msg_ok "Installed Dependencies" msg_info "Setting up Node.js Repository" @@ -54,7 +51,7 @@ msg_info "Installing Memos (Patience)" mkdir -p /opt/memos_data export NODE_OPTIONS="--max-old-space-size=2048" $STD git clone https://github.com/usememos/memos.git /opt/memos -cd /opt/memos/web +cd /opt/memos/web $STD pnpm i --frozen-lockfile $STD pnpm build cd /opt/memos diff --git a/install/meshcentral-install.sh b/install/meshcentral-install.sh index f9091a953..e5f94063d 100644 --- a/install/meshcentral-install.sh +++ b/install/meshcentral-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://meshcentral.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y ca-certificates $STD apt-get install -y gnupg msg_ok "Installed Dependencies" diff --git a/install/metube-install.sh b/install/metube-install.sh index 49565cea3..5e07c68a9 100644 --- a/install/metube-install.sh +++ b/install/metube-install.sh @@ -17,19 +17,16 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y --no-install-recommends \ build-essential \ - curl \ aria2 \ coreutils \ gcc \ g++ \ musl-dev \ - sudo \ ffmpeg \ git \ make \ gnupg \ - ca-certificates \ - mc + ca-certificates msg_ok "Installed Dependencies" msg_info "Setup Python3" @@ -59,7 +56,7 @@ $STD node_modules/.bin/ng build cd /opt/metube $STD pip3 install pipenv $STD pipenv install -mkdir -p /opt/metube_downloads /opt/metube_downloads/.metube /opt/metube_downloads/music /opt/metube_downloads/videos +mkdir -p /opt/metube_downloads /opt/metube_downloads/.metube /opt/metube_downloads/music /opt/metube_downloads/videos cat </opt/metube/.env DOWNLOAD_DIR=/opt/metube_downloads STATE_DIR=/opt/metube_downloads/.metube diff --git a/install/minio-install.sh b/install/minio-install.sh index f06b1b3b8..e6e57c95d 100644 --- a/install/minio-install.sh +++ b/install/minio-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/minio/minio -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Setup MinIO" RELEASE=$(curl -s https://api.github.com/repos/minio/minio/releases/latest | grep '"tag_name"' | awk -F '"' '{print $4}') wget -q https://dl.min.io/server/minio/release/linux-amd64/minio @@ -41,7 +34,7 @@ EOF echo "MinIO-Credentials" echo "MinIO Admin User: $MINIO_ADMIN_USER" echo "MinIO Admin Password: $MINIO_ADMIN_PASSWORD" -} >> ~/minio.creds +} >>~/minio.creds echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Setup MinIO" diff --git a/install/mongodb-install.sh b/install/mongodb-install.sh index 728c878f1..478d54835 100644 --- a/install/mongodb-install.sh +++ b/install/mongodb-install.sh @@ -1,4 +1,3 @@ - #!/usr/bin/env bash # Copyright (c) 2021-2025 tteck @@ -6,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.mongodb.com/de-de -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -16,12 +15,8 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y gnupg -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc msg_ok "Installed Dependencies" -# Abfrage für die MongoDB-Version read -p "Do you want to install MongoDB 8.0 instead of 7.0? [y/N]: " install_mongodb_8 if [[ "$install_mongodb_8" =~ ^[Yy]$ ]]; then MONGODB_VERSION="8.0" diff --git a/install/monica-install.sh b/install/monica-install.sh index e7f6555de..8b2232169 100644 --- a/install/monica-install.sh +++ b/install/monica-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.monicahq.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,15 +15,11 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ - gnupg2\ - mariadb-server \ - apache2 \ - libapache2-mod-php \ - php-{bcmath,curl,dom,gd,gmp,iconv,intl,json,mbstring,mysqli,opcache,pdo-mysql,redis,tokenizer,xml,zip} \ - composer + gnupg2 mariadb-server \ + apache2 \ + libapache2-mod-php \ + php-{bcmath,curl,dom,gd,gmp,iconv,intl,json,mbstring,mysqli,opcache,pdo-mysql,redis,tokenizer,xml,zip} \ + composer msg_ok "Installed Dependencies" msg_info "Setting up MariaDB" @@ -38,7 +34,7 @@ $STD mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH echo "monica Database User: $DB_USER" echo "monica Database Password: $DB_PASS" echo "monica Database Name: $DB_NAME" -} >> ~/monica.creds +} >>~/monica.creds msg_ok "Set up MariaDB" msg_info "Setting up Node.js/Yarn" @@ -61,9 +57,9 @@ cd /opt/monica cp /opt/monica/.env.example /opt/monica/.env HASH_SALT=$(openssl rand -base64 32) sed -i -e "s|^DB_USERNAME=.*|DB_USERNAME=${DB_USER}|" \ - -e "s|^DB_PASSWORD=.*|DB_PASSWORD=${DB_PASS}|" \ - -e "s|^HASH_SALT=.*|HASH_SALT=${HASH_SALT}|" \ - /opt/monica/.env + -e "s|^DB_PASSWORD=.*|DB_PASSWORD=${DB_PASS}|" \ + -e "s|^HASH_SALT=.*|HASH_SALT=${HASH_SALT}|" \ + /opt/monica/.env $STD composer install --no-dev -o --no-interaction $STD yarn install $STD yarn run production diff --git a/install/motioneye-install.sh b/install/motioneye-install.sh index 60cf0532c..d6242bc2a 100644 --- a/install/motioneye-install.sh +++ b/install/motioneye-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/motioneye-project/motioneye -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y git $STD apt-get install -y cifs-utils msg_ok "Installed Dependencies" diff --git a/install/mqtt-install.sh b/install/mqtt-install.sh index 716e62dee..f02b103b0 100644 --- a/install/mqtt-install.sh +++ b/install/mqtt-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://mosquitto.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg msg_ok "Installed Dependencies" diff --git a/install/mylar3-install.sh b/install/mylar3-install.sh index ec709b0c1..14cc2ef20 100644 --- a/install/mylar3-install.sh +++ b/install/mylar3-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/mylar3/mylar3 -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,12 +14,8 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc \ - jq -echo "deb http://deb.debian.org/debian bookworm non-free non-free-firmware" > /etc/apt/sources.list.d/non-free.list +$STD apt-get install -y jq +echo "deb http://deb.debian.org/debian bookworm non-free non-free-firmware" >/etc/apt/sources.list.d/non-free.list $STD apt-get update $STD apt-get install -y unrar rm /etc/apt/sources.list.d/non-free.list @@ -37,7 +33,7 @@ mkdir -p /opt/mylar3-data RELEASE=$(curl -s https://api.github.com/repos/mylar3/mylar3/releases/latest | jq -r '.tag_name') wget -qO- https://github.com/mylar3/mylar3/archive/refs/tags/${RELEASE}.tar.gz | tar -xz --strip-components=1 -C /opt/mylar3 $STD pip install --no-cache-dir -r /opt/mylar3/requirements.txt -echo "${RELEASE}" > /opt/${APPLICATION}_version.txt +echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed ${APPLICATION}" msg_info "Creating Service" diff --git a/install/myspeed-install.sh b/install/myspeed-install.sh index 6aac988dc..da14494ca 100644 --- a/install/myspeed-install.sh +++ b/install/myspeed-install.sh @@ -15,15 +15,12 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ build-essential \ g++ \ make \ - sudo \ make \ gpg \ - ca-certificates \ - mc + ca-certificates msg_ok "Installed Dependencies" msg_info "Setting up Node.js Repository" diff --git a/install/mysql-install.sh b/install/mysql-install.sh index abb7b5c93..c6899ae43 100644 --- a/install/mysql-install.sh +++ b/install/mysql-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.mysql.com/products/community | https://www.phpmyadmin.net -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -16,27 +16,24 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - sudo \ lsb-release \ - curl \ - gnupg \ - mc + gnupg msg_ok "Installed Dependencies" RELEASE_REPO="mysql-8.0" RELEASE_AUTH="mysql_native_password" read -r -p "Would you like to install the MySQL 8.4 LTS release instead of MySQL 8.0 (bug fix track; EOL April-2026)? " prompt if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then - RELEASE_REPO="mysql-8.4-lts" - RELEASE_AUTH="caching_sha2_password" + RELEASE_REPO="mysql-8.4-lts" + RELEASE_AUTH="caching_sha2_password" fi msg_info "Installing MySQL" -curl -fsSL https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 | gpg --dearmor -o /usr/share/keyrings/mysql.gpg +curl -fsSL https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 | gpg --dearmor -o /usr/share/keyrings/mysql.gpg if [ "$(lsb_release -si)" = "Debian" ]; then - echo "deb [signed-by=/usr/share/keyrings/mysql.gpg] http://repo.mysql.com/apt/debian $(lsb_release -sc) ${RELEASE_REPO}" >/etc/apt/sources.list.d/mysql.list + echo "deb [signed-by=/usr/share/keyrings/mysql.gpg] http://repo.mysql.com/apt/debian $(lsb_release -sc) ${RELEASE_REPO}" >/etc/apt/sources.list.d/mysql.list else - echo "deb [signed-by=/usr/share/keyrings/mysql.gpg] http://repo.mysql.com/apt/ubuntu $(lsb_release -sc) ${RELEASE_REPO}" >/etc/apt/sources.list.d/mysql.list + echo "deb [signed-by=/usr/share/keyrings/mysql.gpg] http://repo.mysql.com/apt/ubuntu $(lsb_release -sc) ${RELEASE_REPO}" >/etc/apt/sources.list.d/mysql.list fi $STD apt-get update export DEBIAN_FRONTEND=noninteractive @@ -64,17 +61,17 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then php-zip \ php-gd \ php-json \ - php-curl - - wget -q "https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.tar.gz" - mkdir -p /var/www/html/phpMyAdmin - tar xf phpMyAdmin-5.2.1-all-languages.tar.gz --strip-components=1 -C /var/www/html/phpMyAdmin - cp /var/www/html/phpMyAdmin/config.sample.inc.php /var/www/html/phpMyAdmin/config.inc.php - SECRET=$(openssl rand -base64 24) - sed -i "s#\$cfg\['blowfish_secret'\] = '';#\$cfg['blowfish_secret'] = '${SECRET}';#" /var/www/html/phpMyAdmin/config.inc.php - chmod 660 /var/www/html/phpMyAdmin/config.inc.php - chown -R www-data:www-data /var/www/html/phpMyAdmin - systemctl restart apache2 + php-curl + + wget -q "https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.tar.gz" + mkdir -p /var/www/html/phpMyAdmin + tar xf phpMyAdmin-5.2.1-all-languages.tar.gz --strip-components=1 -C /var/www/html/phpMyAdmin + cp /var/www/html/phpMyAdmin/config.sample.inc.php /var/www/html/phpMyAdmin/config.inc.php + SECRET=$(openssl rand -base64 24) + sed -i "s#\$cfg\['blowfish_secret'\] = '';#\$cfg['blowfish_secret'] = '${SECRET}';#" /var/www/html/phpMyAdmin/config.inc.php + chmod 660 /var/www/html/phpMyAdmin/config.inc.php + chown -R www-data:www-data /var/www/html/phpMyAdmin + systemctl restart apache2 msg_ok "Installed phpMyAdmin" fi diff --git a/install/n8n-install.sh b/install/n8n-install.sh index 0940cf88b..9445f5790 100644 --- a/install/n8n-install.sh +++ b/install/n8n-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://n8n.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y ca-certificates $STD apt-get install -y gnupg msg_ok "Installed Dependencies" diff --git a/install/navidrome-install.sh b/install/navidrome-install.sh index 4b9aeadf7..721ccd6dd 100644 --- a/install/navidrome-install.sh +++ b/install/navidrome-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.navidrome.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies (patience)" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y ffmpeg msg_ok "Installed Dependencies" diff --git a/install/neo4j-install.sh b/install/neo4j-install.sh index 3d7ecb1f4..fdc0c1c17 100644 --- a/install/neo4j-install.sh +++ b/install/neo4j-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://neo4j.com/product/neo4j-graph-database/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,15 +15,12 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg msg_ok "Installed Dependencies" msg_info "Installing Neo4j (patience)" wget -qO- https://debian.neo4j.com/neotechnology.gpg.key | gpg --dearmor -o /etc/apt/keyrings/neotechnology.gpg -echo 'deb [signed-by=/etc/apt/keyrings/neotechnology.gpg] https://debian.neo4j.com stable latest' > /etc/apt/sources.list.d/neo4j.list +echo 'deb [signed-by=/etc/apt/keyrings/neotechnology.gpg] https://debian.neo4j.com stable latest' >/etc/apt/sources.list.d/neo4j.list $STD apt-get update $STD apt-get install -y neo4j sed -i '/server.default_listen_address/s/^#//' /etc/neo4j/neo4j.conf diff --git a/install/netbox-install.sh b/install/netbox-install.sh index e5d9a78ff..40773acd7 100644 --- a/install/netbox-install.sh +++ b/install/netbox-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://netboxlabs.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ apache2 \ redis-server \ postgresql \ @@ -41,11 +38,11 @@ DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13) $STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';" $STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER TEMPLATE template0;" { -echo "Netbox-Credentials" -echo -e "Netbox Database User: \e[32m$DB_USER\e[0m" -echo -e "Netbox Database Password: \e[32m$DB_PASS\e[0m" -echo -e "Netbox Database Name: \e[32m$DB_NAME\e[0m" -} >> ~/netbox.creds + echo "Netbox-Credentials" + echo -e "Netbox Database User: \e[32m$DB_USER\e[0m" + echo -e "Netbox Database Password: \e[32m$DB_PASS\e[0m" + echo -e "Netbox Database Name: \e[32m$DB_NAME\e[0m" +} >>~/netbox.creds msg_ok "Set up PostgreSQL" msg_info "Installing NetBox (Patience)" @@ -85,7 +82,7 @@ systemctl daemon-reload systemctl enable -q --now netbox netbox-rq echo "${RELEASE}" >/opt/${APPLICATION}_version.txt -echo -e "Netbox Secret: \e[32m$SECRET_KEY\e[0m" >> ~/netbox.creds +echo -e "Netbox Secret: \e[32m$SECRET_KEY\e[0m" >>~/netbox.creds msg_ok "Installed NetBox" msg_info "Setting up Django Admin" @@ -93,7 +90,7 @@ DJANGO_USER=Admin DJANGO_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13) source /opt/netbox/venv/bin/activate -$STD python3 /opt/netbox/netbox/manage.py shell << EOF +$STD python3 /opt/netbox/netbox/manage.py shell <> ~/netbox.creds + echo "" + echo "Netbox-Django-Credentials" + echo -e "Django User: \e[32m$DJANGO_USER\e[0m" + echo -e "Django Password: \e[32m$DJANGO_PASS\e[0m" +} >>~/netbox.creds msg_ok "Setup Django Admin" motd_ssh diff --git a/install/nextcloudpi-install.sh b/install/nextcloudpi-install.sh index a3bfa4980..f246c40f9 100644 --- a/install/nextcloudpi-install.sh +++ b/install/nextcloudpi-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.turnkeylinux.org/nextcloud -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Installing NextCloudPi (Patience)" bash <(curl -fsSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh) >/dev/null 2>&1 msg_ok "Installed NextCloudPi" diff --git a/install/nextpvr-install.sh b/install/nextpvr-install.sh index 98483d949..4a4647d0e 100644 --- a/install/nextpvr-install.sh +++ b/install/nextpvr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://nextpvr.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -18,16 +18,13 @@ $STD apt-get install -y \ mediainfo \ libmediainfo-dev \ libc6 \ - curl \ - sudo \ libgdiplus \ acl \ dvb-tools \ libdvbv5-0 \ dtv-scan-tables \ libc6-dev \ - ffmpeg \ - mc + ffmpeg msg_ok "Installed Dependencies" msg_info "Setup NextPVR (Patience)" diff --git a/install/nginxproxymanager-install.sh b/install/nginxproxymanager-install.sh index 0cdc99a30..8627bf159 100644 --- a/install/nginxproxymanager-install.sh +++ b/install/nginxproxymanager-install.sh @@ -16,9 +16,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get update $STD apt-get -y install \ - sudo \ - mc \ - curl \ gnupg \ make \ gcc \ diff --git a/install/nocodb-install.sh b/install/nocodb-install.sh index 29ce2b969..2ee8866b2 100644 --- a/install/nocodb-install.sh +++ b/install/nocodb-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.nocodb.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing NocoDB" mkdir -p /opt/nocodb cd /opt/nocodb diff --git a/install/node-red-install.sh b/install/node-red-install.sh index 7fc3cf3d6..6bf096e15 100644 --- a/install/node-red-install.sh +++ b/install/node-red-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://nodered.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y git $STD apt-get install -y ca-certificates $STD apt-get install -y gnupg diff --git a/install/nodebb-install.sh b/install/nodebb-install.sh index 3fca6f68d..3318ede46 100644 --- a/install/nodebb-install.sh +++ b/install/nodebb-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/NodeBB/NodeBB -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,15 +15,12 @@ update_os msg_info "Installing Dependencies (Patience)" $STD apt-get install -y \ - build-essential \ - curl \ - sudo \ - make \ - redis-server \ - expect \ - gnupg \ - ca-certificates \ - mc + build-essential \ + make \ + redis-server \ + expect \ + gnupg \ + ca-certificates msg_ok "Installed Dependencies" msg_info "Setting up Node.js & MongoDB Repository" @@ -32,7 +29,7 @@ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dea echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" >/etc/apt/sources.list.d/nodesource.list curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | gpg --dearmor -o /etc/apt/keyrings/mongodb-server-8.0.gpg -echo "deb [arch=amd64,arm64 signed-by=/etc/apt/keyrings/mongodb-server-8.0.gpg] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" > /etc/apt/sources.list.d/mongodb-org-8.0.list +echo "deb [arch=amd64,arm64 signed-by=/etc/apt/keyrings/mongodb-server-8.0.gpg] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" >/etc/apt/sources.list.d/mongodb-org-8.0.list $STD apt-get update msg_ok "Set up Repositories" @@ -44,7 +41,7 @@ msg_info "Installing MongoDB" $STD apt-get install -y mongodb-org systemctl enable -q --now mongod sleep 10 # MongoDB needs some secounds to start, if not sleep it collide with following mongosh -msg_ok "Installed MongoDB" +msg_ok "Installed MongoDB" msg_info "Configure MongoDB" MONGO_ADMIN_USER="admin" @@ -58,9 +55,9 @@ NODEBB_SECRET=$(uuidgen) echo "Mongo Database User: $MONGO_ADMIN_USER" echo "Mongo Database Password: $MONGO_ADMIN_PWD" echo "NodeBB User: $NODEBB_USER" - echo "NodeBB Password: $NODEBB_PWD" - echo "NodeBB Secret: $NODEBB_SECRET" -} >> ~/nodebb.creds + echo "NodeBB Password: $NODEBB_PWD" + echo "NodeBB Secret: $NODEBB_SECRET" +} >>~/nodebb.creds $STD mongosh <> /etc/mongod.conf' systemctl restart mongod -msg_ok "MongoDB successfully configurated" +msg_ok "MongoDB successfully configurated" -msg_info "Install NodeBB" +msg_info "Install NodeBB" cd /opt RELEASE=$(curl -s https://api.github.com/repos/NodeBB/NodeBB/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') wget -q "https://github.com/NodeBB/NodeBB/archive/refs/tags/v${RELEASE}.zip" @@ -95,7 +92,7 @@ unzip -q v${RELEASE}.zip mv NodeBB-${RELEASE} /opt/nodebb cd /opt/nodebb touch pidfile -expect < /dev/null 2>&1 +expect </dev/null 2>&1 log_file /dev/null set timeout -1 @@ -161,4 +158,4 @@ msg_info "Cleaning up" rm -R /opt/v${RELEASE}.zip $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/notifiarr-install.sh b/install/notifiarr-install.sh index ecc026268..e17f66cbb 100644 --- a/install/notifiarr-install.sh +++ b/install/notifiarr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://notifiarr.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg msg_ok "Installed Dependencies" diff --git a/install/npmplus-install.sh b/install/npmplus-install.sh index d61d3effd..64fbe6bdc 100644 --- a/install/npmplus-install.sh +++ b/install/npmplus-install.sh @@ -23,7 +23,6 @@ $STD apk add \ gawk \ yq \ mc - msg_ok "Installed Dependencies" msg_info "Installing Docker & Compose" diff --git a/install/ntfy-install.sh b/install/ntfy-install.sh index d1b98f3a2..477e8c4f0 100644 --- a/install/ntfy-install.sh +++ b/install/ntfy-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://ntfy.sh/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg $STD apt-get install -y apt-transport-https msg_ok "Installed Dependencies" @@ -24,7 +21,7 @@ msg_ok "Installed Dependencies" msg_info "Installing ntfy" mkdir -p /etc/apt/keyrings curl -fsSL https://archive.heckel.io/apt/pubkey.txt | gpg --dearmor -o /etc/apt/keyrings/archive.heckel.io.gpg -echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/archive.heckel.io.gpg] https://archive.heckel.io/apt debian main" >/etc/apt/sources.list.d/archive.heckel.io.list +echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/archive.heckel.io.gpg] https://archive.heckel.io/apt debian main" >/etc/apt/sources.list.d/archive.heckel.io.list $STD apt-get update $STD apt-get install -y ntfy systemctl enable -q --now ntfy diff --git a/install/nxwitness-install.sh b/install/nxwitness-install.sh index 625e81fb0..c5728d430 100644 --- a/install/nxwitness-install.sh +++ b/install/nxwitness-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ make \ net-tools \ ffmpeg \ @@ -46,4 +43,4 @@ msg_info "Cleaning up" rm -f /tmp/nxwitness-server-$RELEASE-linux_x64.deb $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/nzbget-install.sh b/install/nzbget-install.sh index f8bc2dbe2..18211287a 100644 --- a/install/nzbget-install.sh +++ b/install/nzbget-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://nzbget.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,11 +15,9 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg $STD apt-get install -y par2 + cat </etc/apt/sources.list.d/non-free.list deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware EOF diff --git a/install/octoprint-install.sh b/install/octoprint-install.sh index 9ac637e3e..d13c8f837 100644 --- a/install/octoprint-install.sh +++ b/install/octoprint-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://octoprint.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y git $STD apt-get install -y libyaml-dev $STD apt-get install -y build-essential @@ -37,11 +34,11 @@ msg_info "Creating user octoprint" useradd -m -s /bin/bash -p $(openssl passwd -1 octoprint) octoprint usermod -aG sudo,tty,dialout octoprint chown -R octoprint:octoprint /opt -echo "octoprint ALL=NOPASSWD: $(command -v systemctl) restart octoprint, $(command -v reboot), $(command -v poweroff)" > /etc/sudoers.d/octoprint +echo "octoprint ALL=NOPASSWD: $(command -v systemctl) restart octoprint, $(command -v reboot), $(command -v poweroff)" >/etc/sudoers.d/octoprint msg_ok "Created user octoprint" msg_info "Installing OctoPrint" -$STD sudo -u octoprint bash << EOF +$STD sudo -u octoprint bash <"/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.gpg" - cat </etc/apt/sources.list.d/openmediavault.list deb [signed-by=/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.gpg] http://packages.openmediavault.org/public sandworm main EOF diff --git a/install/onedev-install.sh b/install/onedev-install.sh index 6b041e3db..4c92d01f2 100644 --- a/install/onedev-install.sh +++ b/install/onedev-install.sh @@ -15,15 +15,11 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - mc \ - sudo \ default-jdk \ git \ git-lfs msg_ok "Installed Dependencies" - msg_info "Installing OneDev" cd /opt wget -q https://code.onedev.io/onedev/server/~site/onedev-latest.tar.gz diff --git a/install/opengist-install.sh b/install/opengist-install.sh index de4b6cfab..ce0423778 100644 --- a/install/opengist-install.sh +++ b/install/opengist-install.sh @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - mc \ - curl \ - sudo \ - git +$STD apt-get install -y git msg_ok "Installed Dependencies" msg_info "Install Opengist" diff --git a/install/openhab-install.sh b/install/openhab-install.sh index 448732d2b..6a7919a9c 100644 --- a/install/openhab-install.sh +++ b/install/openhab-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.openhab.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gnupg $STD apt-get install -y apt-transport-https msg_ok "Installed Dependencies" @@ -33,7 +30,7 @@ msg_info "Installing openHAB" curl -fsSL "https://openhab.jfrog.io/artifactory/api/gpg/key/public" | gpg --dearmor >openhab.gpg mv openhab.gpg /usr/share/keyrings chmod u=rw,g=r,o=r /usr/share/keyrings/openhab.gpg -echo "deb [signed-by=/usr/share/keyrings/openhab.gpg] https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable main" > /etc/apt/sources.list.d/openhab.list +echo "deb [signed-by=/usr/share/keyrings/openhab.gpg] https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable main" >/etc/apt/sources.list.d/openhab.list $STD apt update $STD apt-get -y install openhab systemctl daemon-reload diff --git a/install/openobserve-install.sh b/install/openobserve-install.sh index fc620ee2c..2b3634813 100644 --- a/install/openobserve-install.sh +++ b/install/openobserve-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://openobserve.ai/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing OpenObserve" mkdir -p /opt/openobserve/data LATEST=$(curl -sL https://api.github.com/repos/openobserve/openobserve/releases/latest | grep '"tag_name":' | cut -d'"' -f4) diff --git a/install/openwebui-install.sh b/install/openwebui-install.sh index fbc0f2b40..580d2252e 100644 --- a/install/openwebui-install.sh +++ b/install/openwebui-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://openwebui.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -16,9 +16,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ gpg \ git \ ffmpeg diff --git a/install/outline-install.sh b/install/outline-install.sh index 436f4aadf..5ac07bcc5 100644 --- a/install/outline-install.sh +++ b/install/outline-install.sh @@ -15,13 +15,10 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ -curl \ -sudo \ -mc \ -gnupg \ -mkcert \ -git \ -redis + gnupg \ + mkcert \ + git \ + redis msg_ok "Installed Dependencies" msg_info "Setting up Node.js Repository" @@ -103,4 +100,4 @@ msg_info "Cleaning up" rm -rf $temp_file $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/overseerr-install.sh b/install/overseerr-install.sh index ec92d7bf2..7459e3bf4 100644 --- a/install/overseerr-install.sh +++ b/install/overseerr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://overseerr.dev/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y git $STD apt-get install -y ca-certificates $STD apt-get install -y gnupg diff --git a/install/owncast-install.sh b/install/owncast-install.sh index 465497c39..76bb010ec 100644 --- a/install/owncast-install.sh +++ b/install/owncast-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://owncast.online/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies (Patience)" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y ffmpeg msg_ok "Installed Dependencies" diff --git a/install/pairdrop-install.sh b/install/pairdrop-install.sh index 2f2f59733..e0c338e71 100644 --- a/install/pairdrop-install.sh +++ b/install/pairdrop-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://pairdrop.net/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y git $STD apt-get install -y gpg msg_ok "Installed Dependencies" diff --git a/install/paperless-ai-install.sh b/install/paperless-ai-install.sh index 6bba0bf0d..c9513997e 100644 --- a/install/paperless-ai-install.sh +++ b/install/paperless-ai-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/clusterzx/paperless-ai -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,10 +15,7 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ - gpg \ + gpg \ make \ gcc \ g++ \ diff --git a/install/paperless-gpt-install.sh b/install/paperless-gpt-install.sh index aa10514c5..f8ed8b0f3 100644 --- a/install/paperless-gpt-install.sh +++ b/install/paperless-gpt-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - sudo \ - curl \ - mc \ gcc \ gnupg \ ca-certificates \ diff --git a/install/paperless-ngx-install.sh b/install/paperless-ngx-install.sh index 809d4033a..bb96469ce 100644 --- a/install/paperless-ngx-install.sh +++ b/install/paperless-ngx-install.sh @@ -32,12 +32,9 @@ $STD apt-get install -y \ libtool \ pkg-config \ git \ - curl \ libtiff-dev \ libpng-dev \ - libleptonica-dev \ - sudo \ - mc + libleptonica-dev msg_ok "Installed Dependencies" msg_info "Setup Python3" @@ -221,7 +218,7 @@ EOF sed -i -e 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml systemctl daemon-reload -$STD systemctl enable -q --now paperless-webserver paperless-scheduler paperless-task-queue paperless-consumer +$STD systemctl enable -q --now paperless-webserver paperless-scheduler paperless-task-queue paperless-consumer msg_ok "Created Services" motd_ssh diff --git a/install/part-db-install.sh b/install/part-db-install.sh index fd315d25e..65059d9c9 100644 --- a/install/part-db-install.sh +++ b/install/part-db-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://docs.part-db.de/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,10 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ - zip \ ca-certificates \ software-properties-common \ apt-transport-https \ @@ -31,7 +27,7 @@ msg_ok "Installed Dependencies" msg_info "Setting up PHP" PHPVER=$(php -r 'echo PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION . "\n";') -sed -i "s@post_max_size = 8M@post_max_size = 100M@g" /etc/php/${PHPVER}/apache2/php.ini +sed -i "s@post_max_size = 8M@post_max_size = 100M@g" /etc/php/${PHPVER}/apache2/php.ini sed -i "s@upload_max_filesize = 2M@upload_max_filesize = 100M@g" /etc/php/${PHPVER}/apache2/php.ini msg_ok "Setting up PHP" @@ -42,11 +38,11 @@ DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13) $STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';" $STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER TEMPLATE template0;" { -echo "Part-DB Credentials" -echo "Part-DB Database User: $DB_USER" -echo "Part-DB Database Password: $DB_PASS" -echo "Part-DB Database Name: $DB_NAME" -} >> ~/partdb.creds + echo "Part-DB Credentials" + echo "Part-DB Database User: $DB_USER" + echo "Part-DB Database Password: $DB_PASS" + echo "Part-DB Database Name: $DB_NAME" +} >>~/partdb.creds msg_ok "Set up PostgreSQL" msg_info "Setting up Node.js/Yarn" @@ -75,14 +71,14 @@ $STD composer install --no-dev -o --no-interaction $STD yarn install $STD yarn build $STD php bin/console cache:clear -php bin/console doctrine:migrations:migrate -n > ~/database-migration-output +php bin/console doctrine:migrations:migrate -n >~/database-migration-output chown -R www-data:www-data /opt/partdb ADMIN_PASS=$(grep -oP 'The initial password for the "admin" user is: \K\w+' ~/database-migration-output) { -echo "" -echo "Part-DB Admin User: admin" -echo "Part-DB Admin Password: $ADMIN_PASS" -} >> ~/partdb.creds + echo "" + echo "Part-DB Admin User: admin" + echo "Part-DB Admin Password: $ADMIN_PASS" +} >>~/partdb.creds echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed Part-DB" diff --git a/install/paymenter-install.sh b/install/paymenter-install.sh index 1dbcecf7d..53c6d5a52 100644 --- a/install/paymenter-install.sh +++ b/install/paymenter-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ git \ software-properties-common \ apt-transport-https \ @@ -54,7 +51,7 @@ mysql -u root -e "GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'localhost' W echo "Database: $DB_NAME" echo "Username: $DB_USER" echo "Password: $DB_PASS" -} >> ~/paymenter_db.creds +} >>~/paymenter_db.creds cp .env.example .env $STD composer install --no-dev --optimize-autoloader --no-interaction $STD php artisan key:generate --force diff --git a/install/peanut-install.sh b/install/peanut-install.sh index 31e4d4ab0..c77fdaa57 100644 --- a/install/peanut-install.sh +++ b/install/peanut-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/Brandawg93/PeaNUT/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg msg_ok "Installed Dependencies" diff --git a/install/pelican-panel-install.sh b/install/pelican-panel-install.sh index 909b63689..604683bf3 100644 --- a/install/pelican-panel-install.sh +++ b/install/pelican-panel-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/pelican-dev/panel -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ lsb-release \ mariadb-server \ mariadb-client \ @@ -48,11 +45,11 @@ $STD mysql -u root -e "CREATE DATABASE $DB_NAME;" $STD mysql -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$DB_PASS');" $STD mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;" { - echo "Pelican Panel-Credentials" - echo "Pelican Panel Database User: $DB_USER" - echo "Pelican Panel Database Password: $DB_PASS" - echo "Pelican Panel Database Name: $DB_NAME" -} >> ~/pelican-panel.creds + echo "Pelican Panel-Credentials" + echo "Pelican Panel Database User: $DB_USER" + echo "Pelican Panel Database Password: $DB_PASS" + echo "Pelican Panel Database Name: $DB_NAME" +} >>~/pelican-panel.creds msg_ok "Set up MariaDB" msg_info "Installing Pelican Panel" diff --git a/install/pelican-wings-install.sh b/install/pelican-wings-install.sh index 9b917eef6..35dfc124a 100644 --- a/install/pelican-wings-install.sh +++ b/install/pelican-wings-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/pelican-dev/wings -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Installing Docker" DOCKER_CONFIG_PATH='/etc/docker/daemon.json' mkdir -p $(dirname $DOCKER_CONFIG_PATH) diff --git a/install/petio-install.sh b/install/petio-install.sh index 14958854e..442fad5e4 100644 --- a/install/petio-install.sh +++ b/install/petio-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://petio.tv/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y gnupg -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc msg_ok "Installed Dependencies" msg_info "Installing MongoDB 4.4" @@ -26,9 +23,9 @@ wget -qO- https://www.mongodb.org/static/pgp/server-4.4.asc | gpg --dearmor >/us OS_ID=$(grep '^ID=' /etc/os-release | cut -d'=' -f2) if [ "$OS_ID" = "debian" ]; then -echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] http://repo.mongodb.org/apt/debian $(grep '^VERSION_CODENAME=' /etc/os-release | cut -d'=' -f2)/mongodb-org/4.4 main" > /etc/apt/sources.list.d/mongodb-org-4.4.list + echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] http://repo.mongodb.org/apt/debian $(grep '^VERSION_CODENAME=' /etc/os-release | cut -d'=' -f2)/mongodb-org/4.4 main" >/etc/apt/sources.list.d/mongodb-org-4.4.list else -echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] https://repo.mongodb.org/apt/ubuntu $(grep '^VERSION_CODENAME=' /etc/os-release | cut -d'=' -f2)/mongodb-org/4.4 multiverse" > /etc/apt/sources.list.d/mongodb-org-4.4.list + echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] https://repo.mongodb.org/apt/ubuntu $(grep '^VERSION_CODENAME=' /etc/os-release | cut -d'=' -f2)/mongodb-org/4.4 multiverse" >/etc/apt/sources.list.d/mongodb-org-4.4.list fi $STD apt-get update @@ -37,7 +34,6 @@ sed -i 's/bindIp: 127.0.0.1/bindIp: 0.0.0.0/' /etc/mongod.conf systemctl enable -q --now mongod.service msg_ok "MongoDB 4.4 Installed" - msg_info "Installing Petio" useradd -M --shell=/bin/false petio mkdir /opt/Petio @@ -68,7 +64,6 @@ EOF systemctl enable -q --now petio.service msg_ok "Created Service" - motd_ssh customize diff --git a/install/pf2etools-install.sh b/install/pf2etools-install.sh index 61d0b747e..f6d0f7f1e 100644 --- a/install/pf2etools-install.sh +++ b/install/pf2etools-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - mc \ - sudo \ apache2 \ gpg \ ca-certificates \ @@ -48,7 +45,7 @@ echo "${RELEASE}" >/opt/Pf2eTools_version.txt msg_ok "Set up Pf2eTools" msg_info "Creating Service" -cat <> /etc/apache2/apache2.conf +cat <>/etc/apache2/apache2.conf SetHandler server-status Order deny,allow @@ -68,4 +65,4 @@ $STD apt-get -y autoclean msg_ok "Cleaned" motd_ssh -customize \ No newline at end of file +customize diff --git a/install/photoprism-install.sh b/install/photoprism-install.sh index f0173de58..75867330f 100644 --- a/install/photoprism-install.sh +++ b/install/photoprism-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.photoprism.app/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies (Patience)" $STD apt-get install -y \ - curl \ - sudo \ - mc \ exiftool \ ffmpeg \ libheif1 \ diff --git a/install/phpipam-install.sh b/install/phpipam-install.sh index ac7a5392d..60e9e0856 100644 --- a/install/phpipam-install.sh +++ b/install/phpipam-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://phpipam.net/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,14 +15,11 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ - mariadb-server \ - apache2 \ - libapache2-mod-php \ - php8.2 php8.2-{fpm,curl,cli,mysql,gd,intl,imap,apcu,pspell,tidy,xmlrpc,mbstring,gmp,xml,ldap,common,snmp} \ - php-pear + mariadb-server \ + apache2 \ + libapache2-mod-php \ + php8.2 php8.2-{fpm,curl,cli,mysql,gd,intl,imap,apcu,pspell,tidy,xmlrpc,mbstring,gmp,xml,ldap,common,snmp} \ + php-pear msg_ok "Installed Dependencies" msg_info "Setting up MariaDB" @@ -37,7 +34,7 @@ $STD mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH echo "phpIPAM Database User: $DB_USER" echo "phpIPAM Database Password: $DB_PASS" echo "phpIPAM Database Name: $DB_NAME" -} >> ~/phpipam.creds +} >>~/phpipam.creds msg_ok "Set up MariaDB" msg_info "Installing phpIPAM" @@ -45,13 +42,13 @@ RELEASE=$(curl -s https://api.github.com/repos/phpipam/phpipam/releases/latest | cd /opt wget -q "https://github.com/phpipam/phpipam/releases/download/v${RELEASE}/phpipam-v${RELEASE}.zip" unzip -q "phpipam-v${RELEASE}.zip" -mysql -u root "${DB_NAME}" < /opt/phpipam/db/SCHEMA.sql +mysql -u root "${DB_NAME}" /opt/${APPLICATION}_version.txt msg_ok "Installed phpIPAM" diff --git a/install/pialert-install.sh b/install/pialert-install.sh index 08bfe6a39..6f3a41685 100644 --- a/install/pialert-install.sh +++ b/install/pialert-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/leiweibau/Pi.Alert/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get -y install \ - sudo \ - mc \ - curl \ apt-utils \ avahi-utils \ lighttpd \ @@ -29,7 +26,6 @@ $STD apt-get -y install \ nbtscan \ libwww-perl \ nmap \ - zip \ aria2 \ wakeonlan msg_ok "Installed Dependencies" @@ -74,7 +70,7 @@ touch /opt/pialert/log/pialert.vendors.log /opt/pialert/log/pialert.IP.log /opt/ src_dir="/opt/pialert/log" dest_dir="/opt/pialert/front/php/server" for file in pialert.vendors.log pialert.IP.log pialert.1.log pialert.cleanup.log pialert.webservices.log; do - ln -s "$src_dir/$file" "$dest_dir/$file" + ln -s "$src_dir/$file" "$dest_dir/$file" done sed -i 's#PIALERT_PATH\s*=\s*'\''/home/pi/pialert'\''#PIALERT_PATH = '\''/opt/pialert'\''#' /opt/pialert/config/pialert.conf sed -i 's/$HOME/\/opt/g' /opt/pialert/install/pialert.cron diff --git a/install/pihole-install.sh b/install/pihole-install.sh index f2cf8336d..7c65a2e96 100644 --- a/install/pihole-install.sh +++ b/install/pihole-install.sh @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc \ - ufw +$STD apt-get install -y ufw msg_ok "Installed Dependencies" msg_info "Installing Pi-hole" diff --git a/install/pingvin-install.sh b/install/pingvin-install.sh index ef1937b16..f88f25f60 100644 --- a/install/pingvin-install.sh +++ b/install/pingvin-install.sh @@ -16,9 +16,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ git \ gnupg msg_ok "Installed Dependencies" diff --git a/install/plant-it-install.sh b/install/plant-it-install.sh index 9083093c8..8b6de905c 100644 --- a/install/plant-it-install.sh +++ b/install/plant-it-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - mc \ - sudo \ gnupg2 \ mariadb-server \ redis \ diff --git a/install/plex-install.sh b/install/plex-install.sh index 5478e79f7..22c0c738f 100644 --- a/install/plex-install.sh +++ b/install/plex-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.plex.tv/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg msg_ok "Installed Dependencies" diff --git a/install/pocketbase-install.sh b/install/pocketbase-install.sh index a6325e12c..226baaa9c 100644 --- a/install/pocketbase-install.sh +++ b/install/pocketbase-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://pocketbase.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing Pocketbase" RELEASE="$(curl -s https://api.github.com/repos/pocketbase/pocketbase/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')" wget -q "https://github.com/pocketbase/pocketbase/releases/download/v${RELEASE}/pocketbase_${RELEASE}_linux_amd64.zip" -O /tmp/pocketbase.zip diff --git a/install/pocketid-install.sh b/install/pocketid-install.sh index 167c831bb..df2534e73 100644 --- a/install/pocketid-install.sh +++ b/install/pocketid-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/pocket-id/pocket-id -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ gpg \ caddy \ gcc @@ -57,7 +54,7 @@ cd /opt/pocket-id/backend cp .env.example .env sed -i "s/PUBLIC_APP_URL=http:\/\/localhost/PUBLIC_APP_URL=https:\/\/${public_url}/" .env cd cmd -CGO_ENABLED=1 +CGO_ENABLED=1 GOOS=linux $STD go build -o ../pocket-id-backend diff --git a/install/podman-homeassistant-install.sh b/install/podman-homeassistant-install.sh index bca94cecd..90cb766e8 100644 --- a/install/podman-homeassistant-install.sh +++ b/install/podman-homeassistant-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.home-assistant.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - get_latest_release() { curl -sL https://api.github.com/repos/$1/releases/latest | grep '"tag_name":' | cut -d'"' -f4 } @@ -26,15 +20,15 @@ get_latest_release() { PORTAINER_LATEST_VERSION=$(get_latest_release "portainer/portainer") PORTAINER_AGENT_LATEST_VERSION=$(get_latest_release "portainer/agent") -if $STD mount | grep 'on / type zfs' > null && echo "ZFS"; then - msg_info "Enabling ZFS support." - mkdir -p /etc/containers - cat <<'EOF' >/usr/local/bin/overlayzfsmount +if $STD mount | grep 'on / type zfs' >null && echo "ZFS"; then + msg_info "Enabling ZFS support." + mkdir -p /etc/containers + cat <<'EOF' >/usr/local/bin/overlayzfsmount #!/bin/sh exec /bin/mount -t overlay overlay "$@" EOF - chmod +x /usr/local/bin/overlayzfsmount - cat <<'EOF' >/etc/containers/storage.conf + chmod +x /usr/local/bin/overlayzfsmount + cat <<'EOF' >/etc/containers/storage.conf [storage] driver = "overlay" runroot = "/run/containers/storage" @@ -52,7 +46,7 @@ fi msg_info "Installing Podman" $STD apt-get -y install podman $STD systemctl enable --now podman.socket -echo -e 'unqualified-search-registries=["docker.io"]' >> /etc/containers/registries.conf +echo -e 'unqualified-search-registries=["docker.io"]' >>/etc/containers/registries.conf msg_ok "Installed Podman" read -r -p "Would you like to add Portainer? " prompt diff --git a/install/podman-install.sh b/install/podman-install.sh index 4463689aa..1f7d5e846 100644 --- a/install/podman-install.sh +++ b/install/podman-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://podman.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - get_latest_release() { curl -sL https://api.github.com/repos/$1/releases/latest | grep '"tag_name":' | cut -d'"' -f4 } @@ -26,15 +20,15 @@ get_latest_release() { PORTAINER_LATEST_VERSION=$(get_latest_release "portainer/portainer") PORTAINER_AGENT_LATEST_VERSION=$(get_latest_release "portainer/agent") -if $STD mount | grep 'on / type zfs' > null && echo "ZFS"; then - msg_info "Enabling ZFS support." - mkdir -p /etc/containers - cat <<'EOF' >/usr/local/bin/overlayzfsmount +if $STD mount | grep 'on / type zfs' >null && echo "ZFS"; then + msg_info "Enabling ZFS support." + mkdir -p /etc/containers + cat <<'EOF' >/usr/local/bin/overlayzfsmount #!/bin/sh exec /bin/mount -t overlay overlay "$@" EOF - chmod +x /usr/local/bin/overlayzfsmount - cat <<'EOF' >/etc/containers/storage.conf + chmod +x /usr/local/bin/overlayzfsmount + cat <<'EOF' >/etc/containers/storage.conf [storage] driver = "overlay" runroot = "/run/containers/storage" @@ -52,7 +46,7 @@ fi msg_info "Installing Podman" $STD apt-get -y install podman $STD systemctl enable --now podman.socket -echo -e 'unqualified-search-registries=["docker.io"]' >> /etc/containers/registries.conf +echo -e 'unqualified-search-registries=["docker.io"]' >>/etc/containers/registries.conf msg_ok "Installed Podman" read -r -p "Would you like to add Portainer? " prompt @@ -85,7 +79,6 @@ else fi fi - motd_ssh customize diff --git a/install/postgresql-install.sh b/install/postgresql-install.sh index 752fdd125..d2eb9d317 100644 --- a/install/postgresql-install.sh +++ b/install/postgresql-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.postgresql.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gnupg msg_ok "Installed Dependencies" diff --git a/install/privatebin-install.sh b/install/privatebin-install.sh index 512775c60..ddb04c091 100644 --- a/install/privatebin-install.sh +++ b/install/privatebin-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ nginx \ php8.2-fpm \ php8.2-{common,cli,gd,mbstring,xml,fpm,curl,zip} \ @@ -101,7 +98,7 @@ systemctl reload nginx msg_ok "Nginx Configured" msg_info "Cleaning up" -rm -rf /opt/privatebin/${RELEASE}.zip +rm -rf /opt/privatebin/${RELEASE}.zip rm -rf /opt/privatebin/PrivateBin-${RELEASE} $STD apt-get -y autoremove $STD apt-get -y autoclean diff --git a/install/projectsend-install.sh b/install/projectsend-install.sh index 50b168fdb..c0ff45c36 100644 --- a/install/projectsend-install.sh +++ b/install/projectsend-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.projectsend.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,13 +15,10 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ - mariadb-server \ - apache2 \ - libapache2-mod-php \ - php8.2-{pdo,mysql,mbstring,gettext,fileinfo,gd,xml,zip} + mariadb-server \ + apache2 \ + libapache2-mod-php \ + php8.2-{pdo,mysql,mbstring,gettext,fileinfo,gd,xml,zip} msg_ok "Installed Dependencies" msg_info "Setting up MariaDB" @@ -36,7 +33,7 @@ $STD mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH echo "projectsend Database User: $DB_USER" echo "projectsend Database Password: $DB_PASS" echo "projectsend Database Name: $DB_NAME" -} >> ~/projectsend.creds +} >>~/projectsend.creds msg_ok "Set up MariaDB" msg_info "Installing projectsend" @@ -50,14 +47,14 @@ chown -R www-data:www-data /opt/projectsend chmod -R 775 /opt/projectsend chmod 644 /opt/projectsend/includes/sys.config.php sed -i -e "s/\(define('DB_NAME', \).*/\1'$DB_NAME');/" \ - -e "s/\(define('DB_USER', \).*/\1'$DB_USER');/" \ - -e "s/\(define('DB_PASSWORD', \).*/\1'$DB_PASS');/" \ - /opt/projectsend/includes/sys.config.php + -e "s/\(define('DB_USER', \).*/\1'$DB_USER');/" \ + -e "s/\(define('DB_PASSWORD', \).*/\1'$DB_PASS');/" \ + /opt/projectsend/includes/sys.config.php sed -i -e "s/^\(memory_limit = \).*/\1 256M/" \ - -e "s/^\(post_max_size = \).*/\1 256M/" \ - -e "s/^\(upload_max_filesize = \).*/\1 256M/" \ - -e "s/^\(max_execution_time = \).*/\1 300/" \ - /etc/php/8.2/apache2/php.ini + -e "s/^\(post_max_size = \).*/\1 256M/" \ + -e "s/^\(upload_max_filesize = \).*/\1 256M/" \ + -e "s/^\(max_execution_time = \).*/\1 300/" \ + /etc/php/8.2/apache2/php.ini echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed projectsend" diff --git a/install/prometheus-alertmanager-install.sh b/install/prometheus-alertmanager-install.sh index ad854ccdc..bac01b61d 100755 --- a/install/prometheus-alertmanager-install.sh +++ b/install/prometheus-alertmanager-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://prometheus.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Installing Prometheus Alertmanager" RELEASE=$(curl -s https://api.github.com/repos/prometheus/alertmanager/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') mkdir -p /etc/alertmanager diff --git a/install/prometheus-install.sh b/install/prometheus-install.sh index cbabb93ae..3febc2021 100644 --- a/install/prometheus-install.sh +++ b/install/prometheus-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://prometheus.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Installing Prometheus" RELEASE=$(curl -s https://api.github.com/repos/prometheus/prometheus/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') mkdir -p /etc/prometheus diff --git a/install/prometheus-paperless-ngx-exporter-install.sh b/install/prometheus-paperless-ngx-exporter-install.sh index bb21e802a..a5c6f1163 100755 --- a/install/prometheus-paperless-ngx-exporter-install.sh +++ b/install/prometheus-paperless-ngx-exporter-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/hansmi/prometheus-paperless-exporter -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,20 +13,13 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Installing Prometheus Paperless NGX Exporter" RELEASE=$(curl -s https://api.github.com/repos/hansmi/prometheus-paperless-exporter/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') wget -q https://github.com/hansmi/prometheus-paperless-exporter/releases/download/v${RELEASE}/prometheus-paperless-exporter_${RELEASE}_linux_amd64.tar.gz tar -xf prometheus-paperless-exporter_${RELEASE}_linux_amd64.tar.gz mv prometheus-paperless-exporter_${RELEASE}_linux_amd64/prometheus-paperless-exporter /usr/local/bin/ mkdir -p /etc/prometheus-paperless-ngx-exporter -cat < /etc/prometheus-paperless-ngx-exporter/paperless_auth_token_file +cat </etc/prometheus-paperless-ngx-exporter/paperless_auth_token_file SECRET_AUTH_TOKEN EOF echo "${RELEASE}" >/opt/${APPLICATION}_version.txt diff --git a/install/prometheus-pve-exporter-install.sh b/install/prometheus-pve-exporter-install.sh index ecbeb000a..b2ccef80d 100644 --- a/install/prometheus-pve-exporter-install.sh +++ b/install/prometheus-pve-exporter-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/prometheus-pve/prometheus-pve-exporter -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Setup Python3" $STD apt-get install -y \ python3 \ @@ -30,7 +23,7 @@ msg_ok "Setup Python3" msg_info "Installing Prometheus Proxmox VE Exporter" python3 -m pip install --default-timeout=300 --quiet --root-user-action=ignore prometheus-pve-exporter mkdir -p /opt/prometheus-pve-exporter -cat < /opt/prometheus-pve-exporter/pve.yml +cat </opt/prometheus-pve-exporter/pve.yml default: user: prometheus@pve password: sEcr3T! diff --git a/install/prowlarr-install.sh b/install/prowlarr-install.sh index c7eee8169..8a7ed4cb0 100644 --- a/install/prowlarr-install.sh +++ b/install/prowlarr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://prowlarr.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y sqlite3 msg_ok "Installed Dependencies" diff --git a/install/proxmox-backup-server-install.sh b/install/proxmox-backup-server-install.sh index bba357aea..91bb8b995 100644 --- a/install/proxmox-backup-server-install.sh +++ b/install/proxmox-backup-server-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.proxmox.com/en/proxmox-backup-server -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - gpg \ - mc +$STD apt-get install -y gpg msg_ok "Installed Dependencies" msg_info "Installing Proxmox Backup Server" diff --git a/install/proxmox-datacenter-manager-install.sh b/install/proxmox-datacenter-manager-install.sh index ca751f15d..ef93be64c 100644 --- a/install/proxmox-datacenter-manager-install.sh +++ b/install/proxmox-datacenter-manager-install.sh @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - gpg \ - mc +$STD apt-get install -y gpg msg_ok "Installed Dependencies" msg_info "Installing Proxmox Datacenter Manager" @@ -36,4 +32,4 @@ customize msg_info "Cleaning up" $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/proxmox-mail-gateway-install.sh b/install/proxmox-mail-gateway-install.sh index d893aa94f..e16e25f50 100644 --- a/install/proxmox-mail-gateway-install.sh +++ b/install/proxmox-mail-gateway-install.sh @@ -13,18 +13,10 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get -y install \ - curl \ - sudo \ - mc \ - wget -msg_ok "Installed Dependencies" - msg_info "Installing Proxmox Mail Gateway" wget -q https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg -echo "deb http://download.proxmox.com/debian/pmg bookworm pmg-no-subscription" > /etc/apt/sources.list.d/pmg.list -$STD apt-get update +echo "deb http://download.proxmox.com/debian/pmg bookworm pmg-no-subscription" >/etc/apt/sources.list.d/pmg.list +$STD apt-get update $STD apt-get -y install proxmox-mailgateway-container msg_ok "Installed Proxmox Mail Gateway" diff --git a/install/ps5-mqtt-install.sh b/install/ps5-mqtt-install.sh index be880e463..3dd055f98 100644 --- a/install/ps5-mqtt-install.sh +++ b/install/ps5-mqtt-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/FunkeyFlo/ps5-mqtt/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ jq \ ca-certificates \ gnupg @@ -35,7 +32,6 @@ $STD apt-get install -y nodejs $STD npm i -g playactor msg_ok "Installed Node.js" - msg_info "Installing PS5-MQTT" RELEASE=$(curl -s https://api.github.com/repos/FunkeyFlo/ps5-mqtt/releases/latest | jq -r '.tag_name') wget -P /tmp -q https://github.com/FunkeyFlo/ps5-mqtt/archive/refs/tags/${RELEASE}.tar.gz @@ -44,13 +40,13 @@ mv /opt/ps5-mqtt-* /opt/ps5-mqtt cd /opt/ps5-mqtt/ps5-mqtt/ $STD npm install $STD npm run build -echo ${RELEASE} > /opt/ps5-mqtt_version.txt +echo ${RELEASE} >/opt/ps5-mqtt_version.txt msg_ok "Installed PS5-MQTT" msg_info "Creating Service" mkdir -p /opt/.config/ps5-mqtt/ mkdir -p /opt/.config/ps5-mqtt/playactor -cat < /opt/.config/ps5-mqtt/config.json +cat </opt/.config/ps5-mqtt/config.json { "mqtt": { "host": "", diff --git a/install/pterodactyl-panel-install.sh b/install/pterodactyl-panel-install.sh index b0f6f7253..89e75298f 100644 --- a/install/pterodactyl-panel-install.sh +++ b/install/pterodactyl-panel-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/pterodactyl/panel -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ lsb-release \ redis \ mariadb-server \ @@ -49,11 +46,11 @@ $STD mysql -u root -e "CREATE DATABASE $DB_NAME;" $STD mysql -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$DB_PASS');" $STD mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;" { - echo "pterodactyl Panel-Credentials" - echo "pterodactyl Panel Database User: $DB_USER" - echo "pterodactyl Panel Database Password: $DB_PASS" - echo "pterodactyl Panel Database Name: $DB_NAME" -} >> ~/pterodactyl-panel.creds + echo "pterodactyl Panel-Credentials" + echo "pterodactyl Panel Database User: $DB_USER" + echo "pterodactyl Panel Database Password: $DB_PASS" + echo "pterodactyl Panel Database Name: $DB_NAME" +} >>~/pterodactyl-panel.creds msg_ok "Set up MariaDB" read -p "Provide an email address for admin login, this should be a valid email address: " ADMIN_EMAIL @@ -72,18 +69,18 @@ ADMIN_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13) $STD composer install --no-dev --optimize-autoloader --no-interaction $STD php artisan key:generate --force $STD php artisan p:environment:setup --no-interaction --author $ADMIN_EMAIL --url "http://$IP" -$STD php artisan p:environment:database --no-interaction --database $DB_NAME --username $DB_USER --password $DB_PASS +$STD php artisan p:environment:database --no-interaction --database $DB_NAME --username $DB_USER --password $DB_PASS $STD php artisan migrate --seed --force --no-interaction $STD php artisan p:user:make --no-interaction --admin=1 --email "$ADMIN_EMAIL" --password "$ADMIN_PASS" --name-first "$NAME_FIRST" --name-last "$NAME_LAST" --username "admin" echo "* * * * * php /opt/pterodactyl-panel/artisan schedule:run >> /dev/null 2>&1" | crontab -u www-data - chown -R www-data:www-data /opt/pterodactyl-panel/* chmod -R 755 /opt/pterodactyl-panel/storage/* /opt/pterodactyl-panel/bootstrap/cache/ { - echo "" - echo "pterodactyl Admin Username: admin" - echo "pterodactyl Admin Email: $ADMIN_EMAIL" - echo "pterodactyl Admin Password: $ADMIN_PASS" -} >> ~/pterodactyl-panel.creds + echo "" + echo "pterodactyl Admin Username: admin" + echo "pterodactyl Admin Email: $ADMIN_EMAIL" + echo "pterodactyl Admin Password: $ADMIN_PASS" +} >>~/pterodactyl-panel.creds echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed pterodactyl Panel" diff --git a/install/pterodactyl-wings-install.sh b/install/pterodactyl-wings-install.sh index e610e5986..9eeceb16f 100644 --- a/install/pterodactyl-wings-install.sh +++ b/install/pterodactyl-wings-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/pterodactyl/wings -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Installing Docker" DOCKER_CONFIG_PATH='/etc/docker/daemon.json' mkdir -p $(dirname $DOCKER_CONFIG_PATH) diff --git a/install/qbittorrent-install.sh b/install/qbittorrent-install.sh index 82860dccf..dcc1857f1 100644 --- a/install/qbittorrent-install.sh +++ b/install/qbittorrent-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.qbittorrent.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing qbittorrent-nox" $STD apt-get install -y qbittorrent-nox mkdir -p /.config/qBittorrent/ diff --git a/install/rabbitmq-install.sh b/install/rabbitmq-install.sh index 58cb70743..3a0bb86e1 100644 --- a/install/rabbitmq-install.sh +++ b/install/rabbitmq-install.sh @@ -16,13 +16,10 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - sudo \ lsb-release \ - curl \ - gnupg \ + gnupg \ apt-transport-https \ - make \ - mc + make msg_ok "Installed Dependencies" msg_info "Adding RabbitMQ signing key" diff --git a/install/radarr-install.sh b/install/radarr-install.sh index 5a4933cd8..90758dc98 100644 --- a/install/radarr-install.sh +++ b/install/radarr-install.sh @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y sqlite3 msg_ok "Installed Dependencies" diff --git a/install/radicale-install.sh b/install/radicale-install.sh index 39c7dbd69..ab6080059 100644 --- a/install/radicale-install.sh +++ b/install/radicale-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ apache2-utils \ python3-pip \ python3.11-venv diff --git a/install/rdtclient-install.sh b/install/rdtclient-install.sh index 5831f1f50..a731517d5 100644 --- a/install/rdtclient-install.sh +++ b/install/rdtclient-install.sh @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - mc \ - curl \ - sudo -msg_ok "Installed Dependencies" - msg_info "Installing ASP.NET Core Runtime" wget -q https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb $STD dpkg -i packages-microsoft-prod.deb diff --git a/install/readarr-install.sh b/install/readarr-install.sh index ab093c9fa..41e825a19 100644 --- a/install/readarr-install.sh +++ b/install/readarr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://readarr.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y sqlite3 msg_ok "Installed Dependencies" diff --git a/install/readeck-install.sh b/install/readeck-install.sh index 17bd29396..f633e7429 100644 --- a/install/readeck-install.sh +++ b/install/readeck-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://readeck.org/en/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing Readeck" LATEST=$(curl -s https://codeberg.org/readeck/readeck/releases/ | grep -oP '(?<=Version )\d+\.\d+\.\d+' | head -1) mkdir -p /opt/readeck diff --git a/install/recyclarr-install.sh b/install/recyclarr-install.sh index 8e0196c23..b93a4118e 100644 --- a/install/recyclarr-install.sh +++ b/install/recyclarr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://recyclarr.dev/wiki/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,10 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl $STD apt-get install -y git -$STD apt-get install -y sudo -$STD apt-get install -y mc msg_ok "Installed Dependencies" msg_info "Installing Recyclarr" diff --git a/install/redis-install.sh b/install/redis-install.sh index d3acf1bc7..52ccce087 100644 --- a/install/redis-install.sh +++ b/install/redis-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://redis.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y apt-transport-https $STD apt-get install -y gpg $STD apt-get install -y lsb-release diff --git a/install/revealjs-install.sh b/install/revealjs-install.sh index b827cafde..161c86313 100644 --- a/install/revealjs-install.sh +++ b/install/revealjs-install.sh @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc \ - gnupg +$STD apt-get install -y gnupg msg_ok "Installed Dependencies" msg_info "Setting up Node.js Repository" diff --git a/install/rtsptoweb-install.sh b/install/rtsptoweb-install.sh index e8a950798..14ca51ae4 100644 --- a/install/rtsptoweb-install.sh +++ b/install/rtsptoweb-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/deepch/RTSPtoWeb -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,10 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo $STD apt-get install -y git -$STD apt-get install -y mc msg_ok "Installed Dependencies" msg_info "Installing Golang" diff --git a/install/runtipi-install.sh b/install/runtipi-install.sh index 156e98c53..5c137d4a5 100644 --- a/install/runtipi-install.sh +++ b/install/runtipi-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://runtipi.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,16 +13,10 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing Runtipi (Patience)" DOCKER_CONFIG_PATH='/etc/docker/daemon.json' mkdir -p "$(dirname "$DOCKER_CONFIG_PATH")" -echo -e '{\n "log-driver": "journald"\n}' > "$DOCKER_CONFIG_PATH" +echo -e '{\n "log-driver": "journald"\n}' >"$DOCKER_CONFIG_PATH" cd /opt wget -q https://raw.githubusercontent.com/runtipi/runtipi/master/scripts/install.sh chmod +x install.sh diff --git a/install/rustdeskserver-install.sh b/install/rustdeskserver-install.sh index fc08b2c2b..7d473954e 100644 --- a/install/rustdeskserver-install.sh +++ b/install/rustdeskserver-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/rustdesk/rustdesk-server -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Setup RustDesk" RELEASE=$(curl -s https://api.github.com/repos/rustdesk/rustdesk-server/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') TEMPDIR=$(mktemp -d) @@ -37,4 +30,4 @@ msg_info "Cleaning up" rm -rf $TEMPDIR $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/sabnzbd-install.sh b/install/sabnzbd-install.sh index d7a01cc46..0895886b5 100644 --- a/install/sabnzbd-install.sh +++ b/install/sabnzbd-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://sabnzbd.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y par2 $STD apt-get install -y p7zip-full cat </etc/apt/sources.list.d/non-free.list diff --git a/install/seafile-install.sh b/install/seafile-install.sh index 48efb0fcc..81caf8e09 100644 --- a/install/seafile-install.sh +++ b/install/seafile-install.sh @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies (Patience)" -$STD apt-get install -y \ - sudo \ - mc \ - wget \ - expect +$STD apt-get install -y expect msg_ok "Installed Dependencies" msg_info "Installing MariaDB" @@ -50,7 +46,7 @@ sudo -u mysql mysql -s -e "GRANT ALL PRIVILEGES ON $SEAHUB_DB.* TO '$DB_USER'@lo echo "DB_PASS: $DB_PASS" echo "ADMIN_EMAIL: $ADMIN_EMAIL" echo "ADMIN_PASS: $ADMIN_PASS" -} >> ~/seafile.creds +} >>~/seafile.creds msg_ok "MariaDB setup for Seafile" msg_info "Installing Seafile Python Dependencies" @@ -187,13 +183,13 @@ msg_ok "Memcached Started" msg_info "Adjusting Conf files" sed -i "0,/127.0.0.1/s/127.0.0.1/0.0.0.0/" /opt/seafile/conf/gunicorn.conf.py sed -i "0,/SERVICE_URL = \"http:\/\/$IP\"/s/SERVICE_URL = \"http:\/\/$IP\"/SERVICE_URL = \"http:\/\/$IP:8000\"/" /opt/seafile/conf/seahub_settings.py -echo -e "\nFILE_SERVER_ROOT = \"http://$IP:8082\"" >> /opt/seafile/conf/seahub_settings.py -echo -e "CSRF_TRUSTED_ORIGINS = [\"http://$IP/\"]" >> /opt/seafile/conf/seahub_settings.py -echo -e "ALLOWED_HOSTS = [\"$IP\"]" >> /opt/seafile/conf/seahub_settings.py -echo -e "CSRF_TRUSTED_ORIGINS = ['http://$IP/']" >> /opt/seafile/conf/seahub_settings.py +echo -e "\nFILE_SERVER_ROOT = \"http://$IP:8082\"" >>/opt/seafile/conf/seahub_settings.py +echo -e "CSRF_TRUSTED_ORIGINS = [\"http://$IP/\"]" >>/opt/seafile/conf/seahub_settings.py +echo -e "ALLOWED_HOSTS = [\"$IP\"]" >>/opt/seafile/conf/seahub_settings.py +echo -e "CSRF_TRUSTED_ORIGINS = ['http://$IP/']" >>/opt/seafile/conf/seahub_settings.py msg_ok "Conf files adjusted" -msg_info "Setting up Seafile" +msg_info "Setting up Seafile" $STD su - seafile -c "bash /opt/seafile/seafile-server-latest/seafile.sh start" $STD su - seafile -c "expect < /dev/null + echo "ADMIN_EMAIL=admin@example.com" + echo "ADMIN_PASSWORD=$PASS" +} | tee .env ~/seelf.creds >/dev/null echo "${RELEASE}" >/opt/seelf_version.txt -SEELF_ADMIN_EMAIL=admin@example.com SEELF_ADMIN_PASSWORD=$PASS ./seelf serve &> /dev/null & sleep 5 ; kill $! +SEELF_ADMIN_EMAIL=admin@example.com SEELF_ADMIN_PASSWORD=$PASS ./seelf serve &>/dev/null & +sleep 5 +kill $! msg_ok "Done setting up seelf" msg_info "Creating Service" @@ -92,4 +91,4 @@ $STD apt-get -y autoclean msg_ok "Cleaned" motd_ssh -customize \ No newline at end of file +customize diff --git a/install/semaphore-install.sh b/install/semaphore-install.sh index a8d7988a3..5276f9072 100644 --- a/install/semaphore-install.sh +++ b/install/semaphore-install.sh @@ -15,11 +15,8 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - mc \ git \ gpg \ - sudo wget -qO- "https://keyserver.ubuntu.com/pks/lookup?fingerprint=on&op=get&search=0x6125E2A8C77F2818FB7BD15B93C4A3FD7BB9C367" | gpg --dearmour >/usr/share/keyrings/ansible-archive-keyring.gpg cat </etc/apt/sources.list.d/ansible.list @@ -84,4 +81,4 @@ msg_info "Cleaning up" rm -rf semaphore_${RELEASE}_linux_amd64.deb $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/sftpgo-install.sh b/install/sftpgo-install.sh index bb0c9c646..6cb8ed2ae 100644 --- a/install/sftpgo-install.sh +++ b/install/sftpgo-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://sftpgo.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg $STD apt-get install -y sqlite3 msg_ok "Installed Dependencies" diff --git a/install/shinobi-install.sh b/install/shinobi-install.sh index bd3c777ae..41100cd91 100644 --- a/install/shinobi-install.sh +++ b/install/shinobi-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://shinobi.video/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,8 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl sudo git mc -$STD apt-get install -y make zip net-tools +$STD apt-get install -y make zip net-tools git $STD apt-get install -y gcc g++ cmake $STD apt-get install -y ca-certificates $STD apt-get install -y gnupg @@ -44,7 +43,7 @@ gitVersionNumber=$(git rev-parse HEAD) theDateRightNow=$(date) touch version.json chmod 777 version.json -echo '{"Product" : "'"Shinobi"'" , "Branch" : "'"master"'" , "Version" : "'"$gitVersionNumber"'" , "Date" : "'"$theDateRightNow"'" , "Repository" : "'"https://gitlab.com/Shinobi-Systems/Shinobi.git"'"}' > version.json +echo '{"Product" : "'"Shinobi"'" , "Branch" : "'"master"'" , "Version" : "'"$gitVersionNumber"'" , "Date" : "'"$theDateRightNow"'" , "Repository" : "'"https://gitlab.com/Shinobi-Systems/Shinobi.git"'"}' >version.json msg_ok "Cloned Shinobi" msg_info "Installing Database" @@ -59,7 +58,7 @@ msg_ok "Installed Database" msg_info "Installing Shinobi" cp conf.sample.json conf.json -cronKey=$(head -c 1024 < /dev/urandom | sha256sum | awk '{print substr($1,1,29)}') +cronKey=$(head -c 1024 /dev/null +node /opt/Shinobi/tools/modifyConfiguration.js addToConfig="{\"cron\":{\"key\":\"$(head -c 64 /dev/null $STD pm2 start camera.js $STD pm2 start cron.js $STD pm2 startup diff --git a/install/silverbullet-install.sh b/install/silverbullet-install.sh index a19d540b9..3d3d302e4 100644 --- a/install/silverbullet-install.sh +++ b/install/silverbullet-install.sh @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Installing Silverbullet" RELEASE=$(curl -s https://api.github.com/repos/silverbulletmd/silverbullet/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') mkdir -p /opt/silverbullet/bin /opt/silverbullet/space diff --git a/install/smokeping-install.sh b/install/smokeping-install.sh index 74ef1142b..f5a3a3814 100644 --- a/install/smokeping-install.sh +++ b/install/smokeping-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://oss.oetiker.ch/smokeping/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing SmokePing" $STD apt-get install -y smokeping cat </etc/smokeping/config.d/Targets diff --git a/install/snipeit-install.sh b/install/snipeit-install.sh index 3da8f6e61..b6be70827 100644 --- a/install/snipeit-install.sh +++ b/install/snipeit-install.sh @@ -15,11 +15,8 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ composer \ git \ - sudo \ - mc \ nginx \ php8.2-{bcmath,common,ctype,curl,fileinfo,fpm,gd,iconv,intl,mbstring,mysql,soap,xml,xsl,zip,cli} \ mariadb-server diff --git a/install/sonarr-install.sh b/install/sonarr-install.sh index 393e9b986..b41217dcb 100644 --- a/install/sonarr-install.sh +++ b/install/sonarr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://sonarr.tv/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y sqlite3 msg_ok "Installed Dependencies" @@ -44,7 +41,7 @@ Restart=on-failure [Install] WantedBy=multi-user.target EOF -systemctl enable -q --now sonarr.service +systemctl enable -q --now sonarr msg_ok "Created Service" motd_ssh diff --git a/install/spoolman-install.sh b/install/spoolman-install.sh index 0fb26161b..49f7fc700 100644 --- a/install/spoolman-install.sh +++ b/install/spoolman-install.sh @@ -17,13 +17,10 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ build-essential \ - curl \ - sudo \ make \ libpq-dev \ gpg \ - ca-certificates \ - mc + ca-certificates msg_ok "Installed Dependencies" msg_info "Setup Python3" diff --git a/install/sqlserver2022-install.sh b/install/sqlserver2022-install.sh index eb1f15d09..9860ddb17 100644 --- a/install/sqlserver2022-install.sh +++ b/install/sqlserver2022-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt install -y \ - curl \ - mc \ - sudo \ gpg \ coreutils msg_ok "Installed Dependencies" diff --git a/install/stirling-pdf-install.sh b/install/stirling-pdf-install.sh index ab445cc61..2af620c44 100644 --- a/install/stirling-pdf-install.sh +++ b/install/stirling-pdf-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.stirlingpdf.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies (Patience)" $STD apt-get install -y \ - curl \ - sudo \ - mc \ git \ automake \ autoconf \ @@ -53,7 +50,7 @@ $STD pip3 install \ opencv-python-headless \ unoconv \ pngquant \ - WeasyPrint + WeasyPrint msg_ok "Installed Python Dependencies" msg_info "Installing Azul Zulu" diff --git a/install/suwayomiserver-install.sh b/install/suwayomiserver-install.sh index 3d0354a90..f432597d3 100644 --- a/install/suwayomiserver-install.sh +++ b/install/suwayomiserver-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/Suwayomi/Suwayomi-Server -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,15 +15,12 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ openjdk-17-jre \ libc++-dev msg_ok "Installed Dependencies" msg_info "Settting up Suwayomi-Server" -URL=$(curl -s https://api.github.com/repos/Suwayomi/Suwayomi-Server/releases/latest | grep "browser_download_url" | awk '{print substr($2, 2, length($2)-2) }' | tail -n+2 | head -n 1) +URL=$(curl -s https://api.github.com/repos/Suwayomi/Suwayomi-Server/releases/latest | grep "browser_download_url" | awk '{print substr($2, 2, length($2)-2) }' | tail -n+2 | head -n 1) RELEASE=$(curl -s https://api.github.com/repos/Suwayomi/Suwayomi-Server/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') wget -q $URL $STD dpkg -i *.deb diff --git a/install/syncthing-install.sh b/install/syncthing-install.sh index 05a96c42e..e0d8e32a8 100644 --- a/install/syncthing-install.sh +++ b/install/syncthing-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://syncthing.net/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gnupg msg_ok "Installed Dependencies" diff --git a/install/tandoor-install.sh b/install/tandoor-install.sh index cc6121a13..ea09d35ef 100644 --- a/install/tandoor-install.sh +++ b/install/tandoor-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://tandoor.dev/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -25,11 +25,8 @@ $STD apt-get install -y --no-install-recommends \ libldap2-dev \ libssl-dev \ gpg \ - curl \ - sudo \ git \ make \ - mc \ pkg-config \ libxmlsec1-dev \ libxml2-dev \ @@ -72,15 +69,15 @@ DB_TIMEZONE=UTC secret_key=$(openssl rand -base64 45 | sed 's/\//\\\//g') DB_PASS="$(openssl rand -base64 18 | cut -c1-13)" sed -i -e "s|SECRET_KEY=.*|SECRET_KEY=$secret_key|g" \ - -e "s|POSTGRES_HOST=.*|POSTGRES_HOST=localhost|g" \ - -e "s|POSTGRES_PASSWORD=.*|POSTGRES_PASSWORD=$DB_PASS|g" \ - -e "s|POSTGRES_DB=.*|POSTGRES_DB=$DB_NAME|g" \ - -e "s|POSTGRES_USER=.*|POSTGRES_USER=$DB_USER|g" \ - -e "\$a\STATIC_URL=/staticfiles/" /opt/tandoor/.env + -e "s|POSTGRES_HOST=.*|POSTGRES_HOST=localhost|g" \ + -e "s|POSTGRES_PASSWORD=.*|POSTGRES_PASSWORD=$DB_PASS|g" \ + -e "s|POSTGRES_DB=.*|POSTGRES_DB=$DB_NAME|g" \ + -e "s|POSTGRES_USER=.*|POSTGRES_USER=$DB_USER|g" \ + -e "\$a\STATIC_URL=/staticfiles/" /opt/tandoor/.env msg_ok "Installed Tandoor" msg_info "Install/Set up PostgreSQL Database" -curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc|gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg +curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg echo "deb https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" >/etc/apt/sources.list.d/pgdg.list $STD apt-get update $STD apt-get install -y postgresql-16 @@ -93,7 +90,7 @@ echo "" >>~/tandoor.creds echo -e "Tandoor Database Name: \e[32m$DB_NAME\e[0m" >>~/tandoor.creds echo -e "Tandoor Database User: \e[32m$DB_USER\e[0m" >>~/tandoor.creds echo -e "Tandoor Database Password: \e[32m$DB_PASS\e[0m" >>~/tandoor.creds -export $(cat /opt/tandoor/.env |grep "^[^#]" | xargs) +export $(cat /opt/tandoor/.env | grep "^[^#]" | xargs) /usr/bin/python3 /opt/tandoor/manage.py migrate >/dev/null 2>&1 /usr/bin/python3 /opt/tandoor/manage.py collectstatic --no-input >/dev/null 2>&1 /usr/bin/python3 /opt/tandoor/manage.py collectstatic_js_reverse >/dev/null 2>&1 @@ -117,7 +114,7 @@ ExecStart=/usr/local/bin/gunicorn --error-logfile /tmp/gunicorn_err.log --log-le WantedBy=multi-user.target EOF -cat << 'EOF' >/etc/nginx/conf.d/tandoor.conf +cat <<'EOF' >/etc/nginx/conf.d/tandoor.conf server { listen 8002; #access_log /var/log/nginx/access.log; diff --git a/install/tasmoadmin-install.sh b/install/tasmoadmin-install.sh index ed4c3bf44..6b72f8537 100644 --- a/install/tasmoadmin-install.sh +++ b/install/tasmoadmin-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/TasmoAdmin/TasmoAdmin -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y apache2 $STD apt-get install -y php8.2 $STD apt-get install -y libapache2-mod-php diff --git a/install/tasmocompiler-install.sh b/install/tasmocompiler-install.sh index 746ebb3d0..e15b16847 100644 --- a/install/tasmocompiler-install.sh +++ b/install/tasmocompiler-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/benzino77/tasmocompiler -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies. Patience" $STD apt-get install -y \ - curl \ - sudo \ - mc \ gnupg \ git msg_ok "Installed Dependencies" @@ -83,4 +80,4 @@ msg_info "Cleaning up" rm -f /tmp/v${RELEASE}.tar.gz $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/tautulli-install.sh b/install/tautulli-install.sh index cf7b9aac9..63734ddd3 100644 --- a/install/tautulli-install.sh +++ b/install/tautulli-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://tautulli.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y git $STD apt-get install -y pip msg_ok "Installed Dependencies" diff --git a/install/tdarr-install.sh b/install/tdarr-install.sh index 08a0f7f05..ef67547fa 100644 --- a/install/tdarr-install.sh +++ b/install/tdarr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://home.tdarr.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y handbrake-cli msg_ok "Installed Dependencies" diff --git a/install/technitiumdns-install.sh b/install/technitiumdns-install.sh index 96404d8ea..1cb00b242 100644 --- a/install/technitiumdns-install.sh +++ b/install/technitiumdns-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://technitium.com/dns/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing ASP.NET Core Runtime" wget -q https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb $STD dpkg -i packages-microsoft-prod.deb diff --git a/install/teddycloud-install.sh b/install/teddycloud-install.sh index 4c6a6577e..ac9485360 100644 --- a/install/teddycloud-install.sh +++ b/install/teddycloud-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/toniebox-reverse-engineering/teddycloud -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,12 +15,8 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ libubsan1 \ ffmpeg \ - curl \ ca-certificates msg_ok "Installed Dependencies" diff --git a/install/the-lounge-install.sh b/install/the-lounge-install.sh index 619361238..fab2c2bf5 100644 --- a/install/the-lounge-install.sh +++ b/install/the-lounge-install.sh @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - gpg \ - wget \ - mc +$STD apt-get install -y gpg msg_ok "Installed Dependencies" msg_info "Setting up Node.js Repository" diff --git a/install/threadfin-install.sh b/install/threadfin-install.sh index e24af2aab..98619fc6f 100644 --- a/install/threadfin-install.sh +++ b/install/threadfin-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/Threadfin/Threadfin -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y sudo -$STD apt-get install -y mc -$STD apt-get install -y curl $STD apt-get install -y ffmpeg $STD apt-get install -y vlc msg_ok "Installed Dependencies" diff --git a/install/tianji-install.sh b/install/tianji-install.sh index 7c010fb91..699b2526a 100644 --- a/install/tianji-install.sh +++ b/install/tianji-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/msgbyte/tianji -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -21,13 +21,10 @@ $STD apt-get install -y \ cmake \ g++ \ build-essential \ - curl \ - sudo \ git \ make \ gnupg \ - ca-certificates \ - mc + ca-certificates msg_ok "Installed Dependencies" msg_info "Installing Node.js" @@ -47,7 +44,7 @@ DB_PASS="$(openssl rand -base64 18 | cut -c1-13)" TIANJI_SECRET="$(openssl rand -base64 32 | cut -c1-24)" $STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME;" $STD sudo -u postgres psql -c "CREATE USER $DB_USER WITH PASSWORD '$DB_PASS';" -$STD sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE $DB_NAME TO $DB_USER;" +$STD sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE $DB_NAME TO $DB_USER;" $STD sudo -u postgres psql -c "ALTER DATABASE $DB_NAME OWNER TO $DB_USER;" $STD sudo -u postgres psql -c "ALTER USER $DB_USER WITH SUPERUSER;" echo "" >>~/tianji.creds diff --git a/install/traccar-install.sh b/install/traccar-install.sh index bf9987c6a..d7c61263c 100644 --- a/install/traccar-install.sh +++ b/install/traccar-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.traccar.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,19 +13,13 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - RELEASE=$(curl -s https://api.github.com/repos/traccar/traccar/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') msg_info "Installing Traccar v${RELEASE}" wget -q https://github.com/traccar/traccar/releases/download/v${RELEASE}/traccar-linux-64-${RELEASE}.zip $STD unzip traccar-linux-64-${RELEASE}.zip $STD ./traccar.run systemctl enable -q --now traccar -rm -rf README.txt traccar-linux-64-${RELEASE}.zip traccar.run +rm -rf README.txt traccar-linux-64-${RELEASE}.zip traccar.run msg_ok "Installed Traccar v${RELEASE}" motd_ssh diff --git a/install/traefik-install.sh b/install/traefik-install.sh index c65006bbd..1873f5b42 100644 --- a/install/traefik-install.sh +++ b/install/traefik-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://traefik.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gpg $STD apt-get install -y apt-transport-https msg_ok "Installed Dependencies" @@ -105,7 +102,6 @@ EOF systemctl enable -q --now traefik.service msg_ok "Created Service" - motd_ssh customize diff --git a/install/transmission-install.sh b/install/transmission-install.sh index 9ee2f7f8c..1eb9d770d 100644 --- a/install/transmission-install.sh +++ b/install/transmission-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://transmissionbt.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - - msg_info "Installing Transmission" $STD apt-get install -y transmission-daemon systemctl stop transmission-daemon diff --git a/install/trilium-install.sh b/install/trilium-install.sh index 61adc4d34..234f25cff 100644 --- a/install/trilium-install.sh +++ b/install/trilium-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://triliumnext.github.io/Docs/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Setup TriliumNext" cd /opt RELEASE=$(curl -s https://api.github.com/repos/TriliumNext/Notes/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') diff --git a/install/typesense-install.sh b/install/typesense-install.sh index 897eda5c2..6c26f397f 100644 --- a/install/typesense-install.sh +++ b/install/typesense-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://typesense.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,19 +13,12 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - mc \ - sudo -msg_ok "Installed Dependencies" - msg_info "Installing TypeSense" RELEASE=$(curl -s https://api.github.com/repos/typesense/typesense/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') cd /opt wget -q https://dl.typesense.org/releases/${RELEASE}/typesense-server-${RELEASE}-amd64.deb $STD apt install -y /opt/typesense-server-${RELEASE}-amd64.deb -echo 'enable-cors = true' >> /etc/typesense/typesense-server.ini +echo 'enable-cors = true' >>/etc/typesense/typesense-server.ini echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" msg_ok "Installed TypeSense" diff --git a/install/ubuntu-install.sh b/install/ubuntu-install.sh index 459568eeb..b1b02bb23 100644 --- a/install/ubuntu-install.sh +++ b/install/ubuntu-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://ubuntu.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - motd_ssh customize diff --git a/install/umami-install.sh b/install/umami-install.sh index d1830bccf..f3c1118e1 100644 --- a/install/umami-install.sh +++ b/install/umami-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://umami.is/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y git $STD apt-get install -y gpg $STD apt-get install -y postgresql diff --git a/install/umbrel-install.sh b/install/umbrel-install.sh index 99acbe308..198ce4439 100644 --- a/install/umbrel-install.sh +++ b/install/umbrel-install.sh @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing Umbrel (Patience)" DOCKER_CONFIG_PATH='/etc/docker/daemon.json' mkdir -p $(dirname $DOCKER_CONFIG_PATH) @@ -32,6 +26,6 @@ motd_ssh customize msg_info "Cleaning up" -#$STD apt-get autoremove -#$STD apt-get autoclean +$STD apt-get autoremove +$STD apt-get autoclean msg_ok "Cleaned" diff --git a/install/unbound-install.sh b/install/unbound-install.sh index 05581dd60..faab1f1ff 100644 --- a/install/unbound-install.sh +++ b/install/unbound-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/NLnetLabs/unbound -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - sudo \ - curl \ - mc -msg_ok "Installed Dependencies" - msg_info "Installing Unbound" $STD apt-get install -y \ unbound \ diff --git a/install/unifi-install.sh b/install/unifi-install.sh index 6b4d35711..9b9be2a09 100644 --- a/install/unifi-install.sh +++ b/install/unifi-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://ui.com/download/unifi -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y apt-transport-https $STD apt-get install -y gnupg msg_ok "Installed Dependencies" @@ -35,7 +32,7 @@ if ! grep -q -m1 'avx[^ ]*' /proc/cpuinfo; then wget -q http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb10u6_amd64.deb $STD dpkg -i libssl1.1_1.1.1n-0+deb10u6_amd64.deb fi - wget -qO- https://www.mongodb.org/static/pgp/server-4.4.asc | gpg --dearmor > /usr/share/keyrings/mongodb-server-4.4.gpg + wget -qO- https://www.mongodb.org/static/pgp/server-4.4.asc | gpg --dearmor >/usr/share/keyrings/mongodb-server-4.4.gpg echo "deb [signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg] https://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" >/etc/apt/sources.list.d/mongodb-org-4.4.list $STD apt-get update $STD apt-get install -y mongodb-org diff --git a/install/unmanic-install.sh b/install/unmanic-install.sh index 633ec61ba..48d5da7d5 100644 --- a/install/unmanic-install.sh +++ b/install/unmanic-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://docs.unmanic.app/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies (Patience)" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y ffmpeg $STD apt-get install -y python3-pip msg_ok "Installed Dependencies" @@ -41,7 +38,7 @@ sed -i -e 's/^sgx:x:104:$/render:x:104:root/' -e 's/^render:x:106:root$/sgx:x:10 msg_ok "Installed Unmanic" msg_info "Creating Service" -cat << EOF >/etc/systemd/system/unmanic.service +cat </etc/systemd/system/unmanic.service [Unit] Description=Unmanic - Library Optimiser After=network-online.target diff --git a/install/uptimekuma-install.sh b/install/uptimekuma-install.sh index 80551af4b..8cd8a84e1 100644 --- a/install/uptimekuma-install.sh +++ b/install/uptimekuma-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://uptime.kuma.pet/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y git $STD apt-get install -y ca-certificates $STD apt-get install -y gnupg diff --git a/install/urbackupserver-install.sh b/install/urbackupserver-install.sh index 18d0fd9c2..998fd3309 100644 --- a/install/urbackupserver-install.sh +++ b/install/urbackupserver-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.urbackup.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ gnupg \ coreutils msg_ok "Installed Dependencies" diff --git a/install/vaultwarden-install.sh b/install/vaultwarden-install.sh index 8a2e2c0f1..8cdb949f7 100644 --- a/install/vaultwarden-install.sh +++ b/install/vaultwarden-install.sh @@ -22,10 +22,7 @@ $STD apt-get -qqy install \ libssl-dev \ libmariadb-dev-compat \ libpq-dev \ - curl \ - sudo \ - argon2 \ - mc + argon2 msg_ok "Installed Dependencies" WEBVAULT=$(curl -s https://api.github.com/repos/dani-garcia/bw_web_builds/releases/latest | diff --git a/install/victoriametrics-install.sh b/install/victoriametrics-install.sh index 4ba74fb8d..178fcd30c 100644 --- a/install/victoriametrics-install.sh +++ b/install/victoriametrics-install.sh @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - sudo \ - curl \ - mc -msg_ok "Installed Dependencies" - msg_info "Setup VictoriaMetrics" temp_dir=$(mktemp -d) cd $temp_dir diff --git a/install/vikunja-install.sh b/install/vikunja-install.sh index 3ed62024c..80f375998 100644 --- a/install/vikunja-install.sh +++ b/install/vikunja-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://vikunja.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - make \ - mc +$STD apt-get install -y make msg_ok "Installed Dependencies" msg_info "Setup Vikunja (Patience)" diff --git a/install/wallos-install.sh b/install/wallos-install.sh index ff98a180f..4884e9316 100644 --- a/install/wallos-install.sh +++ b/install/wallos-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/ellite/wallos -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -16,12 +16,9 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ apache2 \ libapache2-mod-php \ - php8.2-{mbstring,gd,curl,intl,imagick,bz2,sqlite3,zip,xml} + php8.2-{mbstring,gd,curl,intl,imagick,bz2,sqlite3,zip,xml} msg_ok "Installed Dependencies" msg_info "Installing Wallos (Patience)" @@ -52,14 +49,14 @@ cat </etc/apache2/sites-available/wallos.conf EOF $STD a2ensite wallos.conf -$STD a2dissite 000-default.conf +$STD a2dissite 000-default.conf $STD systemctl reload apache2 $STD curl http://localhost/endpoints/db/migrate.php msg_ok "Installed Wallos" -msg_info "Setting up Crontabs" +msg_info "Setting up Crontabs" mkdir -p /var/log/cron -cat < /opt/wallos.cron +cat </opt/wallos.cron 0 1 * * * php /opt/wallos/endpoints/cronjobs/updatenextpayment.php >> /var/log/cron/updatenextpayment.log 2>&1 0 2 * * * php /opt/wallos/endpoints/cronjobs/updateexchange.php >> /var/log/cron/updateexchange.log 2>&1 0 8 * * * php /opt/wallos/endpoints/cronjobs/sendcancellationnotifications.php >> /var/log/cron/sendcancellationnotifications.log 2>&1 diff --git a/install/wastebin-install.sh b/install/wastebin-install.sh index 600295184..58226b63a 100644 --- a/install/wastebin-install.sh +++ b/install/wastebin-install.sh @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Installing Wastebin" temp_file=$(mktemp) RELEASE=$(curl -s https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') diff --git a/install/watcharr-install.sh b/install/watcharr-install.sh index aa3c249df..c39d8e04c 100644 --- a/install/watcharr-install.sh +++ b/install/watcharr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/sbondCo/Watcharr -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ gcc \ gnupg msg_ok "Installed Dependencies" @@ -90,4 +87,4 @@ msg_info "Cleaning up" rm -f "$temp_file" $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/watchyourlan-install.sh b/install/watchyourlan-install.sh index 6c527186e..c13cc92d3 100644 --- a/install/watchyourlan-install.sh +++ b/install/watchyourlan-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/aceberg/WatchYourLAN -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,7 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y {curl,sudo,mc,gpg,arp-scan,ieee-data,libwww-perl} +$STD apt-get install -y {gpg,arp-scan,ieee-data,libwww-perl} msg_ok "Installed Dependencies" msg_info "Installing WatchYourLAN" diff --git a/install/wavelog-install.sh b/install/wavelog-install.sh index 961955809..0b5500434 100644 --- a/install/wavelog-install.sh +++ b/install/wavelog-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/wavelog/wavelog -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,13 +15,9 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - libapache2-mod-php \ - mariadb-server \ - mc \ - php8.2-{curl,mbstring,mysql,xml,zip,gd} \ - sudo \ - unzip + libapache2-mod-php \ + mariadb-server \ + php8.2-{curl,mbstring,mysql,xml,zip,gd} msg_ok "Installed Dependencies" msg_info "Setting up Database" @@ -36,7 +32,7 @@ $STD mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH echo "Wavelog Database User: $DB_USER" echo "Wavelog Database Password: $DB_PASS" echo "Wavelog Database Name: $DB_NAME" -} >> ~/wavelog.creds +} >>~/wavelog.creds msg_ok "Set up database" msg_info "Setting up PHP" @@ -73,7 +69,7 @@ cat </etc/apache2/sites-available/wavelog.conf EOF $STD a2ensite wavelog.conf -$STD a2dissite 000-default.conf +$STD a2dissite 000-default.conf $STD systemctl reload apache2 msg_ok "Created Service" diff --git a/install/web-check-install.sh b/install/web-check-install.sh index df92be337..ef6ad3d14 100644 --- a/install/web-check-install.sh +++ b/install/web-check-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/lissy93/web-check -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -16,9 +16,6 @@ update_os msg_info "Installing Dependencies" export DEBIAN_FRONTEND=noninteractive $STD apt-get -y install --no-install-recommends \ - curl \ - sudo \ - mc \ git \ gnupg \ traceroute \ @@ -67,7 +64,7 @@ $STD npm install -g yarn msg_ok "Installed Node.js" msg_info "Setting up Chromium" -/usr/bin/chromium --no-sandbox --version > /etc/chromium-version +/usr/bin/chromium --no-sandbox --version >/etc/chromium-version chmod 755 /usr/bin/chromium msg_ok "Setup Chromium" @@ -78,7 +75,7 @@ wget -q "https://github.com/CrazyWolf13/web-check/archive/refs/heads/${RELEASE}. tar xzf $temp_file mv web-check-${RELEASE} /opt/web-check cd /opt/web-check -cat <<'EOF' > /opt/web-check/.env +cat <<'EOF' >/opt/web-check/.env CHROME_PATH=/usr/bin/chromium PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium HEADLESS=true @@ -109,7 +106,7 @@ $STD yarn build --production msg_ok "Built Web-Check" msg_info "Creating Service" -cat <<'EOF' > /opt/run_web-check.sh +cat <<'EOF' >/opt/run_web-check.sh #!/bin/bash SCREEN_RESOLUTION="1280x1024x24" if ! systemctl is-active --quiet dbus; then @@ -123,7 +120,7 @@ cd /opt/web-check exec yarn start EOF chmod +x /opt/run_web-check.sh -cat <<'EOF' > /etc/systemd/system/web-check.service +cat <<'EOF' >/etc/systemd/system/web-check.service [Unit] Description=Web Check Service After=network.target diff --git a/install/wger-install.sh b/install/wger-install.sh index 7ffcdfbca..018eddd49 100644 --- a/install/wger-install.sh +++ b/install/wger-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/wger-project/wger -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,13 +15,10 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ - git \ - gnupg \ - apache2 \ - libapache2-mod-wsgi-py3 + git \ + gnupg \ + apache2 \ + libapache2-mod-wsgi-py3 msg_ok "Installed Dependencies" msg_info "Installing Python" diff --git a/install/whisparr-install.sh b/install/whisparr-install.sh index 76cdcf5cf..3600ea20a 100644 --- a/install/whisparr-install.sh +++ b/install/whisparr-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/Whisparr/Whisparr -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,10 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -$STD apt-get install -y sqlite3 +$STD apt-get install -y sqlite3 msg_ok "Installed Dependencies" msg_info "Installing Whisparr" diff --git a/install/whoogle-install.sh b/install/whoogle-install.sh index 10e06c475..e20dfcd61 100644 --- a/install/whoogle-install.sh +++ b/install/whoogle-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/benbusby/whoogle-search -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,12 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Setup Python3" $STD apt-get install -y \ python3 \ diff --git a/install/wikijs-install.sh b/install/wikijs-install.sh index 2c9edbe2e..076588081 100644 --- a/install/wikijs-install.sh +++ b/install/wikijs-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ git \ gpg msg_ok "Installed Dependencies" @@ -52,11 +49,11 @@ $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8' $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET default_transaction_isolation TO 'read committed';" $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC';" { - echo "WikiJS-Credentials" - echo "WikiJS Database User: $DB_USER" - echo "WikiJS Database Password: $DB_PASS" - echo "WikiJS Database Name: $DB_NAME" -} >> ~/wikijs.creds + echo "WikiJS-Credentials" + echo "WikiJS Database User: $DB_USER" + echo "WikiJS Database Password: $DB_PASS" + echo "WikiJS Database Name: $DB_NAME" +} >>~/wikijs.creds msg_ok "Set up PostgreSQL" msg_info "Setup Wiki.js" @@ -98,4 +95,4 @@ msg_info "Cleaning up" rm -f "$temp_file" $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/wireguard-install.sh b/install/wireguard-install.sh index 96b01df16..6e4b2048a 100644 --- a/install/wireguard-install.sh +++ b/install/wireguard-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.wireguard.com/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y git msg_ok "Installed Dependencies" @@ -37,7 +34,7 @@ msg_ok "Installed WGDashboard" msg_info "Create Example Config for WGDashboard" private_key=$(wg genkey) -cat </etc/wireguard/wg0.conf +cat </etc/wireguard/wg0.conf [Interface] PrivateKey = ${private_key} Address = 10.0.0.1/24 diff --git a/install/wordpress-install.sh b/install/wordpress-install.sh index 665b105ab..b4efe2ef5 100644 --- a/install/wordpress-install.sh +++ b/install/wordpress-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://wordpress.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,15 +15,11 @@ update_os msg_info "Installing Dependencies (Patience)" $STD apt-get install -y \ - curl \ - unzip \ - sudo \ - mc \ - apache2 \ - php8.2-{bcmath,common,cli,curl,fpm,gd,snmp,imap,mbstring,mysql,xml,zip} \ - libapache2-mod-php \ - mariadb-server - msg_ok "Installed Dependencies" + apache2 \ + php8.2-{bcmath,common,cli,curl,fpm,gd,snmp,imap,mbstring,mysql,xml,zip} \ + libapache2-mod-php \ + mariadb-server +msg_ok "Installed Dependencies" msg_info "Setting up Database" DB_NAME=wordpress_db @@ -37,7 +33,7 @@ $STD mysql -u root -e "GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'localho echo "Database User: $DB_USER" echo "Database Password: $DB_PASS" echo "Database Name: $DB_NAME" -} >> ~/wordpress.creds +} >>~/wordpress.creds msg_ok "Set up Database" msg_info "Installing Wordpress (Patience)" @@ -50,13 +46,13 @@ find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; mv wp-config-sample.php wp-config.php sed -i -e "s|^define( 'DB_NAME', '.*' );|define( 'DB_NAME', '$DB_NAME' );|" \ - -e "s|^define( 'DB_USER', '.*' );|define( 'DB_USER', '$DB_USER' );|" \ - -e "s|^define( 'DB_PASSWORD', '.*' );|define( 'DB_PASSWORD', '$DB_PASS' );|" \ - /var/www/html/wordpress/wp-config.php + -e "s|^define( 'DB_USER', '.*' );|define( 'DB_USER', '$DB_USER' );|" \ + -e "s|^define( 'DB_PASSWORD', '.*' );|define( 'DB_PASSWORD', '$DB_PASS' );|" \ + /var/www/html/wordpress/wp-config.php msg_ok "Installed Wordpress" msg_info "Setup Services" -cat < /etc/apache2/sites-available/wordpress.conf +cat </etc/apache2/sites-available/wordpress.conf ServerName yourdomain.com DocumentRoot /var/www/html/wordpress @@ -82,4 +78,4 @@ msg_info "Cleaning up" rm -rf /var/www/html/latest.zip $STD apt-get autoremove $STD apt-get autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/yt-dlp-webui-install.sh b/install/yt-dlp-webui-install.sh index b8fe75a0f..1466b5483 100644 --- a/install/yt-dlp-webui-install.sh +++ b/install/yt-dlp-webui-install.sh @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - sudo \ - mc \ - curl \ - ffmpeg +$STD apt-get install -y ffmpeg msg_ok "Installed Dependencies" msg_info "Installing ${APPLICATION}" diff --git a/install/yunohost-install.sh b/install/yunohost-install.sh index 8464bb13b..207d77117 100644 --- a/install/yunohost-install.sh +++ b/install/yunohost-install.sh @@ -14,9 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc $STD apt-get install -y gnupg $STD apt-get install -y apt-transport-https $STD apt-get install -y lsb-release diff --git a/install/zabbix-install.sh b/install/zabbix-install.sh index dfd4592a5..1e5a478d4 100644 --- a/install/zabbix-install.sh +++ b/install/zabbix-install.sh @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Installing Zabbix" cd /tmp wget -q https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb diff --git a/install/zammad-install.sh b/install/zammad-install.sh index 8c5794851..3143b1cf3 100644 --- a/install/zammad-install.sh +++ b/install/zammad-install.sh @@ -15,14 +15,11 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ git \ - sudo \ gpg \ - wget \ nginx \ apt-transport-https \ - gnupg + gnupg msg_ok "Installed Dependencies" msg_info "Setting up Elasticsearch" @@ -58,4 +55,4 @@ customize msg_info "Cleaning up" $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/zerotier-one-install.sh b/install/zerotier-one-install.sh index 183879a86..673648cdc 100644 --- a/install/zerotier-one-install.sh +++ b/install/zerotier-one-install.sh @@ -14,26 +14,22 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - mc \ - sudo \ - gnupg +$STD apt-get install -y gnupg msg_ok "Installed Dependencies" msg_info "Setting up Zerotier-One" -curl -s 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/main/doc/contact%40zerotier.com.gpg' | gpg --import && \ -if z="$(curl -s 'https://install.zerotier.com/' | gpg)"; then -echo "$z" | sudo bash -fi +curl -s 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/main/doc/contact%40zerotier.com.gpg' | gpg --import && + if z="$(curl -s 'https://install.zerotier.com/' | gpg)"; then + echo "$z" | sudo bash + fi msg_ok "Setup Zerotier-One" msg_info "Setting up UI" curl -O https://s3-us-west-1.amazonaws.com/key-networks/deb/ztncui/1/x86_64/ztncui_0.8.14_amd64.deb dpkg -i ztncui_0.8.14_amd64.deb sh -c "echo ZT_TOKEN=$(cat /var/lib/zerotier-one/authtoken.secret) > /opt/key-networks/ztncui/.env" -echo HTTPS_PORT=3443 >> /opt/key-networks/ztncui/.env -echo NODE_ENV=production >> /opt/key-networks/ztncui/.env +echo HTTPS_PORT=3443 >>/opt/key-networks/ztncui/.env +echo NODE_ENV=production >>/opt/key-networks/ztncui/.env chmod 400 /opt/key-networks/ztncui/.env chown ztncui:ztncui /opt/key-networks/ztncui/.env systemctl restart ztncui @@ -45,4 +41,4 @@ customize msg_info "Cleaning up" $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/install/zigbee2mqtt-install.sh b/install/zigbee2mqtt-install.sh index c64c1b76c..9c6a0f724 100644 --- a/install/zigbee2mqtt-install.sh +++ b/install/zigbee2mqtt-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.zigbee2mqtt.io/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - sudo \ - mc \ git \ make \ g++ \ diff --git a/install/zipline-install.sh b/install/zipline-install.sh index 2d611bca7..3d167420a 100644 --- a/install/zipline-install.sh +++ b/install/zipline-install.sh @@ -6,7 +6,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/diced/zipline -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -17,10 +17,7 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ postgresql \ - gpg \ - curl \ - sudo \ - mc + gpg msg_ok "Installed Dependencies" msg_info "Setting up Node.js Repository" diff --git a/install/zitadel-install.sh b/install/zitadel-install.sh index cb8f49828..1c0a4a56c 100644 --- a/install/zitadel-install.sh +++ b/install/zitadel-install.sh @@ -14,12 +14,7 @@ network_check update_os msg_info "Installing Dependencies (Patience)" -$STD apt-get install -y \ - curl \ - sudo \ - mc \ - ca-certificates \ - wget +$STD apt-get install -y ca-certificates msg_ok "Installed Dependecies" msg_info "Installing Postgresql" @@ -34,13 +29,13 @@ $STD sudo -u postgres psql -c "CREATE USER $DB_USER WITH PASSWORD '$DB_PASS';" $STD sudo -u postgres psql -c "CREATE USER $DB_ADMIN_USER WITH PASSWORD '$DB_ADMIN_PASS' SUPERUSER;" $STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME OWNER $DB_ADMIN_USER;" { - echo "Application Credentials" - echo "DB_NAME: $DB_NAME" - echo "DB_USER: $DB_USER" - echo "DB_PASS: $DB_PASS" - echo "DB_ADMIN_USER: $DB_ADMIN_USER" - echo "DB_ADMIN_PASS: $DB_ADMIN_PASS" -} >> ~/zitadel.creds + echo "Application Credentials" + echo "DB_NAME: $DB_NAME" + echo "DB_USER: $DB_USER" + echo "DB_PASS: $DB_PASS" + echo "DB_ADMIN_USER: $DB_ADMIN_USER" + echo "DB_ADMIN_PASS: $DB_ADMIN_PASS" +} >>~/zitadel.creds msg_ok "Installed PostgreSQL" msg_info "Installing Zitadel" @@ -51,12 +46,12 @@ msg_ok "Installed Zitadel" msg_info "Setting up Zitadel Environments" mkdir -p /opt/zitadel -echo "/opt/zitadel/config.yaml" > "/opt/zitadel/.config" -head -c 32 < <(openssl rand -base64 48 | tr -dc 'a-zA-Z0-9') > "/opt/zitadel/.masterkey" +echo "/opt/zitadel/config.yaml" >"/opt/zitadel/.config" +head -c 32 < <(openssl rand -base64 48 | tr -dc 'a-zA-Z0-9') >"/opt/zitadel/.masterkey" { - echo "Config location: $(cat "/opt/zitadel/.config")" - echo "Masterkey: $(cat "/opt/zitadel/.masterkey")" -} >> ~/zitadel.creds + echo "Config location: $(cat "/opt/zitadel/.config")" + echo "Masterkey: $(cat "/opt/zitadel/.masterkey")" +} >>~/zitadel.creds cat </opt/zitadel/config.yaml Port: 8080 ExternalPort: 8080 @@ -133,7 +128,7 @@ msg_info "Set ExternalDomain to current IP and restart Zitadel" IP=$(ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1) sed -i "0,/localhost/s/localhost/${IP}/" /opt/zitadel/config.yaml systemctl stop -q zitadel.service -zitadel setup --masterkeyFile /opt/zitadel/.masterkey --config /opt/zitadel/config.yaml &>/dev/null +zitadel setup --masterkeyFile /opt/zitadel/.masterkey --config /opt/zitadel/config.yaml &>/dev/null systemctl restart -q zitadel.service msg_ok "Zitadel restarted with ExternalDomain set to current IP" diff --git a/install/zoraxy-install.sh b/install/zoraxy-install.sh index 626cb0f2b..a887b33cf 100644 --- a/install/zoraxy-install.sh +++ b/install/zoraxy-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://zoraxy.aroz.org/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,14 +13,8 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -msg_ok "Installed Dependencies" - msg_info "Installing Zoraxy (Patience)" -RELEASE=$(curl -s https://api.github.com/repos/tobychui/zoraxy/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') +RELEASE=$(curl -s https://api.github.com/repos/tobychui/zoraxy/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') wget -q "https://github.com/tobychui/zoraxy/releases/download/${RELEASE}/zoraxy_linux_amd64" mkdir -p /opt/zoraxy mv zoraxy_linux_amd64 /opt/zoraxy/zoraxy diff --git a/install/zwave-js-ui-install.sh b/install/zwave-js-ui-install.sh index 0a8f16f54..af7a6f541 100644 --- a/install/zwave-js-ui-install.sh +++ b/install/zwave-js-ui-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://zwave-js.github.io/zwave-js-ui/#/ -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -13,13 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - curl \ - sudo \ - mc -msg_ok "Installed Dependencies" - msg_info "Installing Z-Wave JS UI" mkdir -p /opt/zwave-js-ui mkdir -p /opt/zwave_store @@ -35,7 +28,7 @@ echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" msg_ok "Installed Z-Wave JS UI" msg_info "Creating Service" -cat < /etc/systemd/system/zwave-js-ui.service +cat </etc/systemd/system/zwave-js-ui.service [Unit] Description=zwave-js-ui Wants=network-online.target