--- elwix/config/rc.subr 2021/03/11 13:59:50 1.11 +++ elwix/config/rc.subr 2021/07/16 18:35:50 1.12 @@ -4,7 +4,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: rc.subr,v 1.11 2021/03/11 13:59:50 misho Exp $ +# $Id: rc.subr,v 1.12 2021/07/16 18:35:50 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