From 4a158c4fa6dfd467254380b0f9ba2911d84be29d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andrew=20Lee=20=28=E6=9D=8E=E5=81=A5=E7=A7=8B=29?=
 <ajqlee@debian.org>
Date: Thu, 26 Jan 2017 01:15:33 +0800
Subject: [PATCH] Fixed obs-worker failed to start issue. (Closes: #851761)

---
 debian/obs-worker.dir               | 1 +
 debian/obs-worker.obsworker.default | 2 +-
 debian/obs-worker.obsworker.init    | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 100644 debian/obs-worker.dir

diff --git a/debian/obs-worker.dir b/debian/obs-worker.dir
new file mode 100644
index 0000000000..b75510ce9c
--- /dev/null
+++ b/debian/obs-worker.dir
@@ -0,0 +1 @@
+/run/obs
diff --git a/debian/obs-worker.obsworker.default b/debian/obs-worker.obsworker.default
index dd5f4bd671..ed7d4d73d3 100644
--- a/debian/obs-worker.obsworker.default
+++ b/debian/obs-worker.obsworker.default
@@ -78,7 +78,7 @@ OBS_WORKER_TEST_MODE=""
 #
 # This is /run by default
 #
-OBS_RUN_DIR="/srv/obs/run"
+OBS_RUN_DIR="/run/obs"
 
 ## Path:        Applications/OBS
 ## Description: The base for OBS logging directory
diff --git a/debian/obs-worker.obsworker.init b/debian/obs-worker.obsworker.init
index cbb5b4405c..1006e01bfd 100755
--- a/debian/obs-worker.obsworker.init
+++ b/debian/obs-worker.obsworker.init
@@ -212,7 +212,7 @@ case "$1" in
     start)
         # reset screenrc
         mkdir -p "$obsrundir"
-        chown obsrun:obsrun "$obsrundir"
+        chown obsworker:obsworker "$obsrundir"
         rm -rf "$workerdir"
         mkdir -p "$workerbootdir"
         echo "zombie on"       > $screenrc
-- 
GitLab