[ gpsdrive ] [gpsdrive] update-mapnik-from-planet.sh

haylocki haylocki at yahoo.co.uk
Fri Oct 12 16:56:16 AKDT 2007


Hi,

I am just running this program, and it is trying to change the ownership of
every file in my home directory. Surley this is wrong.

I think the problem is with this part of the script :


############################################
# Create a user on the system
############################################
if [ -n "$create_user" ] ; then
    test -n "$verbose" && echo "----- Check if we already have an user
'$user_name'"
    
    if ! id "$user_name" >/dev/null; then
	echo "create '$user_name' User"
	useradd "$user_name"
    fi
    
    mkdir -p "/home/$user_name/osm/planet"
    chown -R "$user_name" "/home/$user_name"
    chmod -R +rwX "/home/$user_name"
fi


as you can see it is changing the ownership of every file in
/home/$user_name, then making all the files read, write and executeable.


Or am I doing something wrong ? (Wouldn't be the first time)

Cheers, Ian

-- 
View this message in context: http://www.nabble.com/update-mapnik-from-planet.sh-tf4616879.html#a13185480
Sent from the GpsDrive mailing list archive at Nabble.com.



More information about the GPSdrive mailing list