> newuser.log /usr/sbin/adduser --shell /bin/false $1 >> newuser.log s..."/>

Bash script review

Can anyone spot any syntax errors in the following?

Code:
#!/bin/bash
#parameters: user password sharename
echo "Create: $1" >> newuser.log
/usr/sbin/adduser --shell /bin/false $1 >> newuser.log
sleep 3s
/usr/bin/passwd $1
/bin/mkdir /home/custom/apache2/htdocs/$1 >> newuser.log
/bin/chmod -R 777 /home/custom/apache2/htdocs/$1 >> newuser.log
/bin/mkdir /home/ps/$1
/bin/cp -R /home/ps/master/* /home/ps/$1
/bin/chmod -R 777 /home/ps/$1
nuu=`cat /etc/passwd |grep $1 | awk -F: '{print $3}'`
/bin/mount --bind -t smbfs //w1/$3 /home/$1/hlds -o username=administrator,password=bah,uid=$nuu >> newuser.log
echo "/bin/mount --bind -t smbfs //w1/$3 /home/$1/hlds -o username=administrator,password=bah,uid=$nuu" >> /etc/init.d/armstrong
/bin/mount --bind /home/$1/web /home/custom/apache2/htdocs/$1 -o uid=$nuu >> newuser.log
echo "/bin/mount --bind /home/$1/web /home/custom/apache2/htdocs/$1 -o uid=$nuu" >> /etc/init.d/armstrong
/bin/mount --bind /home/$1/psychostats /home/ps/$1 -o uid=$nuu >> newuser.log
/home/custom/mysqld-4.0.20/bin/mysqladmin -uroot -pbah create $1
/home/custom/mysqld-4.0.20/bin/mysql -uroot -pbah grant all on $1.* to $1@localhost identified by '$2';'
echo "/bin/mount --bind /home/$1/psychostats /home/ps/$1 -o uid=$nuu" >> /etc/init.d/armstrong
exit 0
The mySQL permissions line is making me nervous: so many single quotes. Thanks!

 

 

 

 

Top