Minor fixes
This commit is contained in:
parent
87b3ae8f15
commit
51093244f6
|
|
@ -24,7 +24,7 @@ def requestsync():
|
|||
try:
|
||||
# Run rsync
|
||||
print("Sync requested... running now.")
|
||||
#subprocess.run(['rsync', '-ravzL', REMOTE_DIRECTORY, LOCAL_DEST], check=True)
|
||||
subprocess.run(['rsync', '-ravzL', REMOTE_DIRECTORY, LOCAL_DEST], check=True)
|
||||
return jsonify({'status': 'OK'})
|
||||
except subprocess.CalledProcessError as e:
|
||||
return jsonify({"error": 'rsync failed', 'details': str(e)}), 500
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ source_file_path="${1:-}"
|
|||
source_file_name="${2:-}"
|
||||
|
||||
DEST_SERVER="cymodoce"
|
||||
AUTH_TOKEN="PitD5xB+Wq6uH7W7UfPtoJo4F6UfWZ9yLrSKZ0bKg9EGoUrK2W77TEI5Y5x1j4uzluqleOo8TGZq2w==
|
||||
AUTH_TOKEN="PitD5xB+Wq6uH7W7UfPtoJo4F6UfWZ9yLrSKZ0bKg9EGoUrK2W77TEI5Y5x1j4uzluqleOo8TGZq2w=="
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue