# # This file contains the message that is sent to a user # when his/her site is created. Customize it to your needs, # but take care because this file is sourced in the mksite # script, so it also can contain any commands you want to # execute after a site is created. # if [ "$LANG" == "pt_BR" ]; then MESSAGE=( "Pronto, criamos o site http://$USER.$DOMAIN / http://$DOMAIN/$USER\nLista de discussao para webmasters do $DOMAIN: $MAILING_LIST" ) echo -e "${MESSAGE[@]}" | mailx -s "Seu sitio no $DOMAIN foi criado" -r hostmaster@$DOMAIN $CONTACT echo "Sitio $USER.$DOMAIN criado." echo "Email de boas vindas enviado para $CONTACT." echo "Inscreva o usuario na lista $MAILING_LIST" else MESSAGE=( "Welcome to your new site http://$USER.$DOMAIN / http://$DOMAIN/$USER\nMailing list for $DOMAIN webmasters: $MAILING_LIST" ) echo -e "${MESSAGE[@]}" | mailx -s "Your site at $DOMAIN was created" -r hostmaster@$DOMAIN $CONTACT echo "$USER.$DOMAIN site created." echo "Welcome message sent to $CONTACT." echo "Please subscribe the user at $MAILING_LIST mailing list" fi