Sidehistorik
...
Kodeblok |
---|
#!/bin/bash echo "NAS Movielist - My ripped DVD/BluRayBD collection \\\\ \\\\ {toc} \\\\ "> /tmp/wiki echo "h1. Alfabetical " >> /tmp/wiki ls /media/Movies/ | sed 's/.m4v//g' >> /tmp/wiki echo "h1. By timestamp (new -> old) " >> /tmp/wiki ls -t /media/Movies/ | sed 's/.m4v//g' >> /tmp/wiki ssh myserver.site.dk "~/scripts/addPageContent.sh familieblog 'MovilistMovielist for my NAS' '`cat /tmp/wiki`'" |
...
On the Confluence Server:
(A prerequisite into is to have the Atlassian CLI configured)
Tip |
---|
This is generic, hence can be used for all sorts of Page updates |
Kodeblok | ||||
---|---|---|---|---|
| ||||
#!/bin/bash Space=$1 PageTitle=$2 html=$3 /opt/atlassian-cli/confluence.sh --action storePage --space "$Space" --title "$PageTitle" --content "$html" |