mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-22 20:27:19 +02:00
filebrowser-quantum: generate TMP_BIN via mktemp at use, not fixed PID-based path
This commit is contained in:
@@ -111,6 +111,7 @@ if [[ -f "$INSTALL_PATH" ]]; then
|
|||||||
if [[ "${update_prompt,,}" =~ ^(y|yes)$ ]]; then
|
if [[ "${update_prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||||
msg_info "Updating ${APP}"
|
msg_info "Updating ${APP}"
|
||||||
if ! command -v curl &>/dev/null; then $STD $PKG_MANAGER curl; fi
|
if ! command -v curl &>/dev/null; then $STD $PKG_MANAGER curl; fi
|
||||||
|
TMP_BIN=$(mktemp)
|
||||||
curl -fsSL https://github.com/gtsteffaniak/filebrowser/releases/latest/download/linux-amd64-filebrowser -o "$TMP_BIN"
|
curl -fsSL https://github.com/gtsteffaniak/filebrowser/releases/latest/download/linux-amd64-filebrowser -o "$TMP_BIN"
|
||||||
chmod +x "$TMP_BIN"
|
chmod +x "$TMP_BIN"
|
||||||
mv -f "$TMP_BIN" /usr/local/bin/filebrowser
|
mv -f "$TMP_BIN" /usr/local/bin/filebrowser
|
||||||
@@ -138,6 +139,7 @@ msg_info "Installing ${APP} on ${OS}"
|
|||||||
$STD $PKG_MANAGER \
|
$STD $PKG_MANAGER \
|
||||||
curl \
|
curl \
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
TMP_BIN=$(mktemp)
|
||||||
curl -fsSL https://github.com/gtsteffaniak/filebrowser/releases/latest/download/linux-amd64-filebrowser -o "$TMP_BIN"
|
curl -fsSL https://github.com/gtsteffaniak/filebrowser/releases/latest/download/linux-amd64-filebrowser -o "$TMP_BIN"
|
||||||
chmod +x "$TMP_BIN"
|
chmod +x "$TMP_BIN"
|
||||||
mv -f "$TMP_BIN" /usr/local/bin/filebrowser
|
mv -f "$TMP_BIN" /usr/local/bin/filebrowser
|
||||||
|
|||||||
Reference in New Issue
Block a user