diff --git a/ct/casaos.sh b/ct/casaos.sh index e7bcf8e2..c98a025d 100644 --- a/ct/casaos.sh +++ b/ct/casaos.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/docker.func) +source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) # Copyright (c) 2021-2023 tteck # Author: tteck (tteckster) # License: MIT diff --git a/ct/docker.sh b/ct/docker.sh index 37ca3808..1805787c 100644 --- a/ct/docker.sh +++ b/ct/docker.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/docker.func) +source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) # Copyright (c) 2021-2023 tteck # Author: tteck (tteckster) # License: MIT diff --git a/ct/homeassistant.sh b/ct/homeassistant.sh index 590a9bf6..ac667247 100644 --- a/ct/homeassistant.sh +++ b/ct/homeassistant.sh @@ -46,6 +46,7 @@ function default_settings() { MAC="" VLAN="" SSH="no" + FUSE="no" VERB="no" echo_default } diff --git a/ct/paperless-ngx.sh b/ct/paperless-ngx.sh index d2a9b9d1..09d46d45 100644 --- a/ct/paperless-ngx.sh +++ b/ct/paperless-ngx.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ____ __ / __ \____ _____ ___ _____/ /__ __________ ____ ____ __ __ / /_/ / __ `/ __ \/ _ \/ ___/ / _ \/ ___/ ___/___/ __ \/ __ `/ |/_/ diff --git a/ct/photoprism.sh b/ct/photoprism.sh index d40335e3..231f7d1e 100644 --- a/ct/photoprism.sh +++ b/ct/photoprism.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ____ __ ______ __________ ____ ____ _________ __ ___ / __ \/ / / / __ \/_ __/ __ \/ __ \/ __ \/ _/ ___// |/ / / /_/ / /_/ / / / / / / / / / / /_/ / /_/ // / \__ \/ /|_/ / diff --git a/ct/pihole.sh b/ct/pihole.sh index 7efeb280..07e786ea 100644 --- a/ct/pihole.sh +++ b/ct/pihole.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ____ ____ __ ______ __ ______ / __ \/ _/ / / / / __ \/ / / ____/ / /_/ // /___/ /_/ / / / / / / __/ diff --git a/ct/plex.sh b/ct/plex.sh index 17a8ecea..48d12505 100644 --- a/ct/plex.sh +++ b/ct/plex.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ____ __ __ ___ ___ _____ / __ \/ /__ _ __ / |/ /__ ____/ (_)___ _ / ___/___ ______ _____ _____ / /_/ / / _ \| |/_/ / /|_/ / _ \/ __ / / __ `/ \__ \/ _ \/ ___/ | / / _ \/ ___/ diff --git a/ct/podman-homeassistant.sh b/ct/podman-homeassistant.sh index 0f0182e2..be35917e 100644 --- a/ct/podman-homeassistant.sh +++ b/ct/podman-homeassistant.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ____ __ / __ \____ ____/ /___ ___ ____ _____ / /_/ / __ \/ __ / __ __ \/ __ / __ \ diff --git a/ct/podman.sh b/ct/podman.sh index dd25f057..b4297c51 100644 --- a/ct/podman.sh +++ b/ct/podman.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ____ __ / __ \____ ____/ /___ ___ ____ _____ / /_/ / __ \/ __ / __ `__ \/ __ `/ __ \ diff --git a/ct/postgresql.sh b/ct/postgresql.sh index 754ced8b..f0b606a1 100644 --- a/ct/postgresql.sh +++ b/ct/postgresql.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ____ __ _____ ____ __ / __ \____ _____/ /_____ _________ / ___// __ \ / / / /_/ / __ \/ ___/ __/ __ / ___/ _ \\__ \/ / / / / / diff --git a/ct/prometheus.sh b/ct/prometheus.sh index 4bc71930..16f17758 100644 --- a/ct/prometheus.sh +++ b/ct/prometheus.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ____ __ __ / __ \_________ ____ ___ ___ / /_/ /_ ___ __ _______ / /_/ / ___/ __ \/ __ __ \/ _ \/ __/ __ \/ _ \/ / / / ___/ diff --git a/ct/prowlarr.sh b/ct/prowlarr.sh index b0dffde3..2c323541 100644 --- a/ct/prowlarr.sh +++ b/ct/prowlarr.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ____ __ / __ \_________ _ __/ /___ __________ / /_/ / ___/ __ \ | /| / / / __ `/ ___/ ___/ diff --git a/ct/radarr.sh b/ct/radarr.sh index 9ddd1b45..a379e8ac 100644 --- a/ct/radarr.sh +++ b/ct/radarr.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ____ __ / __ \____ _____/ /___ __________ / /_/ / __ `/ __ / __ `/ ___/ ___/ diff --git a/ct/readarr.sh b/ct/readarr.sh index deca401d..bea527d0 100644 --- a/ct/readarr.sh +++ b/ct/readarr.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ____ __ / __ \___ ____ _____/ /___ __________ / /_/ / _ \/ __ `/ __ / __ `/ ___/ ___/ diff --git a/ct/rockylinux.sh b/ct/rockylinux.sh index d9c97165..edc69291 100644 --- a/ct/rockylinux.sh +++ b/ct/rockylinux.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ____ __ __ _ / __ \____ _____/ /____ __ / / (_)___ __ ___ __ / /_/ / __ \/ ___/ //_/ / / / / / / / __ \/ / / / |/_/ diff --git a/ct/sabnzbd.sh b/ct/sabnzbd.sh index 195e7955..ea75032d 100644 --- a/ct/sabnzbd.sh +++ b/ct/sabnzbd.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - _____ ___ ____ __ __ / ___// | / __ )____ ____ / /_ ____/ / \__ \/ /| | / __ / __ \/_ / / __ \/ __ / diff --git a/ct/scrypted.sh b/ct/scrypted.sh index 45de42d4..d307d78c 100644 --- a/ct/scrypted.sh +++ b/ct/scrypted.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - _____ __ __ / ___/____________ ______ / /____ ____/ / \__ \/ ___/ ___/ / / / __ \/ __/ _ \/ __ / diff --git a/ct/shinobi.sh b/ct/shinobi.sh index dd27cd59..bc5572e6 100644 --- a/ct/shinobi.sh +++ b/ct/shinobi.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - _____ __ _ __ _ / ___// /_ (_)___ ____ / /_ (_) \__ \/ __ \/ / __ \/ __ \/ __ \/ / diff --git a/ct/sonarr.sh b/ct/sonarr.sh index c6bceefa..ac6f2399 100644 --- a/ct/sonarr.sh +++ b/ct/sonarr.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - _____ / ___/____ ____ ____ __________ \__ \/ __ \/ __ \/ __ `/ ___/ ___/ diff --git a/ct/syncthing.sh b/ct/syncthing.sh index d7bf2724..292cf4db 100644 --- a/ct/syncthing.sh +++ b/ct/syncthing.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - _____ __ __ _ / ___/__ ______ _____/ /_/ /_ (_)___ ____ _ \__ \/ / / / __ \/ ___/ __/ __ \/ / __ \/ __ `/ diff --git a/ct/tdarr.sh b/ct/tdarr.sh index cb1e415a..994ae3db 100644 --- a/ct/tdarr.sh +++ b/ct/tdarr.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ______ __ /_ __/___/ /___ __________ / / / __ / __ `/ ___/ ___/ diff --git a/ct/technitiumdns.sh b/ct/technitiumdns.sh index 7233ca55..f947cd07 100644 --- a/ct/technitiumdns.sh +++ b/ct/technitiumdns.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ______ __ _ __ _ ____ _ _______ /_ __/__ _____/ /_ ____ (_) /_(_)_ ______ ___ / __ \/ | / / ___/ / / / _ \/ ___/ __ \/ __ \/ / __/ / / / / __ __ \ / / / / |/ /\__ \ diff --git a/ct/transmission.sh b/ct/transmission.sh index 8b4c06a0..94e654d6 100644 --- a/ct/transmission.sh +++ b/ct/transmission.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ______ _ _ /_ __/________ _____ _________ ___ (_)_________(_)___ ____ / / / ___/ __ `/ __ \/ ___/ __ `__ \/ / ___/ ___/ / __ \/ __ \ diff --git a/ct/trilium.sh b/ct/trilium.sh index 4ed13fca..3e15c458 100644 --- a/ct/trilium.sh +++ b/ct/trilium.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - ______ _ ___ /_ __/____(_) (_)_ ______ ___ / / / ___/ / / / / / / __ `__ \ diff --git a/ct/ubuntu.sh b/ct/ubuntu.sh index 81501e20..bc2f0cc6 100644 --- a/ct/ubuntu.sh +++ b/ct/ubuntu.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - __ ____ __ / / / / /_ __ ______ / /___ __ / / / / __ \/ / / / __ \/ __/ / / / diff --git a/ct/umbrel.sh b/ct/umbrel.sh index 796693ce..46ed1aa2 100644 --- a/ct/umbrel.sh +++ b/ct/umbrel.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/docker.func) +source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) # Copyright (c) 2021-2023 tteck # Author: tteck (tteckster) # License: MIT @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/docke function header_info { clear cat <<"EOF" - __ __ __ __ / / / /___ ___ / /_ ________ / / / / / / __ `__ \/ __ \/ ___/ _ \/ / diff --git a/ct/unifi.sh b/ct/unifi.sh index 19cb57e2..542f1f87 100644 --- a/ct/unifi.sh +++ b/ct/unifi.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - __ __ _ _____ / / / /__ (_) __(_) / / / / __ \/ / /_/ / diff --git a/ct/uptimekuma.sh b/ct/uptimekuma.sh index 467f927c..4f64ecc3 100644 --- a/ct/uptimekuma.sh +++ b/ct/uptimekuma.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - __ __ __ _ __ __ / / / /___ / /_(_)___ ___ ___ / //_/_ ______ ___ ____ _ / / / / __ \/ __/ / __ __ \/ _ \ / ,< / / / / __ __ \/ __ / diff --git a/ct/vaultwarden.sh b/ct/vaultwarden.sh index 28d7150c..8f887956 100644 --- a/ct/vaultwarden.sh +++ b/ct/vaultwarden.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - _ __ ____ _ __ __ | | / /___ ___ __/ / /| | / /___ __________/ /__ ____ | | / / __ `/ / / / / __/ | /| / / __ `/ ___/ __ / _ \/ __ \ diff --git a/ct/whisparr.sh b/ct/whisparr.sh index 4ae3b249..c616282a 100644 --- a/ct/whisparr.sh +++ b/ct/whisparr.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - _ ____ _ | | / / /_ (_)________ ____ __________ | | /| / / __ \/ / ___/ __ \/ __ `/ ___/ ___/ diff --git a/ct/whoogle.sh b/ct/whoogle.sh index 488babeb..e93b19d7 100644 --- a/ct/whoogle.sh +++ b/ct/whoogle.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - _ ____ ______ ____ ________ ______ | | / / / / / __ \/ __ \/ ____/ / / ____/ | | /| / / /_/ / / / / / / / / __/ / / __/ diff --git a/ct/wikijs.sh b/ct/wikijs.sh index 96a2e4dd..e1ac9863 100644 --- a/ct/wikijs.sh +++ b/ct/wikijs.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - _ ___ __ _ _ | | / (_) /__(_) (_)____ | | /| / / / //_/ / / / ___/ diff --git a/ct/wireguard.sh b/ct/wireguard.sh index 02bef523..553de4e5 100644 --- a/ct/wireguard.sh +++ b/ct/wireguard.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - _ ___ ______ __ | | / (_)_______ / ____/_ ______ __________/ / | | /| / / / ___/ _ \/ / __/ / / / __ `/ ___/ __ / diff --git a/ct/yunohost.sh b/ct/yunohost.sh index 1d202995..22198999 100644 --- a/ct/yunohost.sh +++ b/ct/yunohost.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - __ __ __ __ __ \ \/ /_ ______ ____ / / / /___ _____/ /_ \ / / / / __ \/ __ \/ /_/ / __ \/ ___/ __/ diff --git a/ct/zigbee2mqtt.sh b/ct/zigbee2mqtt.sh index 243b7d7b..c1c59ff0 100644 --- a/ct/zigbee2mqtt.sh +++ b/ct/zigbee2mqtt.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - _____ _ __ ___ __ _______ ____________ /__ / (_)___ _/ /_ ___ ___ |__ \ / |/ / __ \/_ __/_ __/ / / / / __ / __ \/ _ \/ _ \__/ // /|_/ / / / / / / / / diff --git a/ct/zwave-js-ui.sh b/ct/zwave-js-ui.sh index bfecfad7..ed8c0d64 100644 --- a/ct/zwave-js-ui.sh +++ b/ct/zwave-js-ui.sh @@ -8,7 +8,6 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build function header_info { clear cat <<"EOF" - _____ _______ __ ______ /__ /_ ______ __ _____ / / ___/ / / / / _/ / /| | /| / / __ `/ | / / _ \ __ / /\__ \ / / / // / diff --git a/misc/build.func b/misc/build.func index 977d4706..24336f62 100644 --- a/misc/build.func +++ b/misc/build.func @@ -87,6 +87,9 @@ echo_default() { echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}" echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" + if [[ "$APP" == "Docker" || "$APP" == "Umbrel" || "$APP" == "CasaOS" || "$APP" == "Home Assistant" ]]; then + echo -e "${DGN}Enable Fuse Overlayfs (ZFS): ${BGN}No${CL}" + fi echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } @@ -300,6 +303,15 @@ advanced_settings() { fi echo -e "${DGN}Enable Root SSH Access: ${BGN}$SSH${CL}" + if [[ "$APP" == "Docker" || "$APP" == "Umbrel" || "$APP" == "CasaOS" || "$APP" == "Home Assistant" ]]; then + if (whiptail --defaultno --title "FUSE OVERLAYFS" --yesno "(ZFS) Enable Fuse Overlayfs?" 10 58); then + FUSE="yes" + else + FUSE="no" + fi + echo -e "${DGN}Enable Fuse Overlayfs (ZFS): ${BGN}$FUSE${CL}" + fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then VERB="yes" else @@ -355,15 +367,29 @@ start() { build_container() { if [ "$VERB" == "yes" ]; then set -x; fi - if [ "$CT_TYPE" == "1" ]; then - FEATURES="nesting=1,keyctl=1" - else - FEATURES="nesting=1" + + if [[ "$APP" == "Docker" || "$APP" == "Umbrel" || "$APP" == "CasaOS" || "$APP" == "Home Assistant" ]]; then + if [ "$FUSE" == "yes" ]; then + FEATURES="fuse=1,keyctl=1,nesting=1" + else + FEATURES="keyctl=1,nesting=1" + fi fi + if [[ "$APP" != "Docker" && "$APP" != "Umbrel" && "$APP" != "CasaOS" && "$APP" != "Home Assistant"]]; then + if [ "$CT_TYPE" == "1" ]; then + FEATURES="keyctl=1,nesting=1" + else + FEATURES="nesting=1" + fi + fi + TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/install.func)" export tz="$timezone" + if [[ "$APP" == "Docker" || "$APP" == "Umbrel" || "$APP" == "CasaOS" || "$APP" == "Home Assistant" ]]; then + export ST="$FUSE" + fi export DISABLEIPV6="$DISABLEIP6" export APPLICATION="$APP" export VERBOSE="$VERB"