Many fixes
This commit is contained in:
parent
4174117f59
commit
85428b731c
@ -22,7 +22,6 @@
|
|||||||
month=$(date '+%m')
|
month=$(date '+%m')
|
||||||
let prevmonth=$month-1
|
let prevmonth=$month-1
|
||||||
year=$(date '+%Y')
|
year=$(date '+%Y')
|
||||||
# Change this to the first letter of your login name
|
|
||||||
letter="s"
|
letter="s"
|
||||||
|
|
||||||
finger()
|
finger()
|
||||||
@ -80,6 +79,9 @@ finger()
|
|||||||
|
|
||||||
gopher()
|
gopher()
|
||||||
{
|
{
|
||||||
|
# If the year has changed, and a new year directory does not already
|
||||||
|
# exist, create it
|
||||||
|
|
||||||
# Download the index.html and $month.html files
|
# Download the index.html and $month.html files
|
||||||
sftp $USER@ma.sdf.org:/meta/$letter/$USER/html/index.html /sdf/arpa/ns/$letter/$USER/gopher-prep
|
sftp $USER@ma.sdf.org:/meta/$letter/$USER/html/index.html /sdf/arpa/ns/$letter/$USER/gopher-prep
|
||||||
sftp $USER@ma.sdf.org:/meta/$letter/$USER/html/posts/$year/$month.html /sdf/arpa/ns/$letter/$USER/gopher-prep
|
sftp $USER@ma.sdf.org:/meta/$letter/$USER/html/posts/$year/$month.html /sdf/arpa/ns/$letter/$USER/gopher-prep
|
||||||
@ -115,6 +117,9 @@ gopher()
|
|||||||
|
|
||||||
gemini()
|
gemini()
|
||||||
{
|
{
|
||||||
|
# If the year has changed, and a new year directory does not already
|
||||||
|
# exist, create it
|
||||||
|
|
||||||
# Download the index.html and $month.html files
|
# Download the index.html and $month.html files
|
||||||
sftp $USER@ma.sdf.org:/meta/$letter/$USER/html/index.html /sdf/arpa/ns/$letter/$USER/gemini
|
sftp $USER@ma.sdf.org:/meta/$letter/$USER/html/index.html /sdf/arpa/ns/$letter/$USER/gemini
|
||||||
sftp $USER@ma.sdf.org:/meta/$letter/$USER/html/posts/$year/$month.html /sdf/arpa/ns/$letter/$USER/gemini
|
sftp $USER@ma.sdf.org:/meta/$letter/$USER/html/posts/$year/$month.html /sdf/arpa/ns/$letter/$USER/gemini
|
||||||
@ -153,9 +158,9 @@ gemini()
|
|||||||
scp /sdf/arpa/ns/$letter/$USER/gemini/$month-e02 $USER@ma.sdf.org:/meta/gemini/$USER/posts/$year/$month.gmi
|
scp /sdf/arpa/ns/$letter/$USER/gemini/$month-e02 $USER@ma.sdf.org:/meta/gemini/$USER/posts/$year/$month.gmi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Comment out the service that you're not using, or to aid in getting one to display correctly at a time
|
|
||||||
finger
|
finger
|
||||||
gopher
|
gopher
|
||||||
|
web
|
||||||
gemini
|
gemini
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user