summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordennis <dennis@mrslave>2020-04-17 10:42:09 +0200
committerdennis <dennis@mrslave>2020-04-17 10:42:09 +0200
commit72125a5fa758782a87075001105658672bdabb1f (patch)
tree78ffc64ca6c0ea974ab6eafa711f93a4d20e4436
parentnew folder for media (diff)
downloadmkosi-plex-72125a5fa758782a87075001105658672bdabb1f.tar.gz
exchanging apt with apt-get for better script-compatability
-rwxr-xr-xmkosi.postinst8
1 files changed, 4 insertions, 4 deletions
diff --git a/mkosi.postinst b/mkosi.postinst
index 176dce2..35c10b4 100755
--- a/mkosi.postinst
+++ b/mkosi.postinst
@@ -12,7 +12,7 @@ systemctl mask motd-news.timer
RELEASE=$(cat /etc/lsb-release | grep DISTRIB_CODENAME | awk -F'=' '{print $2}')
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
+apt-get update && apt-get --yes full-upgrade && apt-get --yes autoremove
# ples
systemctl enable systemd-networkd
@@ -24,15 +24,15 @@ echo deb https://downloads.plex.tv/repo/deb public main > /etc/apt/sources.list.
curl https://downloads.plex.tv/plex-keys/PlexSign.key | apt-key add -
-apt update
+apt-get update
-apt install --yes plexmediaserver
+apt-get install --yes plexmediaserver
# plex adds its own repo-file, with everything commented out. I guess plex
# wants to do in-app upgrades.
rm /etc/apt/sources.list.d/plex.list
-apt update
+apt-get update
cp /usr/lib/plexmediaserver/lib/plexmediaserver.service /etc/systemd/system/