mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-02 02:10:48 +01:00
Reverted back the spaces in pdns.conf, because in centos it add's those spaces
This commit is contained in:
@@ -117,18 +117,18 @@ class ServiceManager:
|
||||
writeToFile.writelines(items + '\n')
|
||||
|
||||
slaveData = """
|
||||
slave=yes
|
||||
daemon=yes
|
||||
disable-axfr=yes
|
||||
guardian=yes
|
||||
local-address=0.0.0.0
|
||||
local-port=53
|
||||
master=no
|
||||
slave-cycle-interval=60
|
||||
setgid=pdns
|
||||
setuid=pdns
|
||||
superslave=yes
|
||||
"""
|
||||
slave=yes
|
||||
daemon=yes
|
||||
disable-axfr=yes
|
||||
guardian=yes
|
||||
local-address=0.0.0.0
|
||||
local-port=53
|
||||
master=no
|
||||
slave-cycle-interval=60
|
||||
setgid=pdns
|
||||
setuid=pdns
|
||||
superslave=yes
|
||||
"""
|
||||
|
||||
writeToFile.writelines(slaveData)
|
||||
writeToFile.close()
|
||||
@@ -152,15 +152,16 @@ class ServiceManager:
|
||||
|
||||
repoPath = '/etc/yum.repos.d/elasticsearch.repo'
|
||||
|
||||
content = '''[elasticsearch]
|
||||
name=Elasticsearch repository for 7.x packages
|
||||
baseurl=https://artifacts.elastic.co/packages/7.x/yum
|
||||
gpgcheck=1
|
||||
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
|
||||
enabled=0
|
||||
autorefresh=1
|
||||
type=rpm-md
|
||||
'''
|
||||
content = '''
|
||||
[elasticsearch]
|
||||
name=Elasticsearch repository for 7.x packages
|
||||
baseurl=https://artifacts.elastic.co/packages/7.x/yum
|
||||
gpgcheck=1
|
||||
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
|
||||
enabled=0
|
||||
autorefresh=1
|
||||
type=rpm-md
|
||||
'''
|
||||
|
||||
writeToFile = open(repoPath, 'w')
|
||||
writeToFile.write(content)
|
||||
|
||||
Reference in New Issue
Block a user