Fix help dialog
This commit is contained in:
108
installJRMC
108
installJRMC
@@ -12,7 +12,7 @@ shopt -s extglob
|
|||||||
#
|
#
|
||||||
#######################################
|
#######################################
|
||||||
|
|
||||||
_scriptversion="1.0.0a1"
|
_scriptversion="1.0.0a2"
|
||||||
_boardurl="https://yabb.jriver.com/interact/index.php/board,71.0.html"
|
_boardurl="https://yabb.jriver.com/interact/index.php/board,71.0.html"
|
||||||
_outputdir="$PWD/output"
|
_outputdir="$PWD/output"
|
||||||
_createrepo_webroot="/srv/jriver"
|
_createrepo_webroot="/srv/jriver"
|
||||||
@@ -23,68 +23,68 @@ _printHelpAndExit() {
|
|||||||
|
|
||||||
cat <<- 'EOF'
|
cat <<- 'EOF'
|
||||||
USAGE:
|
USAGE:
|
||||||
installJRMC [[OPTION] [VALUE]]...
|
installJRMC [[OPTION] [VALUE]]...
|
||||||
|
|
||||||
If no options (besides -d) are provided, the script will default to '--install repo'
|
If no options (besides -d) are provided, the script will default to '--install repo'
|
||||||
|
|
||||||
OPTIONS
|
OPTIONS
|
||||||
--install, -i repo|rpm
|
--install, -i repo|rpm
|
||||||
repo: Install MC from repository, future updates will be handled by the system package manager
|
repo: Install MC from repository, future updates will be handled by the system package manager
|
||||||
rpm: Build and install MC locally (RPM-based OSes only)
|
rpm: Build and install MC locally (RPM-based OSes only)
|
||||||
--build
|
--build
|
||||||
Build RPM from source DEB (no installation)
|
Build RPM from source DEB (no installation)
|
||||||
--mcversion VERSION
|
--mcversion VERSION
|
||||||
Build or install a specific MC version, ex. "28.0.25" (Default: scrape latest version from Interact)
|
Build or install a specific MC version, ex. "28.0.25" (Default: scrape latest version from Interact)
|
||||||
--outputdir PATH
|
--outputdir PATH
|
||||||
Generate rpmbuild output in this directory (Default: $PWD/output)
|
Generate rpmbuild output in this directory (Default: $PWD/output)
|
||||||
--restorefile RESTOREFILE
|
--restorefile RESTOREFILE
|
||||||
Restore file location for automatic license registration (Default: skip registration)
|
Restore file location for automatic license registration (Default: skip registration)
|
||||||
--betapass PASSWORD
|
--betapass PASSWORD
|
||||||
Enter beta team password for access to beta builds
|
Enter beta team password for access to beta builds
|
||||||
--service-user USER
|
--service-user USER
|
||||||
Install systemd services and containers for USER (Default: current user)
|
Install systemd services and containers for USER (Default: current user)
|
||||||
--service, -s SERVICE
|
--service, -s SERVICE
|
||||||
See SERVICES section below for a list of possible services to install
|
See SERVICES section below for a list of possible services to install
|
||||||
--container, -c CONTAINER (TODO: Under construction)
|
--container, -c CONTAINER (TODO: Under construction)
|
||||||
See CONTAINERS section below for a list of possible services to install
|
See CONTAINERS section below for a list of possible services to install
|
||||||
--createrepo
|
--createrepo
|
||||||
Build rpm, copy to webroot, and run createrepo
|
Build rpm, copy to webroot, and run createrepo
|
||||||
--createrepo-webroot PATH
|
--createrepo-webroot PATH
|
||||||
The webroot directory to install the repo (Default: /srv/jriver/)
|
The webroot directory to install the repo (Default: /srv/jriver/)
|
||||||
--createrepo-user USER
|
--createrepo-user USER
|
||||||
The web server user (Default: current user)
|
The web server user (Default: current user)
|
||||||
--version, -v
|
--version, -v
|
||||||
Print this script version and exit
|
Print this script version and exit
|
||||||
--debug, -d
|
--debug, -d
|
||||||
Print debug output
|
Print debug output
|
||||||
--help, -h
|
--help, -h
|
||||||
Print help dialog and exit
|
Print help dialog and exit
|
||||||
--uninstall, -u
|
--uninstall, -u
|
||||||
Uninstall JRiver MC, cleanup service files, and remove firewall rules (does not remove library files)
|
Uninstall JRiver MC, cleanup service files, and remove firewall rules (does not remove library files)
|
||||||
|
|
||||||
SERVICES
|
SERVICES
|
||||||
jriver-mediaserver
|
jriver-mediaserver
|
||||||
Enable and start a mediaserver systemd service (requires an existing X server)
|
Enable and start a mediaserver systemd service (requires an existing X server)
|
||||||
jriver-mediacenter
|
jriver-mediacenter
|
||||||
Enable and start a mediacenter systemd service (requires an existing X server)
|
Enable and start a mediacenter systemd service (requires an existing X server)
|
||||||
jriver-x11vnc
|
jriver-x11vnc
|
||||||
Enable and start x11vnc for the local desktop (requires an existing X server)
|
Enable and start x11vnc for the local desktop (requires an existing X server)
|
||||||
Usually combined with jriver-mediaserver or jriver-mediacenter services
|
Usually combined with jriver-mediaserver or jriver-mediacenter services
|
||||||
--vncpass and --display are also valid options (see below)
|
--vncpass and --display are also valid options (see below)
|
||||||
jriver-xvnc-mediacenter
|
jriver-xvnc-mediacenter
|
||||||
Enable and start a new Xvnc session running JRiver Media Center
|
Enable and start a new Xvnc session running JRiver Media Center
|
||||||
--vncpass PASSWORD
|
--vncpass PASSWORD
|
||||||
Set vnc password for x11vnc/Xvnc access. If no password is set, the script
|
Set vnc password for x11vnc/Xvnc access. If no password is set, the script
|
||||||
will either use existing password stored in ~/.vnc/jrmc_passwd or use no password
|
will either use existing password stored in ~/.vnc/jrmc_passwd or use no password
|
||||||
--display DISPLAY
|
--display DISPLAY
|
||||||
Display to start x11vnc/Xvnc (Default: The current display (x11vnc) or the
|
Display to start x11vnc/Xvnc (Default: The current display (x11vnc) or the
|
||||||
current display incremented by 1 (Xvnc))
|
current display incremented by 1 (Xvnc))
|
||||||
jriver-createrepo
|
jriver-createrepo
|
||||||
Install hourly service to build latest MC RPM and run createrepo
|
Install hourly service to build latest MC RPM and run createrepo
|
||||||
|
|
||||||
CONTAINERS (TODO: Under construction)
|
CONTAINERS (TODO: Under construction)
|
||||||
mediacenter-xvnc
|
mediacenter-xvnc
|
||||||
createrepo
|
createrepo
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Exit using passed exit code
|
# Exit using passed exit code
|
||||||
|
|||||||
Reference in New Issue
Block a user