jailman move
This commit is contained in:
3
jailman/blueprints/lidarr/config.yml
Normal file
3
jailman/blueprints/lidarr/config.yml
Normal file
@ -0,0 +1,3 @@
|
||||
blueprint:
|
||||
lidarr: lidarr
|
||||
pkgs: mono mediainfo sqlite3
|
36
jailman/blueprints/lidarr/includes/lidarr.rc
Normal file
36
jailman/blueprints/lidarr/includes/lidarr.rc
Normal file
@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: lidarr
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf to enable lidarr:
|
||||
# lidarr_enable="YES"
|
||||
|
||||
. /etc/rc.subr
|
||||
name=lidarr
|
||||
rcvar=${name}_enable
|
||||
load_rc_config $name
|
||||
|
||||
: ${lidarr_enable="NO"}
|
||||
: ${lidarr_user:="lidarr"}
|
||||
: ${lidarr_group:="lidarr"}
|
||||
: ${lidarr_data_dir:="/config"}
|
||||
|
||||
pidfile="${lidarr_data_dir}/lidarr.pid"
|
||||
command="/usr/sbin/daemon"
|
||||
procname="/usr/local/bin/mono"
|
||||
command_args="-f ${procname} /usr/local/share/Lidarr/Lidarr.exe -- data=${lidarr_data_dir} --nobrowser"
|
||||
|
||||
start_precmd=lidarr_precmd
|
||||
lidarr_precmd() {
|
||||
if [ ! -d ${lidarr_data_dir} ]; then
|
||||
install -d -o ${lidarr_user} -g ${lidarr_group} ${lidarr_data_dir}
|
||||
fi
|
||||
|
||||
export XDG_CONFIG_HOME=${lidarr_data_dir}
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
25
jailman/blueprints/lidarr/install.sh
Normal file
25
jailman/blueprints/lidarr/install.sh
Normal file
@ -0,0 +1,25 @@
|
||||
#!/usr/local/bin/bash
|
||||
# This file contains the install script for lidarr
|
||||
|
||||
# Check if dataset for completed download and it parent dataset exist, create if they do not.
|
||||
# shellcheck disable=SC2154
|
||||
createmount "$1" "${global_dataset_downloads}"
|
||||
createmount "$1" "${global_dataset_downloads}"/complete /mnt/fetched
|
||||
|
||||
# Check if dataset for media library and the dataset for movies exist, create if they do not.
|
||||
# shellcheck disable=SC2154
|
||||
createmount "$1" "${global_dataset_media}"
|
||||
createmount "$1" "${global_dataset_media}"/music /mnt/music
|
||||
|
||||
|
||||
iocage exec "$1" "fetch https://github.com/lidarr/Lidarr/releases/download/v0.7.1.1381/Lidarr.master.0.7.1.1381.linux.tar.gz -o /usr/local/share"
|
||||
iocage exec "$1" "tar -xzvf /usr/local/share/Lidarr.master.0.7.1.1381.linux.tar.gz -C /usr/local/share"
|
||||
iocage exec "$1" "rm /usr/local/share/Lidarr.master.0.7.1.1381.linux.tar.gz"
|
||||
iocage exec "$1" "pw user add lidarr -c lidarr -u 353 -d /nonexistent -s /usr/bin/nologin"
|
||||
iocage exec "$1" chown -R lidarr:lidarr /usr/local/share/Lidarr /config
|
||||
iocage exec "$1" mkdir /usr/local/etc/rc.d
|
||||
# shellcheck disable=SC2154
|
||||
cp "${SCRIPT_DIR}"/blueprints/lidarr/includes/lidarr.rc /mnt/"${global_dataset_iocage}"/jails/"$1"/root/usr/local/etc/rc.d/lidarr
|
||||
iocage exec "$1" chmod u+x /usr/local/etc/rc.d/lidarr
|
||||
iocage exec "$1" sysrc "lidarr_enable=YES"
|
||||
iocage exec "$1" service lidarr start
|
73
jailman/blueprints/lidarr/readme.md
Normal file
73
jailman/blueprints/lidarr/readme.md
Normal file
@ -0,0 +1,73 @@
|
||||
# Lidarr
|
||||
|
||||
## Original README from the lidarr github:
|
||||
|
||||
https://github.com/lidarr/Lidarr
|
||||
|
||||
# Lidarr
|
||||
|
||||
[](https://dev.azure.com/Lidarr/Lidarr/_build/latest?definitionId=1&branchName=develop)
|
||||
[](https://automate.browserstack.com/public-build/Z1I4SVZOMitOdENIMHpkMlN3djJiRVJkTzBpdUJ5Q2ZtWVhnYTFvYS9qcz0tLTM5THJZRkVCZlk0blp5cXFBK1BDYWc9PQ==--67f41b00af03ab78148d3d711f22ca42ab348a52)
|
||||
[](https://github.com/lidarr/Lidarr/wiki/Docker)
|
||||

|
||||
[](#backers) [](#sponsors)
|
||||
|
||||
Lidarr is a music collection manager for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new tracks from your favorite artists and will grab, sort and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available.
|
||||
|
||||
## Major Features Include:
|
||||
|
||||
* Support for major platforms: Windows, Linux, macOS, Raspberry Pi, etc.
|
||||
* Automatically detects new tracks.
|
||||
* Can scan your existing library and download any missing tracks.
|
||||
* Can watch for better quality of the tracks you already have and do an automatic upgrade.
|
||||
* Automatic failed download handling will try another release if one fails
|
||||
* Manual search so you can pick any release or to see why a release was not downloaded automatically
|
||||
* Fully configurable track renaming
|
||||
* Full integration with SABnzbd and NZBGet
|
||||
* Full integration with Kodi, Plex (notification, library update, metadata)
|
||||
* Full support for specials and multi-album releases
|
||||
* And a beautiful UI
|
||||
|
||||
## Feature Requests
|
||||
|
||||
[](http://feathub.com/lidarr/Lidarr)
|
||||
|
||||
## Support
|
||||
|
||||
[](https://discord.gg/8Y7rDc9)
|
||||
[](https://www.reddit.com/r/lidarr)
|
||||
[](https://github.com/Lidarr/Lidarr/issues)
|
||||
[](https://github.com/Lidarr/Lidarr/wiki)
|
||||
|
||||
## Contributors
|
||||
|
||||
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
|
||||
<a href="https://github.com/lidarr/Lidarr/graphs/contributors"><img src="https://opencollective.com/lidarr/contributors.svg?width=890&button=false" /></a>
|
||||
|
||||
|
||||
## Backers
|
||||
|
||||
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/lidarr#backer)]
|
||||
|
||||
<a href="https://opencollective.com/lidarr#backers" target="_blank"><img src="https://opencollective.com/lidarr/backers.svg?width=890"></a>
|
||||
|
||||
|
||||
## Sponsors
|
||||
|
||||
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/lidarr#sponsor)]
|
||||
|
||||
<a href="https://opencollective.com/lidarr/sponsor/0/website" target="_blank"><img src="https://opencollective.com/lidarr/sponsor/0/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/lidarr/sponsor/1/website" target="_blank"><img src="https://opencollective.com/lidarr/sponsor/1/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/lidarr/sponsor/2/website" target="_blank"><img src="https://opencollective.com/lidarr/sponsor/2/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/lidarr/sponsor/3/website" target="_blank"><img src="https://opencollective.com/lidarr/sponsor/3/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/lidarr/sponsor/4/website" target="_blank"><img src="https://opencollective.com/lidarr/sponsor/4/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/lidarr/sponsor/5/website" target="_blank"><img src="https://opencollective.com/lidarr/sponsor/5/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/lidarr/sponsor/6/website" target="_blank"><img src="https://opencollective.com/lidarr/sponsor/6/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/lidarr/sponsor/7/website" target="_blank"><img src="https://opencollective.com/lidarr/sponsor/7/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/lidarr/sponsor/8/website" target="_blank"><img src="https://opencollective.com/lidarr/sponsor/8/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/lidarr/sponsor/9/website" target="_blank"><img src="https://opencollective.com/lidarr/sponsor/9/avatar.svg"></a>
|
||||
|
||||
### License
|
||||
|
||||
* [GNU GPL v3](http://www.gnu.org/licenses/gpl.html)
|
||||
* Copyright 2010-2019
|
10
jailman/blueprints/lidarr/update.sh
Normal file
10
jailman/blueprints/lidarr/update.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/usr/local/bin/bash
|
||||
# This file contains the update script for lidarr
|
||||
|
||||
iocage exec "$1" service lidarr stop
|
||||
#TODO insert code to update lidarr itself here
|
||||
iocage exec "$1" chown -R lidarr:lidarr /usr/local/share/lidarr /config
|
||||
# shellcheck disable=SC2154
|
||||
cp "${SCRIPT_DIR}"/blueprints/lidarr/includes/lidarr.rc /mnt/"${global_dataset_iocage}"/jails/"$1"/root/usr/local/etc/rc.d/lidarr
|
||||
iocage exec "$1" chmod u+x /usr/local/etc/rc.d/lidarr
|
||||
iocage exec "$1" service lidarr restart
|
Reference in New Issue
Block a user