commit message from python script
This commit is contained in:
@@ -38,6 +38,11 @@ class nfs_server_conf:
|
||||
print(mountfile, "wurde gestartet !", sep=" ")
|
||||
else:
|
||||
raise "Service" + mountfile +" konnte nicht gestart werden"
|
||||
|
||||
if subprocess.run(['systemctl', 'enable', mountfile]).returncode == 0:
|
||||
print(mountfile, "wurde enabled !", sep=" ")
|
||||
else:
|
||||
raise "Service" + mountfile +" konnte nicht enabled werden"
|
||||
return list_mountfiles
|
||||
|
||||
def nfs_server_conf(self):
|
||||
@@ -70,10 +75,14 @@ class nfs_server_conf:
|
||||
unitname_nfsv4 = "nfsv4-server.service"
|
||||
if subprocess.run(['systemctl', 'restart', unitname_nfsv4]).returncode == 0:
|
||||
print(unitname_nfsv4, "wurde gestartet !", sep=" ")
|
||||
return True
|
||||
else:
|
||||
raise "Service" + unitname_nfsv4 +" konnte nicht gestart werden"
|
||||
|
||||
|
||||
if subprocess.run(['systemctl', 'enable', unitname_nfsv4]).returncode == 0:
|
||||
print(unitname_nfsv4, "wurde enabled !", sep=" ")
|
||||
return True
|
||||
else:
|
||||
raise "Service" + unitname_nfsv4 +" konnte nicht enabled werden"
|
||||
|
||||
|
||||
def main_install(self):
|
||||
|
||||
Reference in New Issue
Block a user