diff options
author | dvs1 | 2025-03-15 14:23:48 +1000 |
---|---|---|
committer | dvs1 | 2025-03-15 14:23:48 +1000 |
commit | 204e7c62080456c799d4cd85124ed43ddcca971c (patch) | |
tree | 4d12b7d3748fb4c2154d2ec8b12acbbd9f19fa70 /SuckIt | |
parent | New toolbar buttons for everything, unsorted, and users. (diff) | |
download | notYetAnotherWiki-204e7c62080456c799d4cd85124ed43ddcca971c.zip notYetAnotherWiki-204e7c62080456c799d4cd85124ed43ddcca971c.tar.gz notYetAnotherWiki-204e7c62080456c799d4cd85124ed43ddcca971c.tar.bz2 notYetAnotherWiki-204e7c62080456c799d4cd85124ed43ddcca971c.tar.xz |
Another way to pick out users, hard code them in EMPTY.
Diffstat (limited to 'SuckIt')
-rwxr-xr-x | SuckIt | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -10,8 +10,9 @@ rm -fr PmWiki/* | |||
10 | cp -r /opt/nyaw_EMPTY/PmWiki . | 10 | cp -r /opt/nyaw_EMPTY/PmWiki . |
11 | rm -fr unsorted | 11 | rm -fr unsorted |
12 | mkdir -p unsorted | 12 | mkdir -p unsorted |
13 | rm -fr users | 13 | rm -fr users/* |
14 | mkdir -p users | 14 | #mkdir -p users |
15 | cp -r /opt/nyaw_EMPTY/users . | ||
15 | 16 | ||
16 | # Copy across things like images that where uploaded. | 17 | # Copy across things like images that where uploaded. |
17 | mkdir -p /opt/nyaw/Foswiki/pub/ | 18 | mkdir -p /opt/nyaw/Foswiki/pub/ |
@@ -44,6 +45,9 @@ do | |||
44 | dest="" | 45 | dest="" |
45 | if [[ "${base}" == "Main" ]]; then | 46 | if [[ "${base}" == "Main" ]]; then |
46 | dest="unsorted" | 47 | dest="unsorted" |
48 | if [ -L users/${file}_fos.md ]; then | ||
49 | dest='users' | ||
50 | fi | ||
47 | mkdir -p `dirname users/${file}` | 51 | mkdir -p `dirname users/${file}` |
48 | sed -i -E ${ogWiki}/${base}/${file}.HTM -e "s%<a href=\"/System/UserForm\">UserForm</a>%%w users/${file}_fos.SED" | 52 | sed -i -E ${ogWiki}/${base}/${file}.HTM -e "s%<a href=\"/System/UserForm\">UserForm</a>%%w users/${file}_fos.SED" |
49 | if [ -s users/${file}_fos.SED ]; then | 53 | if [ -s users/${file}_fos.SED ]; then |
@@ -106,6 +110,9 @@ do | |||
106 | # Seems there's no way to tell user profiles apart from user content. Unless I can find a list of users somewhere. Don't think there is one. | 110 | # Seems there's no way to tell user profiles apart from user content. Unless I can find a list of users somewhere. Don't think there is one. |
107 | if [[ "${base}" == "Profiles" ]]; then | 111 | if [[ "${base}" == "Profiles" ]]; then |
108 | dest="unsorted" | 112 | dest="unsorted" |
113 | if [ -L users/${file}_pm.md ]; then | ||
114 | dest='users' | ||
115 | fi | ||
109 | realURL=${dest}/${file} | 116 | realURL=${dest}/${file} |
110 | echo -e "ogWiki=${ogWiki}\nogURL=${ogURL}\nrealURL=${realURL}_pm\nogBase=${base}\nogFile=${file}\ntimestamp=${time}\n" > ${ogWiki}/${base}/${file}.md.md | 117 | echo -e "ogWiki=${ogWiki}\nogURL=${ogURL}\nrealURL=${realURL}_pm\nogBase=${base}\nogFile=${file}\ntimestamp=${time}\n" > ${ogWiki}/${base}/${file}.md.md |
111 | touch ${ogWiki}/${base}/${file}.md | 118 | touch ${ogWiki}/${base}/${file}.md |