Skip to content

Commit

Permalink
v8.22
Browse files Browse the repository at this point in the history
- DietPi-Software | File Browser: Update fallback URL
  • Loading branch information
MichaIng committed Sep 16, 2023
1 parent 4d1cba6 commit 9670f4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -11826,8 +11826,8 @@ _EOF_
*) local arch='amd64';;
esac

local fallback_url="https://github.com/filebrowser/filebrowser/releases/download/v2.24.2/linux-$arch-filebrowser.tar.gz"
Download_Install "$(curl -sSfL 'https://api.github.com/repos/filebrowser/filebrowser/releases/latest' | mawk -F\" "/\"browser_download_url\": .*\/linux-$arch-filebrowser\.tar\.gz\"/{print \$4}")" ./filebrowser/
local fallback_url="https://github.com/filebrowser/filebrowser/releases/download/v2.25.0/linux-$arch-filebrowser.tar.gz"
Download_Install "$(curl -sSfL 'https://api.github.com/repos/filebrowser/filebrowser/releases/latest' | mawk -F\" "/^ *\"browser_download_url\": \".*\/linux-$arch-filebrowser\.tar\.gz\"$/{print \$4}")" ./filebrowser/

# Reinstall
[[ -d '/opt/filebrowser' ]] && G_EXEC rm -R /opt/filebrowser
Expand All @@ -11836,7 +11836,7 @@ _EOF_
G_EXEC mv filebrowser /opt/

# User
[[ -d '/mnt/dietpi_userdata/filebrowser' ]] || G_EXEC mkdir /mnt/dietpi_userdata/filebrowser
G_EXEC mkdir -p /mnt/dietpi_userdata/filebrowser
Create_User -g dietpi -d /mnt/dietpi_userdata/filebrowser filebrowser

# Config if not exist
Expand Down

0 comments on commit 9670f4a

Please sign in to comment.