From 2671c388d0c36488ad479dd51c4b26e22be47376 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 9 Apr 2025 14:21:55 +0200 Subject: [PATCH] fix paths --- ct/alpine-duplicati.sh | 41 +++++++++++++++++++ install/alpine-duplicati-install.sh | 24 +++++++++++ {scripts => tools}/tools/add-iptag.sh | 0 {scripts => tools}/tools/code-server.sh | 0 .../tools/container-restore-from-backup.sh | 0 .../tools/core-restore-from-backup.sh | 0 {scripts => tools}/tools/filebrowser.sh | 0 {scripts => tools}/tools/frigate-support.sh | 0 {scripts => tools}/tools/gpu-amd.func | 0 {scripts => tools}/tools/gpu-intel.func | 0 {scripts => tools}/tools/gpu-nvidia.func | 0 {scripts => tools}/tools/grafana-loki.sh | 0 {scripts => tools}/tools/host-backup.sh | 0 {scripts => tools}/tools/hw-acceleration.sh | 0 {scripts => tools}/tools/kernel-clean.sh | 0 {scripts => tools}/tools/pyenv.sh | 0 .../tools/switch_from_VED_to_VE.sh | 0 {scripts => tools}/tools/usb-passthrough.sh | 0 {scripts/vms => vms}/debian-vm-test-helper.sh | 0 {scripts/vms => vms}/debian-vm.sh | 0 20 files changed, 65 insertions(+) create mode 100644 ct/alpine-duplicati.sh create mode 100644 install/alpine-duplicati-install.sh rename {scripts => tools}/tools/add-iptag.sh (100%) rename {scripts => tools}/tools/code-server.sh (100%) rename {scripts => tools}/tools/container-restore-from-backup.sh (100%) rename {scripts => tools}/tools/core-restore-from-backup.sh (100%) rename {scripts => tools}/tools/filebrowser.sh (100%) rename {scripts => tools}/tools/frigate-support.sh (100%) rename {scripts => tools}/tools/gpu-amd.func (100%) rename {scripts => tools}/tools/gpu-intel.func (100%) rename {scripts => tools}/tools/gpu-nvidia.func (100%) rename {scripts => tools}/tools/grafana-loki.sh (100%) rename {scripts => tools}/tools/host-backup.sh (100%) rename {scripts => tools}/tools/hw-acceleration.sh (100%) rename {scripts => tools}/tools/kernel-clean.sh (100%) rename {scripts => tools}/tools/pyenv.sh (100%) rename {scripts => tools}/tools/switch_from_VED_to_VE.sh (100%) rename {scripts => tools}/tools/usb-passthrough.sh (100%) rename {scripts/vms => vms}/debian-vm-test-helper.sh (100%) rename {scripts/vms => vms}/debian-vm.sh (100%) diff --git a/ct/alpine-duplicati.sh b/ct/alpine-duplicati.sh new file mode 100644 index 0000000..ceacf54 --- /dev/null +++ b/ct/alpine-duplicati.sh @@ -0,0 +1,41 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) + +APP="Alpine-Duplicati" +var_tags="${var_tags:-alpine}" +var_cpu="${var_cpu:-1}" +var_ram="${var_ram:-256}" +var_disk="${var_disk:-1}" +var_os="${var_os:-alpine}" +var_version="${var_version:-3.21}" +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + msg_info "Updating Alpine Packages" + $STD apk update + $STD apk upgrade + msg_ok "Updated Alpine Packages" + + msg_info "Updating Duplicati" + $STD apk upgrade duplicati + msg_ok "Updated Duplicati" + + msg_info "Restarting Duplicati" + $STD rc-service duplicati restart || true + msg_ok "Restarted Duplicati" + + exit 0 +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW} Access info will vary based on service config. CLI access likely available. ${CL}" diff --git a/install/alpine-duplicati-install.sh b/install/alpine-duplicati-install.sh new file mode 100644 index 0000000..18cbd45 --- /dev/null +++ b/install/alpine-duplicati-install.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apk add --no-cache duplicati +msg_ok "Installed duplicati" + +msg_info "Enabling duplicati Service" +$STD rc-update add duplicati default || true +msg_ok "Enabled duplicati Service" + +msg_info "Starting duplicati" +$STD rc-service duplicati start || true +msg_ok "Started duplicati" + +motd_ssh +customize diff --git a/scripts/tools/add-iptag.sh b/tools/tools/add-iptag.sh similarity index 100% rename from scripts/tools/add-iptag.sh rename to tools/tools/add-iptag.sh diff --git a/scripts/tools/code-server.sh b/tools/tools/code-server.sh similarity index 100% rename from scripts/tools/code-server.sh rename to tools/tools/code-server.sh diff --git a/scripts/tools/container-restore-from-backup.sh b/tools/tools/container-restore-from-backup.sh similarity index 100% rename from scripts/tools/container-restore-from-backup.sh rename to tools/tools/container-restore-from-backup.sh diff --git a/scripts/tools/core-restore-from-backup.sh b/tools/tools/core-restore-from-backup.sh similarity index 100% rename from scripts/tools/core-restore-from-backup.sh rename to tools/tools/core-restore-from-backup.sh diff --git a/scripts/tools/filebrowser.sh b/tools/tools/filebrowser.sh similarity index 100% rename from scripts/tools/filebrowser.sh rename to tools/tools/filebrowser.sh diff --git a/scripts/tools/frigate-support.sh b/tools/tools/frigate-support.sh similarity index 100% rename from scripts/tools/frigate-support.sh rename to tools/tools/frigate-support.sh diff --git a/scripts/tools/gpu-amd.func b/tools/tools/gpu-amd.func similarity index 100% rename from scripts/tools/gpu-amd.func rename to tools/tools/gpu-amd.func diff --git a/scripts/tools/gpu-intel.func b/tools/tools/gpu-intel.func similarity index 100% rename from scripts/tools/gpu-intel.func rename to tools/tools/gpu-intel.func diff --git a/scripts/tools/gpu-nvidia.func b/tools/tools/gpu-nvidia.func similarity index 100% rename from scripts/tools/gpu-nvidia.func rename to tools/tools/gpu-nvidia.func diff --git a/scripts/tools/grafana-loki.sh b/tools/tools/grafana-loki.sh similarity index 100% rename from scripts/tools/grafana-loki.sh rename to tools/tools/grafana-loki.sh diff --git a/scripts/tools/host-backup.sh b/tools/tools/host-backup.sh similarity index 100% rename from scripts/tools/host-backup.sh rename to tools/tools/host-backup.sh diff --git a/scripts/tools/hw-acceleration.sh b/tools/tools/hw-acceleration.sh similarity index 100% rename from scripts/tools/hw-acceleration.sh rename to tools/tools/hw-acceleration.sh diff --git a/scripts/tools/kernel-clean.sh b/tools/tools/kernel-clean.sh similarity index 100% rename from scripts/tools/kernel-clean.sh rename to tools/tools/kernel-clean.sh diff --git a/scripts/tools/pyenv.sh b/tools/tools/pyenv.sh similarity index 100% rename from scripts/tools/pyenv.sh rename to tools/tools/pyenv.sh diff --git a/scripts/tools/switch_from_VED_to_VE.sh b/tools/tools/switch_from_VED_to_VE.sh similarity index 100% rename from scripts/tools/switch_from_VED_to_VE.sh rename to tools/tools/switch_from_VED_to_VE.sh diff --git a/scripts/tools/usb-passthrough.sh b/tools/tools/usb-passthrough.sh similarity index 100% rename from scripts/tools/usb-passthrough.sh rename to tools/tools/usb-passthrough.sh diff --git a/scripts/vms/debian-vm-test-helper.sh b/vms/debian-vm-test-helper.sh similarity index 100% rename from scripts/vms/debian-vm-test-helper.sh rename to vms/debian-vm-test-helper.sh diff --git a/scripts/vms/debian-vm.sh b/vms/debian-vm.sh similarity index 100% rename from scripts/vms/debian-vm.sh rename to vms/debian-vm.sh