mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-12-12 02:46:01 +00:00
Update cockpit to Debian 13 (#8119)
This commit is contained in:
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}"
|
|||||||
var_ram="${var_ram:-1024}"
|
var_ram="${var_ram:-1024}"
|
||||||
var_disk="${var_disk:-4}"
|
var_disk="${var_disk:-4}"
|
||||||
var_os="${var_os:-debian}"
|
var_os="${var_os:-debian}"
|
||||||
var_version="${var_version:-12}"
|
var_version="${var_version:-13}"
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
header_info "$APP"
|
header_info "$APP"
|
||||||
@@ -36,15 +36,15 @@ function update_script() {
|
|||||||
|
|
||||||
if [ "$UPD" == "1" ]; then
|
if [ "$UPD" == "1" ]; then
|
||||||
msg_info "Updating ${APP} LXC"
|
msg_info "Updating ${APP} LXC"
|
||||||
$STD apt-get update
|
$STD apt update
|
||||||
$STD apt-get -y upgrade
|
$STD apt -y upgrade
|
||||||
msg_ok "Updated ${APP} LXC"
|
msg_ok "Updated ${APP} LXC"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$UPD" == "2" ]; then
|
if [ "$UPD" == "2" ]; then
|
||||||
msg_info "Installing dependencies (patience)"
|
msg_info "Installing dependencies (patience)"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
attr \
|
attr \
|
||||||
nfs-kernel-server \
|
nfs-kernel-server \
|
||||||
samba \
|
samba \
|
||||||
@@ -56,7 +56,7 @@ function update_script() {
|
|||||||
URL=$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-file-sharing/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)
|
URL=$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-file-sharing/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)
|
||||||
FILE=$(basename "$URL")
|
FILE=$(basename "$URL")
|
||||||
curl -fsSL "$URL" -o "$FILE"
|
curl -fsSL "$URL" -o "$FILE"
|
||||||
$STD dpkg -i "$FILE" || $STD apt-get install -f -y
|
$STD dpkg -i "$FILE" || $STD apt install -f -y
|
||||||
rm -f "$FILE"
|
rm -f "$FILE"
|
||||||
msg_ok "Installed Cockpit file sharing"
|
msg_ok "Installed Cockpit file sharing"
|
||||||
exit
|
exit
|
||||||
@@ -64,7 +64,7 @@ function update_script() {
|
|||||||
|
|
||||||
if [ "$UPD" == "3" ]; then
|
if [ "$UPD" == "3" ]; then
|
||||||
msg_info "Installing dependencies (patience)"
|
msg_info "Installing dependencies (patience)"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
psmisc \
|
psmisc \
|
||||||
samba \
|
samba \
|
||||||
samba-common-bin
|
samba-common-bin
|
||||||
@@ -73,7 +73,7 @@ function update_script() {
|
|||||||
URL=$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-identities/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)
|
URL=$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-identities/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)
|
||||||
FILE=$(basename "$URL")
|
FILE=$(basename "$URL")
|
||||||
curl -fsSL "$URL" -o "$FILE"
|
curl -fsSL "$URL" -o "$FILE"
|
||||||
$STD dpkg -i "$FILE" || $STD apt-get install -f -y
|
$STD dpkg -i "$FILE" || $STD apt install -f -y
|
||||||
rm -f "$FILE"
|
rm -f "$FILE"
|
||||||
msg_ok "Installed Cockpit identities"
|
msg_ok "Installed Cockpit identities"
|
||||||
exit
|
exit
|
||||||
@@ -81,7 +81,7 @@ function update_script() {
|
|||||||
|
|
||||||
if [ "$UPD" == "4" ]; then
|
if [ "$UPD" == "4" ]; then
|
||||||
msg_info "Installing dependencies"
|
msg_info "Installing dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
rsync \
|
rsync \
|
||||||
zip
|
zip
|
||||||
msg_ok "Installed dependencies"
|
msg_ok "Installed dependencies"
|
||||||
@@ -89,7 +89,7 @@ function update_script() {
|
|||||||
URL=$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-navigator/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)
|
URL=$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-navigator/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)
|
||||||
FILE=$(basename "$URL")
|
FILE=$(basename "$URL")
|
||||||
curl -fsSL "$URL" -o "$FILE"
|
curl -fsSL "$URL" -o "$FILE"
|
||||||
$STD dpkg -i "$FILE" || $STD apt-get install -f -y
|
$STD dpkg -i "$FILE" || $STD apt install -f -y
|
||||||
rm -f "$FILE"
|
rm -f "$FILE"
|
||||||
msg_ok "Installed Cockpit navigator"
|
msg_ok "Installed Cockpit navigator"
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
"ram": 1024,
|
"ram": 1024,
|
||||||
"hdd": 4,
|
"hdd": 4,
|
||||||
"os": "debian",
|
"os": "debian",
|
||||||
"version": "12"
|
"version": "13"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ update_os
|
|||||||
msg_info "Installing Cockpit"
|
msg_info "Installing Cockpit"
|
||||||
source /etc/os-release
|
source /etc/os-release
|
||||||
echo "deb http://deb.debian.org/debian ${VERSION_CODENAME}-backports main" >/etc/apt/sources.list.d/backports.list
|
echo "deb http://deb.debian.org/debian ${VERSION_CODENAME}-backports main" >/etc/apt/sources.list.d/backports.list
|
||||||
$STD apt-get update
|
$STD apt update
|
||||||
$STD apt-get install -t ${VERSION_CODENAME}-backports cockpit --no-install-recommends -y
|
$STD apt install -t ${VERSION_CODENAME}-backports cockpit --no-install-recommends -y
|
||||||
sed -i "s/root//g" /etc/cockpit/disallowed-users
|
sed -i "s/root//g" /etc/cockpit/disallowed-users
|
||||||
msg_ok "Installed Cockpit"
|
msg_ok "Installed Cockpit"
|
||||||
|
|
||||||
@@ -26,6 +26,6 @@ motd_ssh
|
|||||||
customize
|
customize
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
msg_info "Cleaning up"
|
||||||
$STD apt-get -y autoremove
|
$STD apt -y autoremove
|
||||||
$STD apt-get -y autoclean
|
$STD apt -y autoclean
|
||||||
msg_ok "Cleaned"
|
msg_ok "Cleaned"
|
||||||
|
|||||||
Reference in New Issue
Block a user