refactor: coder-code-server GH-release binary install + multiline apt installs

- coder-code-server.sh: use fetch_and_deploy_gh_release (binary mode) + check_for_gh_release, add uninstall/update functions, update script + type=update handling
- copyparty.sh, filebrowser.sh, filebrowser-quantum.sh: format multi-package installs multiline
This commit is contained in:
MickLesk
2026-08-01 22:29:20 +02:00
parent 89e43f2753
commit cb58c616f7
4 changed files with 130 additions and 46 deletions
+4 -1
View File
@@ -96,7 +96,10 @@ PORT=${PORT:-$DEFAULT_PORT}
read -r -p "Would you like to install ${APP}? (y/n): " install_prompt
if [[ "${install_prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Installing ${APP} on ${OS}"
$STD $PKG_MANAGER wget tar curl
$STD $PKG_MANAGER \
wget \
tar \
curl
curl -fsSL "https://github.com/filebrowser/filebrowser/releases/latest/download/linux-amd64-filebrowser.tar.gz" | tar -xzv -C /usr/local/bin &>/dev/null
chmod +x "$INSTALL_PATH"
msg_ok "Installed ${APP}"