mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-09 01:09:16 +00:00
fix(review): mc, release, license, -q
This commit is contained in:
parent
8bb0424acd
commit
c1d86513d5
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
# Copyright (c) 2021-2025 community-scripts ORG
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
# Author: Jonathan (jd-apprentice)
|
# Author: Jonathan (jd-apprentice)
|
||||||
# License: MIT
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
color
|
color
|
||||||
@ -14,15 +13,18 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y curl
|
$STD apt-get install -y \
|
||||||
$STD apt-get install -y jq
|
mc \
|
||||||
$STD apt-get install -y sudo
|
curl \
|
||||||
$STD apt-get install -y git
|
sudo \
|
||||||
|
git
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Download Opengist Binary"
|
msg_info "Download Opengist Binary"
|
||||||
LATEST_URL=$(curl -s https://api.github.com/repos/thomiceli/opengist/releases/latest | jq -r '.assets[] | select(.name | contains("linux-amd64.tar.gz")).browser_download_url')
|
RELEASE_URL=$(
|
||||||
wget "$LATEST_URL"
|
curl -s https://api.github.com/repos/thomiceli/opengist/releases/latest | grep "linux-amd64.tar.gz" | grep "browser_download_url" | awk -F '"' '{print $4}'
|
||||||
|
)
|
||||||
|
wget -q "$RELEASE_URL"
|
||||||
msg_ok "Downloaded Opengist Binary"
|
msg_ok "Downloaded Opengist Binary"
|
||||||
|
|
||||||
msg_info "Creating Systemd Service"
|
msg_info "Creating Systemd Service"
|
||||||
|
Loading…
Reference in New Issue
Block a user