slitaz-forge rev 59
sed default index with user name
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Apr 08 20:06:16 2011 +0200 (2011-04-08) |
parents | 232e7381f684 |
children | 0d4dc6e72d78 |
files | tank/files/usr/share/tank/Public/index.html tank/tank |
line diff
1.1 --- a/tank/files/usr/share/tank/Public/index.html Fri Apr 08 19:33:13 2011 +0200 1.2 +++ b/tank/files/usr/share/tank/Public/index.html Fri Apr 08 20:06:16 2011 +0200 1.3 @@ -24,11 +24,13 @@ 1.4 1.5 <div id="content"> 1.6 1.7 -My SliTaz People 1.8 +<!-- Put what ever you want here --> 1.9 + 1.10 +My SliTaz stuff 1.11 1.12 </div> 1.13 1.14 -<div id="footer"></div> 1.15 +<!-- <div id="footer"></div> --> 1.16 1.17 </body> 1.18 </html>
2.1 --- a/tank/tank Fri Apr 08 19:33:13 2011 +0200 2.2 +++ b/tank/tank Fri Apr 08 20:06:16 2011 +0200 2.3 @@ -147,6 +147,7 @@ 2.4 echo "$user:$passwd" >> /etc/lighttpd/plain.passwd 2.5 # Public dir at http://people.slitaz.org/~$user/ 2.6 cp -a /usr/share/tank/Public /home/$user/Public 2.7 + sed -i s/'%user%'/"$user"/ /home/$user/Public/index.html 2.8 # README and empty Shell profile 2.9 cp -a /usr/share/tank/README /home/$user/ 2.10 cat > /home/$user/.profile << EOF