From 204e7c62080456c799d4cd85124ed43ddcca971c Mon Sep 17 00:00:00 2001 From: dvs1 Date: Sat, 15 Mar 2025 14:23:48 +1000 Subject: Another way to pick out users, hard code them in EMPTY. --- SuckIt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'SuckIt') diff --git a/SuckIt b/SuckIt index a544f48..7ed0bf6 100755 --- a/SuckIt +++ b/SuckIt @@ -10,8 +10,9 @@ rm -fr PmWiki/* cp -r /opt/nyaw_EMPTY/PmWiki . rm -fr unsorted mkdir -p unsorted -rm -fr users -mkdir -p users +rm -fr users/* +#mkdir -p users +cp -r /opt/nyaw_EMPTY/users . # Copy across things like images that where uploaded. mkdir -p /opt/nyaw/Foswiki/pub/ @@ -44,6 +45,9 @@ do dest="" if [[ "${base}" == "Main" ]]; then dest="unsorted" + if [ -L users/${file}_fos.md ]; then + dest='users' + fi mkdir -p `dirname users/${file}` sed -i -E ${ogWiki}/${base}/${file}.HTM -e "s%UserForm%%w users/${file}_fos.SED" if [ -s users/${file}_fos.SED ]; then @@ -106,6 +110,9 @@ do # 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. if [[ "${base}" == "Profiles" ]]; then dest="unsorted" + if [ -L users/${file}_pm.md ]; then + dest='users' + fi realURL=${dest}/${file} echo -e "ogWiki=${ogWiki}\nogURL=${ogURL}\nrealURL=${realURL}_pm\nogBase=${base}\nogFile=${file}\ntimestamp=${time}\n" > ${ogWiki}/${base}/${file}.md.md touch ${ogWiki}/${base}/${file}.md -- cgit v1.1