forked from alfred/HostPersister
Host Persister persists the hosts defined in a source file to the hosts file.
|
||
---|---|---|
.idea | ||
cmd/hostpersister | ||
hosts | ||
.gitattributes | ||
.gitignore | ||
go.mod | ||
go.sum | ||
hostpersister_.service | ||
hostpersister.service | ||
LICENSE.md | ||
Makefile | ||
README.md |
Host Persister
This allows for hosts specified in a host formatted file to be synced to the actual hosts file so-long as their entries do not already exist.
The .env file is used to configure the hosts file to use a source (SOURCE_FILE) to be synced to the actual file (HOSTS_FILE). There is the ability to overwrite existing values as part of sync, so long as the domain is the only one defined on the line (HOSTS_OVERWRITE = 1). There is the ability to periodic sync with a specified interval in milliseconds (SYNC_TIME).
Maintainer: Captain ALM
License: BSD 3-Clause