commit message from python script
This commit is contained in:
@@ -12,7 +12,7 @@ class nfs_server_conf:
|
||||
for srv_folder in self.nfs_srv_folders:
|
||||
unit_mount_file = "/etc/systemd/system/" + os.path.basename(srv_folder) + ".mount"
|
||||
mountfile = os.path.basename(unit_mount_file)
|
||||
|
||||
#mount Verzeichnis anlegen
|
||||
if os.path.exists(srv_folder):
|
||||
print("Das Verzeichnis", srv_folder,"ist bereits vorhanden !")
|
||||
else:
|
||||
@@ -33,7 +33,7 @@ class nfs_server_conf:
|
||||
if subprocess.run(['systemctl', 'start', mountfile]).returncode == 0:
|
||||
print(mountfile, "wurde gestartet !", sep=" ")
|
||||
else:
|
||||
raise "Service " + unit_file + " konnte nicht gestart werden"
|
||||
raise "Service" + mountfile +" konnte nicht gestart werden"
|
||||
|
||||
|
||||
def nfs_server_conf(self):
|
||||
|
||||
Reference in New Issue
Block a user