commit message from python script

This commit is contained in:
2023-10-09 14:06:44 +02:00
parent 9e20352d7f
commit 3b11946df8

View File

@@ -68,7 +68,7 @@ class nfs_server_conf:
def start_nfs_server(self):
unitname_nfsv4 = "nfsv4-server.service"
if subprocess.run(['systemctl', 'start', unitname_nfsv4]).returncode == 0:
if subprocess.run(['systemctl', 'restart', unitname_nfsv4]).returncode == 0:
print(unitname_nfsv4, "wurde gestartet !", sep=" ")
return True
else:
@@ -85,5 +85,5 @@ class nfs_server_conf:
pass
if __name__ == "__main__":
my_nfs_server = nfs_server_conf(allow_network="192.168.150.0/24")
my_nfs_server = nfs_server_conf(allow_network="*")
my_nfs_server.main_install()