More info from the script
This commit is contained in:
parent
b61342b576
commit
f66c2e0396
11
pubspace.sh
11
pubspace.sh
@ -1,9 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/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 \
|
/usr/bin/curl \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-X GET \
|
-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
|
https://publish.lumbung.space
|
||||||
|
Reference in New Issue
Block a user