AdguardTeam / AdguardTeam/AdGuardHome
Installation on FreeBSD/TrueNAS jails
- Lingua principale
- TypeScript
- Stelle
- 36.9k
- Fork
- 2.5k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Prerequisites
- [x] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions) and found no answer
- [X] I have searched other issues and found no duplicates
- [X] I want to report a bug and not ask a question
### Operating system type
FreeBSD
### CPU architecture
AMD64
### Installation
GitHub releases or script from README
### Setup
On one machine
### AdGuard Home version
v0.107.22
### Description
#### What did you do?
Tried to install AdGuardHome in my TrueNAS jail with the `curl ... | sh` script.
#### Expected result
AdGuardHome installed, possibly with AdGuardHome installed as a service.
#### Actual result
`either curl or wget is required to install AdGuard Home via this script`
#### Screenshots (if applicable)
#### Additional information
If I'm not mistaken, TrueNAS jails by default have no `curl` or `wget`, but they do have the native `fetch` command.
I tried to execute the install command (`curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v`) with my jail, but naturally this fails. So I instead changed to `fetch` (`fetch -o - https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v`) but the script quickly realizes that `curl` or `wget` isn't available and exits.
I would like TrueNAS jails to be natively supported, with these changes:
1. Change the README to have a section for TrueNAS/FreeBSD installations to use `fetch` instead:
> `fetch -o - https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v`
2. Change the script to support `fetch` installs on TrueNAS/FreeBSD, and install into `%%PREFIX%%/bin/`.
3. Edit the `rc.d` script for service installations on TrueNAS/FreeBSD to support RC variables, such as `adguard_enable`, `working_directory` or `log_file`, as per https://cgit.freebsd.org/ports/tree/www/adguardhome/files/adguardhome.in.
This would also require changing the code in [AdGuardHome/internal/home/service.go](https://github.com/AdguardTeam/AdGuardHome/blob/master/internal/home/service.go) and possibly other files to accommodate this change.
I'm happy to assist with testing on TrueNAS and/or ventilate any questions that might arise.
Thanks in advance!
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.