mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-18 00:12:17 +00:00
- checkmk: use github_api_call+jq for tag fetch, get_os_info codename in deb URL, strip +security suffix, bump default to Debian 13 - cockpit: remove source /etc/os-release, use get_os_info codename for backports suite/install, get_os_version_major for version check - flaresolverr: replace raw grep on /etc/os-release with get_os_version_major - lldap: remove source /etc/os-release, use get_os_info id+version for repo URL - mqtt: remove unused source /etc/os-release - pangolin: replace . /etc/os-release + VERSION_CODENAME with get_os_info codename - paperless-ngx: replace both . /etc/os-release + VERSION_CODENAME checks with get_os_info codename - photoprism: replace hardcoded bookworm in libheif URL with get_os_info codename - proxmox-datacenter-manager: replace grep on os-release string with get_os_version_major - wireguard: replace . /etc/os-release + VERSION_CODENAME with get_os_info codename - zabbix: replace . /etc/os-release + VERSION_CODENAME with get_os_info codename
57 lines
1.7 KiB
Bash
57 lines
1.7 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2021-2026 tteck
|
|
# Author: tteck
|
|
# Co-Author: havardthom
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://github.com/cockpit-project/cockpit
|
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
color
|
|
verb_ip6
|
|
catch_errors
|
|
setting_up_container
|
|
network_check
|
|
update_os
|
|
|
|
msg_info "Installing Cockpit"
|
|
cat <<EOF >/etc/apt/sources.list.d/debian-backports.sources
|
|
Types: deb deb-src
|
|
URIs: http://deb.debian.org/debian
|
|
Suites: $(get_os_info codename)-backports
|
|
Components: main
|
|
Enabled: yes
|
|
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
|
EOF
|
|
|
|
$STD apt update
|
|
$STD apt install -t $(get_os_info codename)-backports cockpit cracklib-runtime --no-install-recommends -y
|
|
sed -i "s/root//g" /etc/cockpit/disallowed-users
|
|
msg_ok "Installed Cockpit"
|
|
|
|
read -r -p "Would you like to install 45Drives' cockpit-file-sharing, cockpit-identities, and cockpit-navigator <y/N> " prompt
|
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
|
install_45drives=true
|
|
if [[ "$(get_os_version_major)" -ge 13 ]]; then
|
|
read -r -p "Debian $(get_os_version_major) is not officially supported by 45Drives yet, would you like to continue anyway? <y/N> " prompt
|
|
if [[ ! "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
|
install_45drives=false
|
|
fi
|
|
fi
|
|
if [[ "$install_45drives" == "true" ]]; then
|
|
msg_info "Installing 45Drives' cockpit extensions"
|
|
setup_deb822_repo "45drives" \
|
|
"https://repo.45drives.com/key/gpg.asc" \
|
|
"https://repo.45drives.com/enterprise/debian" \
|
|
"bookworm" \
|
|
"main" \
|
|
"amd64"
|
|
$STD apt install -y cockpit-file-sharing cockpit-identities cockpit-navigator
|
|
msg_ok "Installed 45Drives' cockpit extensions"
|
|
fi
|
|
fi
|
|
|
|
motd_ssh
|
|
customize
|
|
cleanup_lxc
|