mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 16:05:54 +00:00
fix review
This commit is contained in:
@@ -14,22 +14,23 @@ network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt-get install -y \
|
||||
$STD apt install -y \
|
||||
wget \
|
||||
unzip \
|
||||
nginx
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
msg_info "Installing ${APPLICATION}"
|
||||
|
||||
# Get latest version from GitHub
|
||||
RELEASE=$(curl -fsSL https://api.github.com/repos/DonutWare/Fladder/releases/latest | \
|
||||
grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
|
||||
RELEASE=$(get_latest_github_release "DonutWare/Fladder")
|
||||
|
||||
cd /opt
|
||||
$STD wget -q "https://github.com/DonutWare/Fladder/releases/download/${RELEASE}/Fladder-Web-${RELEASE#v}.zip"
|
||||
$STD unzip -o "Fladder-Web-${RELEASE#v}.zip" -d fladder
|
||||
|
||||
rm -f "Fladder-Web-${RELEASE#v}.zip"
|
||||
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
||||
echo "${RELEASE}" > ~/.fladder
|
||||
msg_ok "Installed ${APPLICATION}"
|
||||
|
||||
msg_info "Configuring Nginx"
|
||||
|
||||
Reference in New Issue
Block a user