--- elwix/config/rc.subr 2020/10/22 12:37:59 1.10.2.12 +++ elwix/config/rc.subr 2021/03/21 01:42:08 1.11.2.2 @@ -4,7 +4,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: rc.subr,v 1.10.2.12 2020/10/22 12:37:59 misho Exp $ +# $Id: rc.subr,v 1.11.2.2 2021/03/21 01:42:08 misho Exp $ # ### Dont edit this file !!! @@ -148,7 +148,7 @@ MakeFS_etc() chmod 0600 $1/etc/ssh/ssh_host_ecdsa_key; chmod 0600 $1/etc/ssh/ssh_host_ed25519_key; - chmod 0440 $1/etc/sudoers; +# chmod 0440 $1/etc/sudoers; mkdir -p $1/etc/mqtt; chgrp -R 883 $1/etc/mqtt; @@ -226,6 +226,11 @@ InstallList() sed -nE -e 's/^ *([^ #]+) */\1/p' < $1 | tr ':' '\n' >$TMPFILE cd $2 for i in $(cat $TMPFILE); do + if [ ! -f $i ]; then + rm -f $TMPFILE + echo "Error:: File not found $i" + exit 1 + fi if [ -x $i ]; then echo "Strip '$i'" ${CEXEC} chflags -f noschg $i