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 !!")