Compare commits

..

2 Commits

Author SHA1 Message Date
890c2bd030 Update README 2022-09-16 18:23:51 +02:00
a147a1655d Fix error in File Browser service unit 2022-09-16 18:23:43 +02:00
2 changed files with 9 additions and 1 deletions

View File

@ -18,6 +18,14 @@ File Browser must be installed manually at `/usr/local/bin/filebrowser`.
A "NAS user" should be defined, owner of the NAS root directory: This user shall run some of above services. A "NAS user" should be defined, owner of the NAS root directory: This user shall run some of above services.
If using Transmission, you need to set a OpenVPN connection config as `vpn`.
### File Browser init
If using File Browser, it should be initiated first:
```
sudo -u <nas-user> filebrowser -d <nas>/filebrowser.db --username <admin>
```
### Files ### Files
* `transmission-vpn.sh` is a script which checks if a VPN connection is active and stops Transmission otherwise. * `transmission-vpn.sh` is a script which checks if a VPN connection is active and stops Transmission otherwise.
* `variables.conf.template` contains examples variables definitions, and should be copied locally to `variables.conf` * `variables.conf.template` contains examples variables definitions, and should be copied locally to `variables.conf`

View File

@ -4,7 +4,7 @@ Description=File Browser web interface
[Service] [Service]
User=PH_NAS_USER User=PH_NAS_USER
Type=simple Type=simple
ExecStart=/usr/local/bin/filebrowser -d PH_NAS_DIRECTORY ExecStart=/usr/local/bin/filebrowser -d PH_NAS_DIRECTORY/filebrowser.db
[Install] [Install]
WantedBy=default.target WantedBy=default.target