RPi-Jukebox-RFID icon indicating copy to clipboard operation
RPi-Jukebox-RFID copied to clipboard

_jukebox_core_download_prebuild_libzmq_with_drafts installation routine copies everything in /home/pi into /usr/local

Open jeverling opened this issue 3 years ago • 5 comments

See https://github.com/MiczFlor/RPi-Jukebox-RFID/blob/6b72a21f5c5e5906ded14eb87a79b763d6a5f2a9/installation/routines/setup_jukebox_core.sh#L61

I think the script should only rsync include and lib folders, not all contents of ~. Maybe the script should download and unpack the archive into a temporary location as well.

jeverling avatar Dec 23 '21 02:12 jeverling

Thanks a lot. I'll have a look. This should definitely be corrected!

pabera avatar Dec 23 '21 08:12 pabera

I think this was a fluke, and ZMQ_TMP_DIR ended up being unset for some reason on my system. I did not see the same again when retrying the install. I think this can be closed, sorry about the false alarm!

jeverling avatar Dec 28 '21 14:12 jeverling

ZMQ_TMP_DIR ended up being unset for some reason on my system

Any idea how that happened? Did you do anything special during the installation?

ghost avatar Dec 29 '21 15:12 ghost

I think what happened, is that the directory already existed on my system (from a previous install). The code only CDs into that directory, when mkdir ${ZMQ_TMP_DIR} succeeds. When the directory already exists, mkdir will fail and the rest of the following line will not be executed: cd ${HOME_PATH} && mkdir ${ZMQ_TMP_DIR} && cd ${ZMQ_TMP_DIR}.

I guess it would be good to remove the temporary directory after that step has completed.

jeverling avatar Dec 31 '21 02:12 jeverling

Good analysis! Definitely looks like something we should make more robust in the install script. I am reopening this issue. @pabera: over to you, again.

ghost avatar Dec 31 '21 06:12 ghost

Closing as this should be fixed in #1749

feel free to reopen, if the issue still occurs.

s-martin avatar Nov 18 '23 18:11 s-martin