From e8aa014c6caafd840b13c672c729b207d68e75e7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 26 Aug 2017 18:56:59 +0100 Subject: [PATCH] Fix guix systemd daemon --- src/freedombone-utils-guile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/freedombone-utils-guile b/src/freedombone-utils-guile index 05eafa56..8bdd1347 100755 --- a/src/freedombone-utils-guile +++ b/src/freedombone-utils-guile @@ -195,12 +195,13 @@ function install_guix { guixbuilder$i; done - if [ ! -f /root/.guix-profile/lib/systemd/system/guix-daemon.service ]; then + GUIX_DAEMON=(find $INSTALL_DIR/guix -name guix-daemon.service) + if [ ! -f $GUIX_DAEMON ]; then + echo $"$GUIX_DAEMON" echo $'No guix systemd daemon found' exit 78225548 fi - cp /root/.guix-profile/lib/systemd/system/guix-daemon.service \ - /etc/systemd/system/ + cp $GUIX_DAEMON /etc/systemd/system/ systemctl enable guix-daemon systemctl start guix-daemon