updated new user welcome email

This commit is contained in:
James Tomasino 2019-02-05 12:09:03 -05:00
parent d63bbc259a
commit 645ea7634e
2 changed files with 49 additions and 37 deletions

View File

@ -11,7 +11,7 @@ if [ "$run_user" -eq 0 ]; then
newpw=$(pwgen -1B 10) newpw=$(pwgen -1B 10)
pwcrypt=$(perl -e "print crypt('${newpw}', 'sa');") pwcrypt=$(perl -e "print crypt('${newpw}', 'sa');")
useradd -m -G users,www-data -p "$pwcrypt" -s /bin/bash "${n}" || exit 1 useradd -m -G users,www-data -p "$pwcrypt" -s /bin/bash "${n}" || exit 1
sed -e "s/newusername/${n}/g" -e "s/newpassword/${newpw}/" /etc/templates/welcomemail.tmpl | sendmail "${n}" "tomasino" sed -e "s/USERNAME/${n}/g" -e "s/PASSWORD/${newpw}/" /etc/templates/welcomemail.tmpl | sendmail "${n}"
fi fi
if [ ! -z "${k}" ]; then if [ ! -z "${k}" ]; then
printf "%s\\n" "${k}" >> "/home/${n}/.ssh/authorized_keys" printf "%s\\n" "${k}" >> "/home/${n}/.ssh/authorized_keys"

View File

@ -1,56 +1,68 @@
Subject: Welcome to the cosmic.voyage! Subject: Welcome to the cosmic.voyage!
Welcome ~newusername, Welcome ~USERNAME,
Your new account has been established. you can ssh into Your new account has been established. you can ssh into
cosmic.voyage with the ssh key you supplied on registration. cosmic.voyage with the ssh key you supplied on registration.
Your password is "newpassword". please change it when you log in Your password is "PASSWORD". please change it when you log in for
for the first time with 'passwd'. While we don't use passwords for the first time with 'passwd' like so:
logins, they may be used on the system for authentication in the
future.
This tilde server is dedicated to a single activity, the $ passwd
collaborative storytelling of the human stellar diaspora. We may
add other features over time that are designed to support the
story. For instance, we have an IRC daemon here that connects as
part of irc.tilde.chat. You can join and visit the #cosmic room to
discuss this server.
A note about folders and files: While we don't use passwords for logins, they can be used on the
system for IMAP, POP3 and SMTP. You can receive email on this
system from any location if you are emailed at
USERNAME@cosmic.voyage, but our outgoing mail is limited to other
pubnix servers and the tildeverse.
The story content is available at /var/gopher. Within that This server is dedicated to the collaborative storytelling of the
directory are all of the ships, outposts, settlements, and human stellar diaspora. We continue to add other features over
communes of the diaspora scattered through time and space. These time that are designed to support the story. For instance, we have
entities are the basis for our stories. Rather than build your an IRC daemon here that connects as part of irc.tilde.chat. You
content in a user folder, you can claim a ship or outpost and take can join and visit the #cosmic room to discuss this server. New
on its story. features are often added to the interactive menu which can be
accessed by running:
To create a new ship you can run the 'ship' command like so: $ menu
$ ship "Super Awesome Ship Name" To begin contributing to Cosmic Voyage you must claim a ship,
colony, or outpost and take on its story. Claiming your ship is as
easy as running the 'ship' command in the menu, or on the command
line like so:
Make sure your ship name is in quotes if it contains more than one $ ship
word, and please avoid using unicode characters in the ship names.
You can write unicode in your logs, but the scripts don't play nice
with the special characters as filenames. Once your ship is
active, you are the only one with access to its story.
To author a new message on the QEC, create a new text file in your You will be prompted for a name of your ship/outpost/colony.
ship's directory (must end in .txt). Author your message in Spaces in ship names are allowed, but please avoid using unicode
whatever format fits your theme. Add as much character as you characters in the names. You can write unicode in your logs, but
like. When you're ready for the message to be posted to the relay, the scripts don't play nice with the special characters as
run the 'log' command in the terminal. It will prompt you to send filenames. Once your ship is active, you are the only one with
any pending messages and what to title them. 'log' will add a link access to its story.
to your message, but the message is still totally in your control.
If you need to change something later, just edit the file. There's
no need to run log again.
If you have any questions, send me a local mail or find me on irc. Once you have claimed your ship/outpost/colony, it will appear for
you as a directory in ~/ships/. To author a new message on the
QEC, create a new text file in your ship's directory (must end in
.txt). You can also browse to the message creation section of the
menu and create a new message there.
Author your message in whatever format fits your theme. Add as
much character as you like. When you're ready for the message to
be posted to the relay, run the 'log' command in the menu or
terminal like so:
$ log
This will link to your message to the QEC, but the message is
still totally in your control. If you need to change something
later, just edit the file. There's no need to run log again.
If you have any questions, send a local mail to tomasino, or
fosslinux, or join us in IRC.
Also, please consider joining the cosmic.voyage mailing list! Also, please consider joining the cosmic.voyage mailing list!
https://lists.tildeverse.org/postorius/lists/cosmic.lists.tildeverse.org/ https://lists.tildeverse.org/postorius/lists/cosmic.lists.tildeverse.org/
Thanks so much for joining. I can't wait to read your stories. Thanks so much for joining. I can't wait to read your stories.
~tomasino - the admins