This repository has been archived on 2021-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
pubspace/pubspace.sh

17 lines
430 B
Bash
Raw Normal View History

2021-06-16 10:59:33 +00:00
#!/bin/bash
2021-06-16 15:02:23 +00:00
set -e
ACTORS_USER_ID="$1"
OWNER_USER_ID="$2"
NEXTCLOUD_RELATIVE_PATH="$3"
LOCALLY_AVAILABLE_FILE="$4"
echo "RUNNING: ${FILE}" >> pubspace.log
2021-06-16 10:07:33 +00:00
/usr/bin/curl \
-H "Content-Type: application/json" \
-X GET \
2021-06-16 15:02:23 +00:00
-d "{\"actor_id\":\"${ACTORS_USER_ID}\", \"owner_id\":\"${OWNER_USER_ID}\", \"rel_path\":\"${NEXTCLOUD_RELATIVE_PATH}\", \"local_path\":\"${LOCALLY_AVAILABLE_PATH}\"}" \
2021-06-16 10:07:33 +00:00
https://publish.lumbung.space