58 Commits

Author SHA1 Message Date
4dee7b8119 Check for wayland first 2023-03-25 14:28:09 -04:00
f428aa1dfe Switch back to user service 2023-03-24 20:38:27 -04:00
61a53c79dc Switch back to user service 2023-03-24 20:34:46 -04:00
e4a2e3f031 Switch back to user service 2023-03-24 20:33:23 -04:00
652c638d30 Switch x11vnc to a system service 2023-03-24 20:32:10 -04:00
3740fcdf90 Switch x11vnc to a system service 2023-03-24 20:03:47 -04:00
e11337db7c Fix service creation 2023-03-24 19:56:15 -04:00
1164eaeb37 Fix service creation 2023-03-24 19:54:27 -04:00
d88562e6a0 Fix service creation 2023-03-24 19:43:55 -04:00
6ab5605ea5 Move display increment to function 2023-03-24 19:29:26 -04:00
97f4af8075 Move display increment to function 2023-03-24 19:27:51 -04:00
642bb7218f Move display increment to function 2023-03-24 19:22:45 -04:00
319ee077aa Move display increment to function 2023-03-24 19:16:11 -04:00
e05870e72b Move display increment to function 2023-03-24 19:13:24 -04:00
fd073092c0 Move display increment to function 2023-03-24 19:10:36 -04:00
0f0da1097e Fix xvnc display incr 2023-03-24 18:54:46 -04:00
c26fdd608e Fix service command exit 2023-03-24 18:08:47 -04:00
797e8ad408 Fix repo signing on SUSE 2023-03-24 17:17:35 -04:00
5db207ed56 Fix nested rpmbuild 2023-03-24 16:59:46 -04:00
6c685b26a4 Verbosity fixes 2023-03-24 14:14:23 -04:00
7197c00ee6 Fix tar commands 2023-03-24 13:38:26 -04:00
01fedbcc6d Fix derp 2023-03-23 14:04:10 -04:00
a4f9281afe Style changes 2023-03-23 14:01:14 -04:00
2ac82ccbde Move PKG_QUERY to command array 2023-03-23 13:38:30 -04:00
439361e4cb Move execute up for all pm commands 2023-03-23 13:33:38 -04:00
57e58e6c4e Change condition style 2023-03-23 13:09:56 -04:00
f8678629dc Make less noisy 2023-03-22 12:34:38 -04:00
82113fb470 Fix webroot mask 2023-03-22 12:22:35 -04:00
c8c610b3eb Fix uninstall list 2023-03-22 10:14:03 -04:00
2c7331bed9 New generic install method 2023-03-21 15:51:22 -04:00
02e0e4a021 New generic install method 2023-03-21 15:20:21 -04:00
8edd9637c1 New generic install method 2023-03-21 15:16:08 -04:00
d0f43b6b30 New generic install method 2023-03-21 14:37:38 -04:00
089ce68cc6 New generic install method 2023-03-21 14:28:00 -04:00
7c8a324306 New generic install method 2023-03-21 14:27:35 -04:00
144c4e3bad New generic install method 2023-03-21 14:24:27 -04:00
61b86d3b7c New generic install method 2023-03-21 14:21:59 -04:00
1339921844 New generic install method 2023-03-21 14:15:58 -04:00
d7e52af956 New generic install method 2023-03-21 14:09:40 -04:00
b41902ad13 Preserve more whitespace 2023-03-21 11:50:05 -04:00
a5273f347c Fix whitespace 2023-03-21 11:35:41 -04:00
0ca572dd50 Refactor disableCoW() 2023-03-21 11:28:52 -04:00
cc31f9b62e Fix disableCoW race 2023-03-21 11:25:14 -04:00
439fbc8ca0 More safe whitespace 2023-03-21 11:21:26 -04:00
3ac000e49a Allow more safe whitespace 2023-03-21 11:13:39 -04:00
cc6e866557 First shot at removing eval 2023-03-21 10:58:38 -04:00
1a5f2e3222 Fix grep for depends list 2023-03-19 11:49:18 -04:00
1d66b43a26 Only copy files from deb 2023-03-19 11:47:31 -04:00
185f606a38 Fix installMCGENERIC return 2023-03-19 11:43:00 -04:00
7ccbcfaedc Fix deb extraction 2023-03-19 11:38:19 -04:00
cff3b99a7d Prevent overriding switches for unknown OS 2023-03-19 11:35:09 -04:00
a5b37bc1be Fix switch scopes for unknown OS 2023-03-19 11:29:32 -04:00
d9242c4882 Disable PKG commands on unknown distros 2023-03-19 11:22:51 -04:00
d350879bb6 Add debug for gentoo testing 2023-03-19 11:16:01 -04:00
a71b980371 Use apt-get for OS detection 2023-03-19 11:13:33 -04:00
e587e23a2e Replace pwd with script dir 2023-03-15 17:42:05 -04:00
9c5e25e574 First stab at generic install method 2023-03-15 17:32:59 -04:00
3ca121d7f3 Add --yes option to always answer yes 2023-03-15 14:01:07 -04:00
3 changed files with 448 additions and 364 deletions

View File

@@ -23,7 +23,7 @@ $ installJRMC --help
--compat --compat
Build/install MC without minimum dependency version requirements Build/install MC without minimum dependency version requirements
--mcversion VERSION --mcversion VERSION
Build or install a specific MC version, ex. "30.0.72" (default: latest version) Build or install a specific MC version, ex. "30.0.83" (default: latest version)
--arch ARCH --arch ARCH
Specify the MC architecture, ex. "amd64", "arm64", etc (default: host architecture) Specify the MC architecture, ex. "amd64", "arm64", etc (default: host architecture)
--outputdir PATH --outputdir PATH
@@ -45,6 +45,8 @@ $ installJRMC --help
The webroot directory to install the repo (default: /var/www/jriver/) The webroot directory to install the repo (default: /var/www/jriver/)
--createrepo-user USER --createrepo-user USER
The web server user if different from the current user The web server user if different from the current user
--yes, -y, --auto
Always assume yes for questions
--version, -v --version, -v
Print this script version and exit Print this script version and exit
--debug, -d --debug, -d
@@ -110,9 +112,9 @@ Multiple services (but not `--service-types`) can be installed at one time using
Install MC from the repository and start/enable `jriver-mediacenter.service` as a user service. Install MC from the repository and start/enable `jriver-mediacenter.service` as a user service.
* `installJRMC --install local --compat --restorefile /path/to/license.mjr --mcversion 30.0.72` * `installJRMC --install local --compat --restorefile /path/to/license.mjr --mcversion 30.0.83`
Build and install an MC 30.0.72 comptability RPM locally and activate it using the `/path/to/license.mjr` Build and install an MC 30.0.83 comptability RPM locally and activate it using the `/path/to/license.mjr`
* `installJRMC --createrepo --createrepo-webroot /srv/jriver/repo --createrepo-user www-user` * `installJRMC --createrepo --createrepo-webroot /srv/jriver/repo --createrepo-user www-user`

View File

@@ -32,7 +32,7 @@ $ installJRMC --help
--compat --compat
Build/install MC without minimum dependency version requirements Build/install MC without minimum dependency version requirements
--mcversion VERSION --mcversion VERSION
Build or install a specific MC version, ex. "30.0.72" Build or install a specific MC version, ex. "30.0.83"
--arch ARCH --arch ARCH
Specify the MC architecture, ex. "amd64", "arm64", etc (default: host architecture) Specify the MC architecture, ex. "amd64", "arm64", etc (default: host architecture)
--outputdir PATH --outputdir PATH
@@ -54,6 +54,8 @@ $ installJRMC --help
The webroot directory to install the repo (default: /var/www/jriver/) The webroot directory to install the repo (default: /var/www/jriver/)
--createrepo-user USER --createrepo-user USER
The web server user if different from the current user The web server user if different from the current user
--yes, -y, --auto
Always assumes yes for questions
--version, -v --version, -v
Print this script version and exit Print this script version and exit
--debug, -d --debug, -d
@@ -84,7 +86,7 @@ jriver-createrepo (system)
By default installs as root service to handle www permissions more gracefully By default installs as root service to handle www permissions more gracefully
[/code] [/code]
By default, MC services use a sane `--service-type` listed next to the service name in the Services description. User services can be manipulated as an unprivileged user, for example: *systemctl --user stop jriver-mediacenter* and begin at user login. System services are manipulable as root, for example: `sudo systemctl stop jriver-servicename@username.service` and begin at system boot. Note that it is possible to run all services of a particular user at boot using [url=https://www.freedesktop.org/software/systemd/man/loginctl.html]sudo loginctl enable-linger username[/url]. By default, MC services use a sane `--service-type` listed next to the service name in the Services description. User services can be manipulated as an unprivileged user, for example: [i]systemctl --user stop jriver-mediacenter[/i] and begin at user login. System services are manipulable as root, for example: [i]sudo systemctl stop jriver-servicename@username.service[/i] and begin at system boot. Note that it is possible to run all services of a particular user at boot using [url=https://www.freedesktop.org/software/systemd/man/loginctl.html]sudo loginctl enable-linger username[/url].
Multiple services (but not --service-types) can be installed at one time using multiple --service blocks: [code]installJRMC --install repo --service jriver-x11vnc --service jriver-mediacenter[/code] Multiple services (but not --service-types) can be installed at one time using multiple --service blocks: [code]installJRMC --install repo --service jriver-x11vnc --service jriver-mediacenter[/code]
@@ -109,8 +111,8 @@ Install the latest version of MC from the best available repository.
Install a more widely-compatible version of the latest MC version. Install a more widely-compatible version of the latest MC version.
[code]installJRMC --install repo --service jriver-mediacenter --service-type user[/code] [code]installJRMC --install repo --service jriver-mediacenter --service-type user[/code]
Install MC from the repository and start/enable jriver-mediacenter.service as a user service. Install MC from the repository and start/enable jriver-mediacenter.service as a user service.
[code]installJRMC --install local --compat --restorefile /path/to/license.mjr --mcversion 30.0.72[/code] [code]installJRMC --install local --compat --restorefile /path/to/license.mjr --mcversion 30.0.83[/code]
Build and install an MC 30.0.72 comptability RPM locally and activate it using the /path/to/license.mjr Build and install an MC 30.0.83 comptability RPM locally and activate it using the /path/to/license.mjr
[code]installJRMC --createrepo --createrepo-webroot /srv/jriver/repo --createrepo-user www-user[/code] [code]installJRMC --createrepo --createrepo-webroot /srv/jriver/repo --createrepo-user www-user[/code]
Build an RPM locally for the current distro, move it to the webroot, and run createrepo as www-user. Build an RPM locally for the current distro, move it to the webroot, and run createrepo as www-user.
[code]installJRMC --service jriver-createrepo --createrepo-webroot /srv/jriver/repo --createrepo-user www-user[/code] [code]installJRMC --service jriver-createrepo --createrepo-webroot /srv/jriver/repo --createrepo-user www-user[/code]

File diff suppressed because it is too large Load Diff