ship links in user folder

This commit is contained in:
James Tomasino 2018-11-22 20:27:33 -05:00
parent 7b5e895cd2
commit 75fd411b4e
2 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,7 @@ if [ "$run_user" -eq 0 ]; then
printf "\\n<title>Cosmic Voyage</title>\\n"
printf "<link>gopher://cosmic.voyage</link>\\n"
printf "<description>Messages from the human stellar diaspora</description>\\n"
printf "<pubdate>%s</pubdate>\\n" "$(date +'%a, %d %b %Y %H:%M:%S')"
} > "${file_rss}"
# Loop through listings gophermap

View File

@ -14,6 +14,8 @@ if [ "$run_user" -eq 0 ]; then
mkdir "$path"
chmod 755 "$path"
chown -R "${n}" "$path"
mkdir -p "/home/${n}/ships"
ln -s "$path" "/home/${n}/ships/${s}"
sed -e "s/username/${n}/g" -e "s/shipname/${s}/" /etc/newship.tmpl | sendmail "${n}" "tomasino"
else
owner=$(stat -c %U "$path")