diff --git a/FreeBSD.conf b/FreeBSD.conf new file mode 100644 index 00000000..7c0472ec --- /dev/null +++ b/FreeBSD.conf @@ -0,0 +1,3 @@ +FreeBSD: { + url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" +} \ No newline at end of file diff --git a/plex.sh b/plex.sh index 9c426637..16c01ac8 100755 --- a/plex.sh +++ b/plex.sh @@ -1,8 +1,10 @@ #!/bin/sh -echo '{"pkgs":["plexmediaserver-plexpass","ca_root_nss"]}' > /tmp/pkg.json +echo '{"pkgs":["plexmediaserver-plexpass","ca_root_nss","nano"]}' > /tmp/pkg.json iocage create -n "plex" -p /tmp/pkg.json -r 11.3-RELEASE ip4_addr="vnet0|192.168.10.23/24" defaultrouter="192.168.10.1" vnet="on" allow_raw_sockets="1" boot="on" rm /tmp/pkg.json +iocage exec plex "mkdir -p /usr/local/etc/pkg/repos" +cp ./FreeBSD.conf /mnt/tank/iocage/jails/plex/root/usr/local/etc/pkg/repos/FreeBSD.conf iocage exec plex mkdir -p /config iocage exec plex mkdir -p /mnt/library iocage fstab -a plex /mnt/tank/apps/plex /config nullfs rw 0 0 @@ -10,4 +12,6 @@ iocage fstab -a plex /mnt/tank/Library /mnt/library nullfs ro 0 0 iocage exec plex chown -R plex:plex /config iocage exec plex sysrc "plexmediaserver_plexpass_enable=YES" iocage exec plex sysrc plexmediaserver_plexpass_support_path="/config" +iocage exec plex pkg update +iocage exec plex pkg upgrade iocage exec plex service plexmediaserver_plexpass start \ No newline at end of file