Minor fixes

This commit is contained in:
Tristan Andrus 2025-03-25 23:07:56 -06:00
parent 87b3ae8f15
commit 51093244f6
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -6,7 +6,7 @@ source_file_path="${1:-}"
source_file_name="${2:-}"
DEST_SERVER="cymodoce"
AUTH_TOKEN="PitD5xB+Wq6uH7W7UfPtoJo4F6UfWZ9yLrSKZ0bKg9EGoUrK2W77TEI5Y5x1j4uzluqleOo8TGZq2w==
AUTH_TOKEN="PitD5xB+Wq6uH7W7UfPtoJo4F6UfWZ9yLrSKZ0bKg9EGoUrK2W77TEI5Y5x1j4uzluqleOo8TGZq2w=="