summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordennis <dennis@mrslave>2020-03-15 23:49:26 +0100
committerdennis <dennis@mrslave>2020-03-15 23:49:26 +0100
commitc7e1cfcaa8a80bcd94bd16fbd102ac154143d756 (patch)
treeba3cef40ae4a0f25e833bc7b73df122ff953f98a
parentFixing type (diff)
downloadmkosi-plex-c7e1cfcaa8a80bcd94bd16fbd102ac154143d756.tar.gz
updating mirror, cleaning up after plex changed how they handle service-files, and cleaning up after they decided to handle udev differently. should now build again
-rw-r--r--mkosi.default3
l---------mkosi.extra/etc/systemd/system/multi-user.target.wants/plexmediaserver.service1
-rwxr-xr-xmkosi.postinst8
3 files changed, 7 insertions, 5 deletions
diff --git a/mkosi.default b/mkosi.default
index 31f8074..db4d6ea 100644
--- a/mkosi.default
+++ b/mkosi.default
@@ -2,7 +2,7 @@
Distribution=ubuntu
Release=bionic
Repositories=main,universe
-Mirror=http://no.archive.ubuntu.com
+Mirror=http://no.archive.ubuntu.com/ubuntu
[Output]
Format=directory
@@ -16,4 +16,3 @@ Packages=
ca-certificates
curl
gnupg
- udev
diff --git a/mkosi.extra/etc/systemd/system/multi-user.target.wants/plexmediaserver.service b/mkosi.extra/etc/systemd/system/multi-user.target.wants/plexmediaserver.service
deleted file mode 120000
index 7dd4439..0000000
--- a/mkosi.extra/etc/systemd/system/multi-user.target.wants/plexmediaserver.service
+++ /dev/null
@@ -1 +0,0 @@
-/lib/systemd/system/plexmediaserver.service \ No newline at end of file
diff --git a/mkosi.postinst b/mkosi.postinst
index 41673b5..176dce2 100755
--- a/mkosi.postinst
+++ b/mkosi.postinst
@@ -10,8 +10,8 @@ systemctl mask motd-news.timer
# Add update- and security-repositories, and perform upgrade
RELEASE=$(cat /etc/lsb-release | grep DISTRIB_CODENAME | awk -F'=' '{print $2}')
-echo "deb http://no.archive.ubuntu.com ${RELEASE}-security main universe" >> /etc/apt/sources.list
-echo "deb http://no.archive.ubuntu.com ${RELEASE}-updates main universe" >> /etc/apt/sources.list
+echo "deb http://no.archive.ubuntu.com/ubuntu ${RELEASE}-security main universe" >> /etc/apt/sources.list
+echo "deb http://no.archive.ubuntu.com/ubuntu ${RELEASE}-updates main universe" >> /etc/apt/sources.list
apt update && apt --yes full-upgrade && apt --yes autoremove
# ples
@@ -33,3 +33,7 @@ apt install --yes plexmediaserver
rm /etc/apt/sources.list.d/plex.list
apt update
+
+cp /usr/lib/plexmediaserver/lib/plexmediaserver.service /etc/systemd/system/
+
+systemctl enable plexmediaserver.service