Fixed variables

This commit is contained in:
Scott C. MacCallum 2023-02-16 21:49:03 +00:00
parent 377a04941e
commit 38fa3a2b66

View File

@ -13,13 +13,13 @@ wget -O /sdf/arpa/ns/s/scm/index.html https://scm.sdf.org
# Download the websites posts HTML file
wget -O /sdf/arpa/ns/s/scm/02.html https://scm.sdf.org/posts/2023/02.html
wget -O /sdf/arpa/ns/s/scm/$month.html https://scm.sdf.org/posts/$year/$month.html
# Remove the post related lines from the index HTML file
sed -i 's:<h3>Posts<\/h3>::' /sdf/arpa/ns/s/scm/index.html
sed -i 's:<h4><a href="https\:\/\/scm.sdf.org\/posts\/2023\/02.html">2023<\/a><\/h4>::' /sdf/arpa/ns/s/scm/index.html
sed -i 's:<h4><a href="https\:\/\/scm.sdf.org\/posts\/$year\/$month.html">$year<\/a><\/h4>::' /sdf/arpa/ns/s/scm/index.html
# Convert the index HTML file to an index text file
@ -35,7 +35,7 @@ sed -i '1d;2d;3d' /sdf/arpa/ns/s/scm/index
# Remove the blank lines from the beginning of the posts file
sed -i '1d;2d;3d' /sdf/arpa/ns/s/scm/02
sed -i '1d;2d;3d' /sdf/arpa/ns/s/scm/$month
# Write the index text file to the .plan text file
@ -49,7 +49,7 @@ cp /sdf/arpa/ns/s/scm/index /ftp/pub/users/scm
# Write the posts text file to the posts Gopher location
cp /sdf/arpa/ns/s/scm/$month /ftp/pub/users/scm/posts/2023
cp /sdf/arpa/ns/s/scm/$month /ftp/pub/users/scm/posts/$year
# Set the proper Gopher directory permissions