fix review

This commit is contained in:
Wendy Liga
2025-12-27 20:49:54 +07:00
parent c189a9b8d6
commit 5698870c63
3 changed files with 38 additions and 43 deletions

View File

@@ -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"