commit message from python script
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user