hosted-scripts icon indicating copy to clipboard operation
hosted-scripts copied to clipboard

Installerscript for audiobookshelf

Open Sh4dowNight opened this issue 2 years ago • 7 comments

Installerscript for audiobookshelf

Sh4dowNight avatar Sep 18 '23 20:09 Sh4dowNight

Happy with this other than the one change needed. Nice work.

brettpetch avatar Sep 18 '23 22:09 brettpetch

Happy with this other than the one change needed. Nice work.

Thank you sir.

What change do you mean in particular?

Maybe it would be useful not to hardcode the version and implement a logic that always installs the latest version.

Besides that feel free to change whatever you desire.

Sh4dowNight avatar Sep 19 '23 06:09 Sh4dowNight

echo 'This is unsupported software. You will not get help with this, please answer `yes` if you understand and wish to proceed'
if [[ -z ${eula} ]]; then
    read -r eula
fi

if ! [[ $eula =~ yes ]]; then
  echo "You did not accept the above. Exiting..."
  exit 1
else
  echo "Proceeding with installation"
fi

brettpetch avatar Sep 19 '23 14:09 brettpetch

Done!

Sh4dowNight avatar Sep 19 '23 16:09 Sh4dowNight

Going to run this through shellcheck when I get home and ensure that everything is in order, then will squash and merge. Not sure how I feel about binaries existing in $HOME/.config/appname, I think a more appropriate place would be $HOME/.local/bin.

brettpetch avatar Sep 19 '23 17:09 brettpetch

I already tested the script on my box, but somehow audiobookshelf does not start. When I run the executable directly, I get this error message: image ~Unfortunately, we were not able to reproduce the error yet~ (tested it on @Sh4dowNight's hbd boxes, hbd boxes of a few other users and a VPS), so further testing would be needed to identify the range of the problem. (it could be a different server configuration as I'm on a different server than the other boxes we tested.) Edit: at least one other server is confirmed to have these problems. However, audiobookshelf versions up to 2.2.23 are working, the problem started with v2.3.0.

I also found a bug report where the same error occured on QNAP NAS devices. In an unpacked working qpkg file (v2.3.3) I discovered that the developer (of the QNAP installer) maybe has solved the problem by copying a node_sqlite3.node file to the installation directory, but I was not able try the fix as as this script runs the binary directly.

redoXiD avatar Sep 19 '23 19:09 redoXiD

To me it sounds like sqlite isn't being compiled correctly, maybe a python issue?

brettpetch avatar Sep 25 '23 17:09 brettpetch