From d9d38d85e98610768b0e4b5a8d2621250b7691ce Mon Sep 17 00:00:00 2001 From: MickLesk Date: Thu, 23 Jul 2026 17:59:42 +0200 Subject: [PATCH] Cockpit: offer to install 45Drives extensions during update if missing --- ct/cockpit.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ct/cockpit.sh b/ct/cockpit.sh index 54e0fe050..dd1f3b568 100644 --- a/ct/cockpit.sh +++ b/ct/cockpit.sh @@ -33,6 +33,22 @@ function update_script() { $STD apt update $STD apt -y upgrade msg_ok "Updated ${APP} LXC" + + if [[ ! -f /etc/apt/sources.list.d/45drives.sources ]]; then + [[ "$(arch_resolve)" == "arm64" ]] || read -r -p "Would you like to install 45Drives' cockpit-file-sharing, cockpit-identities, and cockpit-navigator now? " prompt + if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then + msg_info "Installing 45Drives' cockpit extensions" + setup_deb822_repo "45drives" \ + "https://repo.45drives.com/key/gpg.asc" \ + "https://repo.45drives.com/enterprise/debian" \ + "$(get_os_info codename)" \ + "main" \ + "amd64" + $STD apt install -y cockpit-file-sharing cockpit-identities cockpit-navigator + msg_ok "Installed 45Drives' cockpit extensions" + fi + fi + msg_ok "Updated successfully!" exit }