Install error caused by script - solved


#1

Hi

Running the stable release on an raspberry pi.

Every time I run an update or do an initial install of homegear-homematicbidcos I get the following errors at the end:

chown: cannot access ‘/usr/share/homegear/firmware/.fw’: No such file or directory
chown: cannot access '/usr/share/homegear/firmware/
.version’: No such file or directory
chmod: cannot access ‘/usr/share/homegear/firmware/.fw’: No such file or directory
chmod: cannot access '/usr/share/homegear/firmware/
.version’: No such file or directory

I get the same errors when executing the GetFirmwareUpdatesHomeMaticBidCoS.sh manually and also the permissions are not set correct for *fw and *.version inside /usr/share/homegear/firmware.
I think this is because of the last line of the GetFirmwareUpdatesHomeMaticBidCoS.sh script:

chown homegear:homegear “$SCRIPTDIR/.fw"
chown homegear:homegear "$SCRIPTDIR/
.version”
chmod 444 “$SCRIPTDIR/.fw"
chmod 444 "$SCRIPTDIR/
.version”

removing the quotes removes the error messages and also the permissions will be set correct.

chown homegear:homegear $SCRIPTDIR/.fw
chown homegear:homegear $SCRIPTDIR/
.version
chmod 444 $SCRIPTDIR/.fw
chmod 444 $SCRIPTDIR/
.version

cheers


#2

Hi @jipp,

thanks, I would’ve never noticed it, because in the dev branch it was fixed already. For some reason the changes didn’t get merged. It’s fixed now.

Cheers,

Sathya