mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
hostman: fsdriver: fix hostname deployment for openwrt
We will need to add native uci support later
This commit is contained in:
@@ -1367,6 +1367,9 @@ func (d *SOpenWrtRootFs) RootSignatures() []string {
|
||||
|
||||
func (d *SOpenWrtRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error {
|
||||
spath := "/etc/config/system"
|
||||
if !rootFs.Exists(spath, false) {
|
||||
return nil
|
||||
}
|
||||
bcont, err := rootFs.FileGetContents(spath, false)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user