@@ -27,73 +27,12 @@ function update_script() {
2727 msg_error " No ${APP} Installation Found!"
2828 exit
2929 fi
30- UPD=$( whiptail --backtitle " Proxmox VE Helper Scripts" --title " SUPPORT" --radiolist --cancel-button Exit-Script " Spacebar = Select" 11 58 4 \
31- " 1" " Update LXC" ON \
32- " 2" " Install cockpit-file-sharing" OFF \
33- " 3" " Install cockpit-identities" OFF \
34- " 4" " Install cockpit-navigator" OFF \
35- 3>&1 1>&2 2>&3 )
36-
37- if [ " $UPD " == " 1" ]; then
38- msg_info " Updating ${APP} LXC"
39- $STD apt update
40- $STD apt -y upgrade
41- msg_ok " Updated ${APP} LXC"
42- exit
43- fi
44-
45- if [ " $UPD " == " 2" ]; then
46- msg_info " Installing dependencies (patience)"
47- $STD apt install -y \
48- attr \
49- nfs-kernel-server \
50- samba \
51- samba-common-bin \
52- winbind \
53- gawk
54- msg_ok " Installed dependencies"
55- msg_info " Installing Cockpit file sharing"
56- URL=$( curl -fsSL https://api.github.com/repos/45Drives/cockpit-file-sharing/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)
57- FILE=$( basename " $URL " )
58- curl -fsSL " $URL " -o " $FILE "
59- $STD dpkg -i " $FILE " || $STD apt install -f -y
60- rm -f " $FILE "
61- msg_ok " Installed Cockpit file sharing"
62- exit
63- fi
64-
65- if [ " $UPD " == " 3" ]; then
66- msg_info " Installing dependencies (patience)"
67- $STD apt install -y \
68- psmisc \
69- samba \
70- samba-common-bin
71- msg_ok " Installed dependencies"
72- msg_info " Installing Cockpit identities"
73- URL=$( curl -fsSL https://api.github.com/repos/45Drives/cockpit-identities/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)
74- FILE=$( basename " $URL " )
75- curl -fsSL " $URL " -o " $FILE "
76- $STD dpkg -i " $FILE " || $STD apt install -f -y
77- rm -f " $FILE "
78- msg_ok " Installed Cockpit identities"
79- exit
80- fi
81-
82- if [ " $UPD " == " 4" ]; then
83- msg_info " Installing dependencies"
84- $STD apt install -y \
85- rsync \
86- zip
87- msg_ok " Installed dependencies"
88- msg_info " Installing Cockpit navigator"
89- URL=$( curl -fsSL https://api.github.com/repos/45Drives/cockpit-navigator/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)
90- FILE=$( basename " $URL " )
91- curl -fsSL " $URL " -o " $FILE "
92- $STD dpkg -i " $FILE " || $STD apt install -f -y
93- rm -f " $FILE "
94- msg_ok " Installed Cockpit navigator"
95- exit
96- fi
30+
31+ msg_info " Updating ${APP} LXC"
32+ $STD apt update
33+ $STD apt -y upgrade
34+ msg_ok " Updated ${APP} LXC"
35+ exit
9736}
9837
9938start
0 commit comments