summarylogtreecommitdiffstats
path: root/filebrowser-bin.install
blob: 77a4aed5b9e4d0e463bdc601bd3e25864782c9fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
post_install() {
  echo "
Welcome to the filebrowser!
-----------------------------------------------------------------------------
Default Config Path: /etc/filebrowser/
Default Data Path: /var/lib/filebrowser/
Default User & Group: filebrowser:filebrowser

$ sudo -u filebrowser -s
$ cd /var/lib/filebrowser
$ filebrowser config init
$ filebrowser config export "/etc/filebrowser/filebrowser.json"
$ filebrowser users add <admin username> <admin password> --perm.admin
$ exit
$ sudo systemctl start filebrowser.service
-----------------------------------------------------------------------------

More: https://github.com/filebrowser/filebrowser
      https://filebrowser.org/
"
}

post_upgrade() {
  echo "
If you upgrade the filebrowser from 1.x
You must need to read the: https://filebrowser.org/upgrade-from-1.x
And the systemd unit and config file also need to be changed by yourself.

For the version older than 2.19.0-2, you need to migrate the data and config to 
the new directory "/var/lib/filebrowser/" with the new user and group: 'filebrowser'.

-----------------------------------------------------------------------------
Default Config Path: /etc/filebrowser/
Default Data Path: /var/lib/filebrowser/
Default User & Group: filebrowser:filebrowser
-----------------------------------------------------------------------------

More: https://github.com/filebrowser/filebrowser
      https://filebrowser.org/
"
}

post_remove() {
  echo "You need to remove database and config by yourself.
-----------------------------------------------------------------------------
Default Config Path: /etc/filebrowser/
Default Data Path: /var/lib/filebrowser/
Default User & Group: filebrowser:filebrowser
-----------------------------------------------------------------------------  
"
}
# vim: set ts=2 sw=2 et: