From 6d5e08e76be361809e56548cc47a54f588a1f57e Mon Sep 17 00:00:00 2001 From: "Scott C. MacCallum" Date: Thu, 16 Mar 2023 22:11:31 +0000 Subject: [PATCH] Fixed some Gemini defects --- cluster-to-other.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/cluster-to-other.sh b/cluster-to-other.sh index 7154fd9..170d025 100755 --- a/cluster-to-other.sh +++ b/cluster-to-other.sh @@ -79,10 +79,10 @@ finger() # Write the appended data from the footer file to dotplan cat /sdf/arpa/$letter_range/$letter/$USER/finger/footer >> /sdf/arpa/$letter_range/$letter/$USER/finger/dotplan - # Write the .plan file to the Cluster from dotplan + # Write the .plan file to the SDF cluster from dotplan cp /sdf/arpa/$letter_range/$letter/$USER/finger/dotplan /sdf/arpa/$letter_range/$letter/$USER/.plan - # Write the .plan file to the Meta Array from dotplan + # Write the .plan file to the SDF meta array from dotplan scp /sdf/arpa/$letter_range/$letter/$USER/finger/dotplan $USER@ma.sdf.org:/meta/$letter/$USER/.plan } @@ -125,6 +125,7 @@ gopher() # From the $month-e02 file write the $month cp /sdf/arpa/$letter_range/$letter/$USER/gopher-prep/$month-e02 /ftp/pub/users/$USER/posts/$year/$month + # Set the correct permissions on the Gopher directory and files chmod -R 754 /ftp/pub/users/$USER } @@ -162,12 +163,8 @@ gemini() # Remove the extra blank lines above and below the posts year sed -i "9d;12d" /sdf/arpa/$letter_range/$letter/$USER/gemini/index-e02 - # Substitute the posts year with a Gemini link to the posts - sed -i "s/$year/=> gemini\:\/\/gem.sdf.org\/$USER\/posts\/$year\/$month.gmi $year/" /sdf/arpa/$letter_range/$letter/$USER/gemini/index-e02 - - # Substitute the Gopher text with a Gopher Gemini link - sed -i "s/Gopher e.g. gopher gopher\:\/\/sdf.org\:70\/1\/users\/$USER\/./=> gopher\:\/\/sdf.org\:70\/1\/users\/$USER\/ Gopher/" /sdf/arpa/$letter_range/$letter/$USER/gemini/index-e02 - + # Write a blank line between the source and copyright information + # Write the index.gmi file to the Meta Array from index-e02 scp /sdf/arpa/$letter_range/$letter/$USER/gemini/index-e02 $USER@ma.sdf.org:/meta/gemini/$USER/index.gmi