Changed jail creation to always create base jails (#57)
This commit is contained in:
parent
b24a7c153a
commit
520597485a
@ -68,13 +68,13 @@ else
|
||||
echo '{"pkgs":['${pkgs}']}' > /tmp/pkg.json
|
||||
if [ "${setdhcp}" == "on" ]
|
||||
then
|
||||
if ! iocage create -n "${1}" -p /tmp/pkg.json -r ${global_jails_version} interfaces="${jailinterfaces}" dhcp="on" vnet="on" allow_raw_sockets="1" boot="on"
|
||||
if ! iocage create -n "${1}" -p /tmp/pkg.json -r ${global_jails_version} interfaces="${jailinterfaces}" dhcp="on" vnet="on" allow_raw_sockets="1" boot="on" -b
|
||||
then
|
||||
echo "Failed to create jail"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
if ! iocage create -n "${1}" -p /tmp/pkg.json -r ${global_jails_version} interfaces="${jailinterfaces}" ip4_addr="vnet0|${!jailip4}" defaultrouter="${!jailgateway}" vnet="on" allow_raw_sockets="1" boot="on"
|
||||
if ! iocage create -n "${1}" -p /tmp/pkg.json -r ${global_jails_version} interfaces="${jailinterfaces}" ip4_addr="vnet0|${!jailip4}" defaultrouter="${!jailgateway}" vnet="on" allow_raw_sockets="1" boot="on" -b
|
||||
then
|
||||
echo "Failed to create jail"
|
||||
exit 1
|
||||
|
@ -1,7 +1,6 @@
|
||||
#!/usr/local/bin/bash
|
||||
# This file contains the install script for jackett
|
||||
|
||||
iocage exec jackett ln -s /usr/local/bin/mono /usr/bin/mono
|
||||
iocage exec jackett "fetch https://github.com/Jackett/Jackett/releases/download/v0.11.502/Jackett.Binaries.Mono.tar.gz -o /usr/local/share"
|
||||
iocage exec jackett "tar -xzvf /usr/local/share/Jackett.Binaries.Mono.tar.gz -C /usr/local/share"
|
||||
iocage exec jackett rm /usr/local/share/Jackett.Binaries.Mono.tar.gz
|
||||
|
@ -10,7 +10,6 @@ createmount lidarr ${global_dataset_media}
|
||||
createmount lidarr ${global_dataset_media}/music /mnt/music
|
||||
|
||||
|
||||
iocage exec lidarr ln -s /usr/local/bin/mono /usr/bin/mono
|
||||
iocage exec lidarr "fetch https://github.com/lidarr/Lidarr/releases/download/v0.2.0.371/Lidarr.develop.0.2.0.371.linux.tar.gz -o /usr/local/share"
|
||||
iocage exec lidarr "tar -xzvf /usr/local/share/Lidarr.develop.0.2.0.371.linux.tar.gz -C /usr/local/share"
|
||||
iocage exec lidarr "rm /usr/local/share/Lidarr.develop.0.2.0.371.linux.tar.gz"
|
||||
@ -20,4 +19,4 @@ iocage exec lidarr mkdir /usr/local/etc/rc.d
|
||||
cp ${SCRIPT_DIR}/jails/lidarr/includes/lidarr.rc /mnt/${global_dataset_iocage}/jails/lidarr/root/usr/local/etc/rc.d/lidarr
|
||||
iocage exec lidarr chmod u+x /usr/local/etc/rc.d/lidarr
|
||||
iocage exec lidarr sysrc "lidarr_enable=YES"
|
||||
iocage exec lidarr service lidarr start
|
||||
iocage exec lidarr service lidarr start
|
||||
|
@ -9,7 +9,6 @@ createmount radarr ${global_dataset_downloads}/complete /mnt/fetched
|
||||
createmount radarr ${global_dataset_media}
|
||||
createmount radarr ${global_dataset_media}/movies /mnt/movies
|
||||
|
||||
iocage exec radarr ln -s /usr/local/bin/mono /usr/bin/mono
|
||||
iocage exec radarr "fetch https://github.com/Radarr/Radarr/releases/download/v0.2.0.1480/Radarr.develop.0.2.0.1480.linux.tar.gz -o /usr/local/share"
|
||||
iocage exec radarr "tar -xzvf /usr/local/share/Radarr.develop.0.2.0.1480.linux.tar.gz -C /usr/local/share"
|
||||
iocage exec radarr rm /usr/local/share/Radarr.develop.0.2.0.1480.linux.tar.gz
|
||||
@ -19,4 +18,4 @@ iocage exec radarr mkdir /usr/local/etc/rc.d
|
||||
cp ${SCRIPT_DIR}/jails/radarr/includes/radarr.rc /mnt/${global_dataset_iocage}/jails/radarr/root/usr/local/etc/rc.d/radarr
|
||||
iocage exec radarr chmod u+x /usr/local/etc/rc.d/radarr
|
||||
iocage exec radarr sysrc "radarr_enable=YES"
|
||||
iocage exec radarr service radarr restart
|
||||
iocage exec radarr service radarr restart
|
||||
|
@ -9,7 +9,6 @@ createmount sonarr ${global_dataset_downloads}/complete /mnt/fetched
|
||||
createmount sonarr ${global_dataset_media}
|
||||
createmount sonarr ${global_dataset_media}/shows /mnt/shows
|
||||
|
||||
iocage exec sonarr ln -s /usr/local/bin/mono /usr/bin/mono
|
||||
iocage exec sonarr "fetch http://download.sonarr.tv/v2/master/mono/NzbDrone.master.tar.gz -o /usr/local/share"
|
||||
iocage exec sonarr "tar -xzvf /usr/local/share/NzbDrone.master.tar.gz -C /usr/local/share"
|
||||
iocage exec sonarr rm /usr/local/share/NzbDrone.master.tar.gz
|
||||
@ -19,4 +18,4 @@ iocage exec sonarr mkdir /usr/local/etc/rc.d
|
||||
cp ${SCRIPT_DIR}/jails/sonarr/includes/sonarr.rc /mnt/${global_dataset_iocage}/jails/sonarr/root/usr/local/etc/rc.d/sonarr
|
||||
iocage exec sonarr chmod u+x /usr/local/etc/rc.d/sonarr
|
||||
iocage exec sonarr sysrc "sonarr_enable=YES"
|
||||
iocage exec sonarr service sonarr restart
|
||||
iocage exec sonarr service sonarr restart
|
||||
|
Loading…
Reference in New Issue
Block a user