Update FreeNAS instructions to use sysrc plexpy_user
to set user instead of editing /etc/rc.d/plexpy
@@ -97,15 +97,18 @@ Optional:
|
|||||||
## FreeNAS
|
## FreeNAS
|
||||||
Instructions by [Supa on the FreeNAS forums](https://forums.freenas.org/index.php?threads/how-to-install-plexpy-in-a-freenas-9-3-jail.38589/#post-234202).
|
Instructions by [Supa on the FreeNAS forums](https://forums.freenas.org/index.php?threads/how-to-install-plexpy-in-a-freenas-9-3-jail.38589/#post-234202).
|
||||||
|
|
||||||
This assumes PlexPy is installed to `/usr/local/share/` as per installation instructions.
|
This assumes PlexPy is installed to `/usr/local/share/` as per installation instructions, and user is `root`.
|
||||||
|
|
||||||
To automate the PlexPy script just do this in the jail shell (in root directory):
|
To automate the PlexPy script just do this in the jail shell (in root directory):
|
||||||
* Make sure PlexPy is shutdown. `PlexPy > Settings > Shutdown`
|
* Make sure PlexPy is shutdown. `PlexPy > Settings > Shutdown`
|
||||||
* Type: `cp /usr/local/share/plexpy/init-scripts/init.freenas /etc/rc.d/plexpy`
|
* Ensure user permissions are correct: `chown -R root:wheel /usr/local/share/plexpy`
|
||||||
* Type: `chmod 777 /etc/rc.d/plexpy`
|
* Copy init script: `cp /usr/local/share/plexpy/init-scripts/init.freenas /etc/rc.d/plexpy`
|
||||||
* Type: `edit /etc/rc.d/plexpy`
|
* Enable at boot: `sysrc plexpy_enable="YES"`
|
||||||
* Edit the user in the following line: `${plexpy_user:="xxxx"}` (I just used 'root')
|
* Set user to run: `sysrc plexpy_user="root"`
|
||||||
* Save and close the file
|
* To start `service plexpy start`
|
||||||
* Type: `sysrc plexpy_enable="YES"`.
|
* You can use `service plexpy [start | stop | restart | status]` to start/stop/restart or check the status of the PlexPy service
|
||||||
* Start PlexPy using `service plexpy start`.
|
|
||||||
* You can use `service plexpy [start | stop | restart | status]` to start/stop/restart or check the status of the PlexPy service
|
Optional:
|
||||||
|
* If you need to change user: `sysrc plexpy_user="USERNAME"`
|
||||||
|
* Set user permissions for the plexpy directory: `chown -R USERNAME:GROUPNAME /usr/local/share/plexpy`
|
||||||
|
* Run from another directory: `sysrc plexpy_dir="DIRECTORY"`
|
Reference in New Issue
Block a user