[Fixed] filebrowser-bin: update the install file

This commit is contained in:
axionl 2019-01-23 22:34:36 +09:00
parent f27bfc7693
commit 55bf8b9098
No known key found for this signature in database
GPG key ID: 3CD72EBFE6DE17D8
5 changed files with 25 additions and 36 deletions

View file

@ -1,9 +1,7 @@
# Generated by mksrcinfo v8
# Thu Jan 10 03:11:53 UTC 2019
pkgbase = filebrowser-bin
pkgdesc = Web File Manager which can be used as a middleware or standalone app.
pkgver = 2.0.0
pkgrel = 1
pkgrel = 2
url = https://github.com/filebrowser/filebrowser
install = filebrowser-bin.install
arch = x86_64
@ -11,14 +9,12 @@ pkgbase = filebrowser-bin
provides = filebrowser
conflicts = filebrowser
source = filebrowser@.service
source = config.json
source = filebrowser-bin.install
source = https://raw.githubusercontent.com/hacdias/filebrowser/master/LICENSE
sha256sums = a02170d454ca64905b1b5bfe00311afdac4da099eeb14f594e3be9d08bc07af9
sha256sums = 211e8101821612d9c142ce05db565379845e735ec8f8891e3fa76111a65db799
sha256sums = 82e9879a58d21f4ca4a28315f94ffdadfbbf461752e63252bf12b91de93bc9c8
sha256sums = 79a1fdb1f0b26f211242f1fdb6f3478a56890a721fe324ea7ade2e8f9a351b38
sha256sums = 8a423af0707ac37b15ca425ec097b3d98aecd08238f7599ae9dfcce31c8cbb32
sha256sums = 1fc20cab3a7d67d7997126a98dd151a362dc4600201ca37fd608b959d25985db
source_x86_64 = https://github.com/filebrowser/filebrowser/releases/download/v2.0.0/linux-amd64-filebrowser.tar.gz
source_x86_64 = linux-amd64-filebrowser-2.0.0.tar.gz::https://github.com/filebrowser/filebrowser/releases/download/v2.0.0/linux-amd64-filebrowser.tar.gz
sha256sums_x86_64 = f52d849f8b4ca461ffd05c4fcdb5662c6c6acd75f79d2b0ed6bd38367779a38d
pkgname = filebrowser-bin

View file

@ -2,7 +2,7 @@
# Contributor: Sherlock Holo <sherlockya(at)gmail.com>
pkgname=filebrowser-bin
pkgver=2.0.0
pkgrel=1
pkgrel=2
pkgdesc="Web File Manager which can be used as a middleware or standalone app."
arch=('x86_64')
url="https://github.com/filebrowser/filebrowser"
@ -12,21 +12,19 @@ provides=("filebrowser")
conflicts=("filebrowser")
install="$pkgname.install"
source=('filebrowser@.service' 'config.json' 'filebrowser-bin.install'
source=('filebrowser@.service' 'filebrowser-bin.install'
'https://raw.githubusercontent.com/hacdias/filebrowser/master/LICENSE')
source_x86_64=(linux-amd64-filebrowser-$pkgver.tar.gz::https://github.com/filebrowser/filebrowser/releases/download/v$pkgver/linux-amd64-filebrowser.tar.gz)
sha256sums=('a02170d454ca64905b1b5bfe00311afdac4da099eeb14f594e3be9d08bc07af9'
'211e8101821612d9c142ce05db565379845e735ec8f8891e3fa76111a65db799'
'82e9879a58d21f4ca4a28315f94ffdadfbbf461752e63252bf12b91de93bc9c8'
sha256sums=('79a1fdb1f0b26f211242f1fdb6f3478a56890a721fe324ea7ade2e8f9a351b38'
'8a423af0707ac37b15ca425ec097b3d98aecd08238f7599ae9dfcce31c8cbb32'
'1fc20cab3a7d67d7997126a98dd151a362dc4600201ca37fd608b959d25985db')
sha256sums_x86_64=('f52d849f8b4ca461ffd05c4fcdb5662c6c6acd75f79d2b0ed6bd38367779a38d')
package() {
install -Dm644 filebrowser@.service ${pkgdir}/usr/lib/systemd/system/filebrowser@.service
install -Dm644 config.json ${pkgdir}/etc/filebrowser/example.config.json
install -Dm755 LICENSE ${pkgdir}/usr/share/licenses/filebrowser-bin/LICENSE
install -Dm755 $srcdir/filebrowser ${pkgdir}/usr/bin/filebrowser
}

View file

@ -1,20 +0,0 @@
{
"port": 8080,
"noAuth": false,
"baseURL": "/admin",
"address": "127.0.0.1",
"alternativeReCaptcha": false,
"reCaptchaKey": "",
"reCaptchaSecret": "",
"database": "/usr/share/filebrowser/database.db",
"log": "stdout",
"plugin": "",
"scope": "/usr/share/filebrowser/storage/",
"allowCommands": true,
"allowEdit": true,
"allowNew": true,
"commands": [
"git",
"svn"
]
}

View file

@ -5,12 +5,26 @@ For the first time you need to initialize, for example:
-----------------------------------------------------------------------------
$ sudo mkdir -p /usr/share/filebrowser/storage
$ sudo touch /usr/share/filebrowser/database.db
$ sudo cp /etc/filebrowser/example.config.json /etc/filebrowser/config.json
$ cd /usr/share/filebrowser/storage
$ sudo filebrowser config init
...(Setting your filebrowser)
$ sudo filebrowser config export /etc/filebrowser/config.json
$ sudo systemctl enable --now filebrowser@config
-----------------------------------------------------------------------------
More: https://github.com/filebrowser/filebrowser
https://docs.filebrowser.xyz/
"
}
post_upgrade() {
echo "
If you upgrade the filebrowser from 1.x
You must need to read the: https://docs.filebrowser.xyz/upgrade-from-1.x
And the systemd unit and config file also need to be changed by yourself.
More: https://github.com/filebrowser/filebrowser
https://docs.filebrowser.xyz/
"
}

View file

@ -5,6 +5,7 @@ Wants=network.target
[Service]
Type=simple
WorkingDirectory=/usr/share/filebrowser
ExecStart=/usr/bin/filebrowser --config /etc/filebrowser/%i.json
Restart=on-failure