[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash syntax





>gotcha on the chown syntax, however, the mkdir isnt happening either.
>
>cjm
>
>> > #!/bin/bash
>> > USER="rufus"
>> > HOMEDIR="/home/test/rufus"
>> >         if [ -z $HOMEDIR ]; then
>> >                 mkdir $HOMEDIR
>> >                 chmod 755 $HOMEDIR
>> >                 chown $HOMEDIR $USER
>> >         fi
>> > #
>> > #
>> 
>> chown $USER $HOMEDIR
>> 



Ok, time to let my ignorance show... are you SURE that the
parent directory "/home/test" exists? Stuff like that always
makes me scratch my head a while.



--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.