Storing `plexmediaserver.pid` in TMP is safer on a Mac than in a place
the engineering team is working. Make that change to the one we create.
Because TMP is not yet initialized in HostConfig(), go ahead & create it.
This is the primary commit for PlexDBRepair that adds Mac support
to `DBRepair.sh`
Add all the PMS paths unique to Mac in `HostConfig()`.
Include code to create a `plexmediaserver.pid` file.
That concept needs more attention to guard against PMS running.
Deal with MacOS quirks in shell utils and builtins like
- sed -i
- echo -n
- pidof
- awk
- colons & forward slashes in filenames
1. To increase portability, changed the ':' in timestamo to '.' (MacOS problems)
2. Completed adding WriteLog and logic to support UNDO for importing Viewstate
Viewstate import - Development complete
Developer initial testing complete.
1. Copy DB from Syno to Linux workstation
2. Setup empty PMS on Linux workstation
3. Add library section
4. Observe media all unwatched
5. import the DS418's database
6. Verify on Linux workstation -- all titles now marked played