File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ curl $NEXTCLOUD_URL/status.php --max-time 5 --retry 5 --retry-delay 0 --retry-ma
1717curl -X PUT -u $USERNAME :$PASSWORD $NEXTCLOUD_URL /remote.php/webdav/$FILENAME .odt -s
1818
1919PROPFIND_RESULT=$( curl -X PROPFIND -u $USERNAME :$PASSWORD $NEXTCLOUD_URL /remote.php/webdav/$FILENAME .odt --data ' <?xml version="1.0"?><d:propfind xmlns:d="DAV:" xmlns:nc="http://nextcloud.org/ns" xmlns:oc="http://owncloud.org/ns" xmlns:ocs="http://open-collaboration-services.org/ns"><d:prop><oc:fileid /></d:prop></d:propfind>' -s)
20- FILE_ID=$( echo $PROPFIND_RESULT | ggrep -ohE ' <oc:fileid>(.*)</oc:fileid>' | cut -d' >' -f 2 | cut -d' <' -f 1)
20+ FILE_ID=$( echo $PROPFIND_RESULT | grep -ohE ' <oc:fileid>(.*)</oc:fileid>' | cut -d' >' -f 2 | cut -d' <' -f 1)
2121
2222COOKIEJAR=/tmp/cookie-jar
2323rm -f $COOKIEJAR
@@ -37,4 +37,4 @@ WOPI_URL="$NEXTCLOUD_URL/index.php/apps/richdocuments/wopi/files/$FILE_ID"
3737echo " WOPI URL: $WOPI_URL "
3838echo " WOPI token generated: $WOPI_TOKEN "
3939
40- docker run --add-host nextcloud.local:${HOST_IP} --rm tylerbutler/wopi-validator -- -w $WOPI_URL -t $WOPI_TOKEN -l 0 " $@ "
40+ docker run --add-host nextcloud.local:${HOST_IP} --rm tylerbutler/wopi-validator -- -w $WOPI_URL -t $WOPI_TOKEN -l 0 " $@ "
You can’t perform that action at this time.
0 commit comments