瀏覽代碼

Fix guix systemd daemon

Bob Mottram 7 年之前
父節點
當前提交
e8aa014c6c
共有 1 個檔案被更改,包括 4 行新增3 行删除
  1. 4
    3
      src/freedombone-utils-guile

+ 4
- 3
src/freedombone-utils-guile 查看文件

195
                 guixbuilder$i;
195
                 guixbuilder$i;
196
     done
196
     done
197
 
197
 
198
-    if [ ! -f /root/.guix-profile/lib/systemd/system/guix-daemon.service ]; then
198
+    GUIX_DAEMON=(find $INSTALL_DIR/guix -name guix-daemon.service)
199
+    if [ ! -f $GUIX_DAEMON ]; then
200
+        echo $"$GUIX_DAEMON"
199
         echo $'No guix systemd daemon found'
201
         echo $'No guix systemd daemon found'
200
         exit 78225548
202
         exit 78225548
201
     fi
203
     fi
202
-    cp /root/.guix-profile/lib/systemd/system/guix-daemon.service \
203
-       /etc/systemd/system/
204
+    cp $GUIX_DAEMON /etc/systemd/system/
204
     systemctl enable guix-daemon
205
     systemctl enable guix-daemon
205
     systemctl start guix-daemon
206
     systemctl start guix-daemon
206
 
207