slitaz-forge diff tank/taztank @ rev 47
taztank: Add profile.php as a file into /usr/share/taztank folder. The current method will not work since dollar sign versions in php are blank.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Apr 03 04:11:27 2011 +0000 (2011-04-03) |
parents | 444d36a84ce8 |
children | 92ca357624a0 |
line diff
1.1 --- a/tank/taztank Sun Apr 03 00:01:32 2011 +0000 1.2 +++ b/tank/taztank Sun Apr 03 04:11:27 2011 +0000 1.3 @@ -140,6 +140,7 @@ 1.4 echo -e "User $user already exist...\n" && exit 1 1.5 fi 1.6 echo "Adding user: $user" 1.7 + #adduser -s /bin/sh -g "SliTaz User" -G users -h /home/$user $user # for cooking 1.8 adduser $user 1.9 # HG access 1.10 echo -n "Hg password: " && read passwd 1.11 @@ -159,21 +160,9 @@ 1.12 EOF 1.13 # Public profile 1.14 mkdir -p /home/$user/Public 1.15 - cat > /home/$user/Public/profile.php << EOF 1.16 -<?php 1.17 - 1.18 -// Your custom SliTaz profile at http://people.slitaz.org/. This file must 1.19 -// be located at ~/Public/profile.php. You must at least provide your real 1.20 -// name and you can use the $wall variable for a personnal message. 1.21 - 1.22 -$name = "Real Name"; 1.23 -$location = ""; 1.24 -$scn_user = ""; 1.25 -$skills = ""; 1.26 -$wall = ""; 1.27 - 1.28 -?> 1.29 -EOF 1.30 + if [ -f /usr/share/taztank/profile.php ]; then 1.31 + cp -a /usr/share/taztank/profile.php /home/$user/Public/profile.php 1.32 + fi 1.33 # Shell profile 1.34 cat > /home/$user/.profile << EOF 1.35 # ~/.profile: Executed by Bourne-compatible login SHells.