summarylogtreecommitdiffstats
path: root/fix_pids-folder-out-of-seafile-data.diff
blob: 05e31cd9c945ab77e74c28a5e0b47429a43f9e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/controller/seafile-controller.c b/controller/seafile-controller.c
index 9439bcd..116c77e 100644
--- a/controller/seafile-controller.c
+++ b/controller/seafile-controller.c
@@ -591,7 +591,7 @@ stop_ccnet_server ()
 static void
 init_pidfile_path (SeafileController *ctl)
 {
-    char *pid_dir = g_build_filename (topdir, "pids", NULL);
+    char *pid_dir = g_build_filename (ctl->seafile_dir, "pids", NULL);
     if (!g_file_test(pid_dir, G_FILE_TEST_EXISTS)) {
         if (g_mkdir(pid_dir, 0777) < 0) {
             seaf_warning("failed to create pid dir %s: %s", pid_dir, strerror(errno));