--- elwix/build_fs.sh 2012/10/11 13:31:33 1.3.2.14 +++ elwix/build_fs.sh 2012/10/12 08:22:42 1.4 @@ -5,7 +5,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: build_fs.sh,v 1.3.2.14 2012/10/11 13:31:33 misho Exp $ +# $Id: build_fs.sh,v 1.4 2012/10/12 08:22:42 misho Exp $ # [ -r ./config/rc.elwix ] && . ./config/rc.elwix @@ -61,6 +61,7 @@ build_fsdir() install -d -m 0555 altroot/var/empty; install -d altroot/var/log; install -d -o 101 -g 101 altroot/var/log/quagga; + install -d -o 883 -g 883 altroot/var/mqtt; install -d altroot/var/named; install -d altroot/var/run; install -d altroot/var/sys; @@ -77,6 +78,7 @@ build_fsdir() install -d cf; # etc install -d etc; + install -d -o 883 -g 883 etc/mqtt; # exports install -d exports; # home @@ -186,6 +188,9 @@ mketc() chgrp 80 $1/etc/config.xml; chmod 0660 $1/etc/config.xml; + + chgrp -R 883 $1/etc/mqtt; + chown -R 883 $1/etc/mqtt; ln -sf /etc/rc.s $1/etc/rc.S