I have plex installed in a jail (not the plugin) and I want the script to upgrade the pkg without asking a "y" input. Not sure what is wrong with my code.
Code:
#!/bin/sh service plexmediaserver stop pkg update && pkg upgrade multimedia/plexmediaserver -y service plexmediaserver start