-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjackett_setup.sh
19 lines (14 loc) · 1.16 KB
/
jackett_setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
iocage create -n "__JACKETT_JAIL__" -r __IOCAGE_RELEASE__ ip4_addr="__DEFAULT_INTERFACE__|__JACKETT_IP__/__DEFAULT_CIDR__" defaultrouter="__DEFAULT_ROUTER__" vnet="on" allow_raw_sockets="1" boot="on"
# Update to Latest Repo
iocage exec __JACKETT_JAIL__ "mkdir -p /usr/local/etc/pkg/repos"
iocage exec __JACKETT_JAIL__ "echo -e 'FreeBSD: { url: \"pkg+http://pkg.FreeBSD.org/\${ABI}/latest\" }' > /usr/local/etc/pkg/repos/FreeBSD.conf"
iocage exec __JACKETT_JAIL__ pkg install -y mono curl
iocage exec __JACKETT_JAIL__ mkdir -p /config
iocage fstab -a __JACKETT_JAIL__ __APPS_ROOT__/jackett /config nullfs rw 0 0
iocage exec __JACKETT_JAIL__ ln -s /usr/local/bin/mono /usr/bin/mono
iocage exec __JACKETT_JAIL__ "fetch __JACKETT_FETCH_URL__ -o /usr/local/share"
iocage exec __JACKETT_JAIL__ "tar -xzvf __JACKETT_FETCH_PATH__ -C /usr/local/share"
iocage exec __JACKETT_JAIL__ rm __JACKETT_FETCH_PATH__
iocage exec __JACKETT_JAIL__ "pw user add __JACKETT_USER__ -c jackett -u __JACKETT_UID__ -d /nonexistent -s /usr/bin/nologin"
iocage exec __JACKETT_JAIL__ chown -R __JACKETT_USER__:__JACKETT_GROUP__ /usr/local/share/Jackett /config
iocage exec __JACKETT_JAIL__ mkdir /usr/local/etc/rc.d