More info from the script

This commit is contained in:
decentral1se 2021-06-16 17:02:23 +02:00
parent b61342b576
commit f66c2e0396
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 9 additions and 2 deletions

View File

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