Rename wild-cloud → wild-central for all managed config files and nftables table
Completes the naming separation: nftables table, rules file, dnsmasq config, resolved config, systemd unit, sudoers rule, and temp files now all use the wild-central name.
This commit is contained in:
@@ -34,7 +34,7 @@ type Manager struct {
|
||||
// NewManager creates a new dnsmasq config generator
|
||||
func NewManager(configPath string) *Manager {
|
||||
if configPath == "" {
|
||||
configPath = "/etc/dnsmasq.d/wild-cloud.conf"
|
||||
configPath = "/etc/dnsmasq.d/wild-central.conf"
|
||||
}
|
||||
return &Manager{
|
||||
configPath: configPath,
|
||||
@@ -388,7 +388,7 @@ func (g *Manager) ConfigureSystemDNS() error {
|
||||
|
||||
// Write systemd-resolved configuration to file owned by wildcloud user
|
||||
// (created during package installation in postinst)
|
||||
resolvedConfPath := "/etc/systemd/resolved.conf.d/wild-cloud.conf"
|
||||
resolvedConfPath := "/etc/systemd/resolved.conf.d/wild-central.conf"
|
||||
resolvedConf := fmt.Sprintf("[Resolve]\nDNS=%s\nDomains=~.\n", dnsIP)
|
||||
|
||||
if err := os.WriteFile(resolvedConfPath, []byte(resolvedConf), 0644); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user