server/linx: Added helper script for uploading files to the service
parent
574e9949b7
commit
e0342a6bba
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euo pipefail;
|
||||||
|
|
||||||
|
if [[ -z "${1:-}" ]]; then
|
||||||
|
echo "Missing file for upload" > /dev/stderr;
|
||||||
|
exit 2;
|
||||||
|
fi
|
||||||
|
|
||||||
|
curl -H "Linx-Api-Key: {{ auth_code }}" -H "Linx-Delete-Key: {{ auth_code }}" -T "$1" https://{{ domain }}/upload/;
|
Loading…
Reference in New Issue