Solved the "plex-update.sh: not found" error and got it to work!
Looks like it's a problem with how Windows saves documents (I thought I was being careful by using Notepad++).
These commands should fix the files:
dos2unix /storage/scripts/plex-update.sh
dos2unix /storage/.config/plex.conf
dos2unix /storage/.config/system.d/plex.service
And then run: bash /storage/scripts/plex-update.sh to execute the script.
I also removed the \x20's from the plex.service file and replaced them with spaces, but I'm not really sure if that did anything significant. Also, I changed the file permission for all three files to 777.
When I run: systemctl enable plex; systemctl start plex
Nothing seems to happen, nothing in the logs. I'll have to figure this out later.
Update:
So I had to add back in the \x20 for it to start. It says it's running when I run top - i but doesn't show up as an installed addon. I'm not really sure where the server database is either. Is it in the .cache/plex.app folder or somewhere else? Trying to migrate it from the docker set up.
If I go to http://192.168.1.80:32400/ it shows me an xml file without any styling.
Update:
If I do systemctl status plex
I get this:
â— plex.service - Plex Media Server
Loaded: loaded (/storage/.config/system.d/plex.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2021-08-26 19:07:51 UTC; 8min ago
Process: 1251 ExecStartPre=/storage/scripts/plex-update.sh (code=exited, status=0/SUCCESS)
Main PID: 1257 (Plex Media Serv)
CGroup: /system.slice/plex.service
├─1257 /storage/.cache/app.plex/Plex Media Server
├─1268 Plex Plug-in [com.plexapp.system] /storage/.cache/app.plex/Resources/Plug-ins-1a38e63c6/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.24.1.4931-1a38e63c6 /storage/.cache/app.plex/Resources/Plug-ins-1a38e63c6/System.bundle
├─1307 /storage/.cache/app.plex/Plex Tuner Service /storage/.cache/app.plex/Resources/Tuner/Private /storage/.cache/app.plex/Resources/Tuner/Shared 1.24.1.4931-1a38e63c6 32600
└─1352 Plex Plug-in [com.plexapp.agents.imdb] /storage/.cache/app.plex/Resources/Plug-ins-1a38e63c6/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.24.1.4931-1a38e63c6 /storage/.cache/app.plex/Resources/Plug-ins-1a38e63c6/PlexMovie.bundle
Aug 26 19:07:51 Smol-Byte systemd[1]: Starting Plex Media Server...
Aug 26 19:07:51 Smol-Byte Plex Media Server[1251]: Plex up to date.
Aug 26 19:07:51 Smol-Byte systemd[1]: Started Plex Media Server.
Display More
Update:
Just had to add /web like so: http://<local.ip>:32400/web
Found the database folder here: /storage/.config/Plex Media Server
Don't now why I didn't see it there before.
If anyone has trouble finding the docker Plex Media Server folder, it's here:
/storage/.kodi/userdata/addon_data/http://docker.linuxserver.plex/Library/Application Support/Plex Media Server