mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 13:23:21 -07:00
Merge 4e91d842a1
into 104a7343d3
This commit is contained in:
commit
420c4a9538
1 changed files with 10 additions and 0 deletions
|
@ -55,6 +55,7 @@ PUBLIC=no
|
|||
AUTOINSTALL=no
|
||||
AUTODELETE=no
|
||||
AUTOUPDATE=no
|
||||
AUTOSTART=no
|
||||
|
||||
# Sanity, make sure wget is in our path...
|
||||
wget >/dev/null 2>/dev/null
|
||||
|
@ -88,6 +89,7 @@ do
|
|||
(-p) PUBLIC=yes;;
|
||||
(-u) AUTOUPDATE=yes;;
|
||||
(-U) AUTOUPDATE=no;;
|
||||
(-r) AUTOSTART=no;;
|
||||
(--) ;;
|
||||
(-*) echo "Error: unrecognized option $1" 1>&2; exit 1;;
|
||||
(*) break;;
|
||||
|
@ -310,4 +312,12 @@ if [ "${AUTODELETE}" == "yes" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if [ "${AUTOSTART}" == "yes" ]; then
|
||||
if [ "${AUTOSTART}" == "yes" ]; then
|
||||
service plexmediaserver start
|
||||
else
|
||||
echo "Will not attempt to auto start plexmediaserver service without [-r] restart"
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue