mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-04-19 13:58:06 +00:00
Refactor Cockpit update_script part (#3878)
* Update cockpit.sh * formatting
This commit is contained in:
parent
6e2cb8d4e2
commit
2fd847215c
@ -41,44 +41,56 @@ function update_script() {
|
|||||||
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 attr
|
$STD apt-get install -y \
|
||||||
$STD apt-get install -y nfs-kernel-server
|
attr \
|
||||||
$STD apt-get install -y samba
|
nfs-kernel-server \
|
||||||
$STD apt-get install -y samba-common-bin
|
samba \
|
||||||
$STD apt-get install -y winbind
|
samba-common-bin \
|
||||||
$STD apt-get install -y gawk
|
winbind \
|
||||||
|
gawk
|
||||||
msg_ok "Installed dependencies"
|
msg_ok "Installed dependencies"
|
||||||
msg_info "Installing Cockpit file sharing"
|
msg_info "Installing Cockpit file sharing"
|
||||||
curl -fsSL "$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-file-sharing/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)" -o $(basename "$(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)
|
||||||
$STD dpkg -i cockpit-file-sharing_*focal_all.deb
|
FILE=$(basename "$URL")
|
||||||
rm cockpit-file-sharing_*focal_all.deb
|
curl -fsSL "$URL" -o "$FILE"
|
||||||
|
$STD dpkg -i "$FILE" || $STD apt-get install -f -y
|
||||||
|
rm -f "$FILE"
|
||||||
msg_ok "Installed Cockpit file sharing"
|
msg_ok "Installed Cockpit file sharing"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$UPD" == "3" ]; then
|
if [ "$UPD" == "3" ]; then
|
||||||
msg_info "Installing dependencies (patience)"
|
msg_info "Installing dependencies (patience)"
|
||||||
$STD apt-get install -y psmisc
|
$STD apt-get install -y \
|
||||||
$STD apt-get install -y samba
|
psmisc \
|
||||||
$STD apt-get install -y samba-common-bin
|
samba \
|
||||||
|
samba-common-bin
|
||||||
msg_ok "Installed dependencies"
|
msg_ok "Installed dependencies"
|
||||||
msg_info "Installing Cockpit identities"
|
msg_info "Installing Cockpit identities"
|
||||||
curl -fsSL "$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-identities/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)" -o $(basename "$(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)
|
||||||
$STD dpkg -i cockpit-identities_*focal_all.deb
|
FILE=$(basename "$URL")
|
||||||
rm cockpit-identities_*focal_all.deb
|
curl -fsSL "$URL" -o "$FILE"
|
||||||
|
$STD dpkg -i "$FILE" || $STD apt-get install -f -y
|
||||||
|
rm -f "$FILE"
|
||||||
msg_ok "Installed Cockpit identities"
|
msg_ok "Installed Cockpit identities"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$UPD" == "4" ]; then
|
if [ "$UPD" == "4" ]; then
|
||||||
msg_info "Installing dependencies"
|
msg_info "Installing dependencies"
|
||||||
$STD apt-get install -y rsync
|
$STD apt-get install -y \
|
||||||
$STD apt-get install -y zip
|
rsync \
|
||||||
|
zip
|
||||||
msg_ok "Installed dependencies"
|
msg_ok "Installed dependencies"
|
||||||
msg_info "Installing Cockpit navigator"
|
msg_info "Installing Cockpit navigator"
|
||||||
curl -fsSL "$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-navigator/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)" -o $(basename "$(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)
|
||||||
$STD dpkg -i cockpit-navigator_*focal_all.deb
|
FILE=$(basename "$URL")
|
||||||
rm cockpit-navigator_*focal_all.deb
|
curl -fsSL "$URL" -o "$FILE"
|
||||||
|
$STD dpkg -i "$FILE" || $STD apt-get install -f -y
|
||||||
|
rm -f "$FILE"
|
||||||
msg_ok "Installed Cockpit navigator"
|
msg_ok "Installed Cockpit navigator"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user