Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS support for QNAP NAS #222

Open
Scully66 opened this issue Feb 17, 2018 · 7 comments
Open

OS support for QNAP NAS #222

Scully66 opened this issue Feb 17, 2018 · 7 comments

Comments

@Scully66
Copy link

I have attempted to use the old version of the script on a QNAP NAS and it just does not quite work. I have tired to modify the script to look for the .qpkg distro file and even attempted adjusting some of the other script variables to look for the correct object locations from what I can see in the QNAP OS structure. But, I still can not correctly define the build and distro info.

I also attempted to install using the new script and that just flat out failed with the error "bash: line 102: read -l invalid option" some other output from the read command and then eventually ...install failed. :)

According to the docs the OS is Debian based, but I am not familiar with it. I have had the old script working great on my Ubuntu system for years now.

If you need me to send you command output or run tests, just let me know.

Thanks,

Rod

@demonbane
Copy link
Collaborator

Sorry this took so long, I just now noticed this still hasn't been responded to.

I don't have a QNAP to test with, but my guess would be that it's due to an old version of bash. plexupdate requires bash >4. If you run echo $BASH_VERSION on your QNAP it should show you which version is currently being used.

@Scully66
Copy link
Author

Scully66 commented Apr 16, 2018 via email

@demonbane
Copy link
Collaborator

Unfortunately, there's not much we can do to make it run on older versions of bash apart from rewriting substantial portions of the code.

It looks like the QNAP does support Optware (ipkg), so you might be able to install an updated version of bash that way. That's what I do on my Synology NAS and it works well.

If you do manage to get it installed I'd be happy to help you get it working from there. (there might be a few path issues since I doubt ipkg will overwrite /bin/bash, it'll probably put it in a different location)

@Scully66
Copy link
Author

Scully66 commented Apr 16, 2018 via email

@Wyrrrd
Copy link

Wyrrrd commented Apr 24, 2019

The bash part is fine with Entware, but there are other problems...

/etc is not reboot-persistent on QNAPs, while it is hardcoded in some places in plexupdate.

Also mktemp throws errors (invalid parameter). The incompatibility seems to stem from the mismatch of plexupdate using the gnu version and QNAP using the busybox version.

@mrspidey
Copy link

I see this is an old thread but still an issue for me. Has anyone found a work-around for this on QNAP in 2021/2022?

@mrspidey
Copy link

I see this is an old thread but still an issue for me. Has anyone found a work-around for this on QNAP in 2021/2022?

Ok this worked for me (https://github.com/krunk4ever/qnap-plex-auto-updater). I had to make sure I set the correct user path, and the Plex Preferences file for me was located at /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex\ Media\ Server/Preferences.xml so I just updated the script.

I ended up getting errors, but those were due to encoding as I had edited the script in Windows.

I ran this command and it ran:

sed -i -e 's/\r$//' /share/homes/user/scripts/qnap-plex-auto-updater.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants