ship links in user folder
This commit is contained in:
parent
7b5e895cd2
commit
75fd411b4e
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue