From ce15671c64ccd2ea8ec97290bfb9fc33eb1fc4c0 Mon Sep 17 00:00:00 2001 From: jonnybravo Date: Wed, 14 Feb 2024 14:33:55 +0100 Subject: [PATCH] commit message from python script --- rclone/main/main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rclone/main/main.py b/rclone/main/main.py index c1fc1fe..991382a 100755 --- a/rclone/main/main.py +++ b/rclone/main/main.py @@ -2,8 +2,6 @@ import os, time - - def check_ping(hostname = str): response = os.system("timeout 0.2 ping -c 1 " + hostname + '&> /dev/null') # and then check the response... @@ -44,7 +42,7 @@ if __name__ == "__main__": for check_count in range(1,10): if check_ping(hostname=nextcloud_server) is True: print(nextcloud_server, "ist erreichbar...") - if rclone_folders_copy(folder_to_sync=folder_to_sync_manuell, dest_folder="/home/jonnybravo/.nextcloud") is True: + if rclone_folders_copy(folder_to_sync=folder_to_sync_manuell, dest_folder=os.environ["HOME"] + os.sep + ".nextcloud") is True: print("Sync erfolgreich") else: print("Sync nicht erfolgreich !!")