Skip to content

Commit 9f531ef

Browse files
authored
Update cockpit to Debian 13 (#8119)
1 parent 6491ec3 commit 9f531ef

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

ct/cockpit.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}"
1111
var_ram="${var_ram:-1024}"
1212
var_disk="${var_disk:-4}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-12}"
14+
var_version="${var_version:-13}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
@@ -36,15 +36,15 @@ function update_script() {
3636

3737
if [ "$UPD" == "1" ]; then
3838
msg_info "Updating ${APP} LXC"
39-
$STD apt-get update
40-
$STD apt-get -y upgrade
39+
$STD apt update
40+
$STD apt -y upgrade
4141
msg_ok "Updated ${APP} LXC"
4242
exit
4343
fi
4444

4545
if [ "$UPD" == "2" ]; then
4646
msg_info "Installing dependencies (patience)"
47-
$STD apt-get install -y \
47+
$STD apt install -y \
4848
attr \
4949
nfs-kernel-server \
5050
samba \
@@ -56,15 +56,15 @@ function update_script() {
5656
URL=$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-file-sharing/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)
5757
FILE=$(basename "$URL")
5858
curl -fsSL "$URL" -o "$FILE"
59-
$STD dpkg -i "$FILE" || $STD apt-get install -f -y
59+
$STD dpkg -i "$FILE" || $STD apt install -f -y
6060
rm -f "$FILE"
6161
msg_ok "Installed Cockpit file sharing"
6262
exit
6363
fi
6464

6565
if [ "$UPD" == "3" ]; then
6666
msg_info "Installing dependencies (patience)"
67-
$STD apt-get install -y \
67+
$STD apt install -y \
6868
psmisc \
6969
samba \
7070
samba-common-bin
@@ -73,23 +73,23 @@ function update_script() {
7373
URL=$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-identities/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)
7474
FILE=$(basename "$URL")
7575
curl -fsSL "$URL" -o "$FILE"
76-
$STD dpkg -i "$FILE" || $STD apt-get install -f -y
76+
$STD dpkg -i "$FILE" || $STD apt install -f -y
7777
rm -f "$FILE"
7878
msg_ok "Installed Cockpit identities"
7979
exit
8080
fi
8181

8282
if [ "$UPD" == "4" ]; then
8383
msg_info "Installing dependencies"
84-
$STD apt-get install -y \
84+
$STD apt install -y \
8585
rsync \
8686
zip
8787
msg_ok "Installed dependencies"
8888
msg_info "Installing Cockpit navigator"
8989
URL=$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-navigator/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)
9090
FILE=$(basename "$URL")
9191
curl -fsSL "$URL" -o "$FILE"
92-
$STD dpkg -i "$FILE" || $STD apt-get install -f -y
92+
$STD dpkg -i "$FILE" || $STD apt install -f -y
9393
rm -f "$FILE"
9494
msg_ok "Installed Cockpit navigator"
9595
exit

frontend/public/json/cockpit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"ram": 1024,
2424
"hdd": 4,
2525
"os": "debian",
26-
"version": "12"
26+
"version": "13"
2727
}
2828
}
2929
],

install/cockpit-install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ update_os
1717
msg_info "Installing Cockpit"
1818
source /etc/os-release
1919
echo "deb http://deb.debian.org/debian ${VERSION_CODENAME}-backports main" >/etc/apt/sources.list.d/backports.list
20-
$STD apt-get update
21-
$STD apt-get install -t ${VERSION_CODENAME}-backports cockpit --no-install-recommends -y
20+
$STD apt update
21+
$STD apt install -t ${VERSION_CODENAME}-backports cockpit --no-install-recommends -y
2222
sed -i "s/root//g" /etc/cockpit/disallowed-users
2323
msg_ok "Installed Cockpit"
2424

2525
motd_ssh
2626
customize
2727

2828
msg_info "Cleaning up"
29-
$STD apt-get -y autoremove
30-
$STD apt-get -y autoclean
29+
$STD apt -y autoremove
30+
$STD apt -y autoclean
3131
msg_ok "Cleaned"

0 commit comments

Comments
 (0)