Hello folks,
I searched for topic that relate to this subject but didn't find anything so sorry if this is a dupe.
My situation is this. I want useradd to automate customization of the default index.html in the user's public_html.
I have added the public_html dir and default index.html to /etc/skel so thats a non issue.
What i need is to customize:
~user/public_html/index.html with the new user's name.
modify the navbar class in all user's index.html to add a link to the new user's page.
I am using CSS to keep a uniform look to the web site.
So I guess I need a $username variable to add to the index.html in /etc/skel and a way to parse the navbar class and add a new line in it. in multiple files in multiple locations.
if this isn't clear you can take a look at
http://shaitan.gameworkshop.com and view the source to see what is going on in the class navbar.
thanks in advance for your time and your help.
-S