From 4dc89c9456845cb716547bb136e9997608337b21 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 11 Oct 2014 12:49:00 +0200 Subject: [PATCH] improve debian/systemd build --- vm/firstboot.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vm/firstboot.sh b/vm/firstboot.sh index 532c998a..78677860 100755 --- a/vm/firstboot.sh +++ b/vm/firstboot.sh @@ -10,7 +10,7 @@ export DEBIAN_FRONTEND=noninteractive if [ "$ID" == "debian" ]; then SYSTEMD="yes" echo "deb http://ppa.launchpad.net/j/pandora/ubuntu trusty main" > /etc/apt/sources.list.d/j-pandora.list - gpg --keyserver subkeys.pgp.net --recv-keys 01975EF3 + gpg --keyserver keyserver.ubuntu.com --recv-keys 01975EF3 gpg -a --export 01975EF3 | apt-key add - else SYSTEMD="no" @@ -141,10 +141,11 @@ $MANAGE collectstatic -l --noinput if [ "$SYSTEMD" == "yes" ]; then cp /srv/pandora/etc/systemd/*.service /lib/systemd/system/ - cp /srv/pandora/etc/tmpfiles.d/*.conf /usr/lib/tmpfiles.d/ + cp /srv/pandora/etc/tmpfiles.d/pandora.conf /usr/lib/tmpfiles.d/ if [ "$LXC" == "yes" ]; then sed -i s/127.0.0.1/0.0.0.0/g /lib/systemd/system/pandora.service fi + systemd-tmpfiles --create /usr/lib/tmpfiles.d/pandora.conf >/dev/null || true for service in pandora pandora-tasks pandora-encoding pandora-cron; do systemctl enable ${service}.service done