summarylogtreecommitdiffstats
path: root/res_and_conf_dirs.patch
blob: a7db5d9efc35bd90c7e6610264bd24b978d9d2d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff -Naupr xupnpd_orig/src/main.cpp xupnpd/src/main.cpp
--- xupnpd_orig/src/main.cpp	2015-08-01 14:24:27.000000000 +0600
+++ xupnpd/src/main.cpp	2015-08-01 14:25:51.843062978 +0600
@@ -43,7 +43,7 @@ int main(int argc,char** argv)
         if(fp)
             fclose(fp);
         else
-            rc=chdir("/usr/share/xupnpd/");
+            rc=chdir("/var/lib/xupnpd/");
     }
 
     lua_State* L=lua_open();
diff -Naupr xupnpd_orig/src/xupnpd.lua xupnpd/src/xupnpd.lua
--- xupnpd_orig/src/xupnpd.lua	2015-08-01 14:24:27.000000000 +0600
+++ xupnpd/src/xupnpd.lua	2015-08-01 14:26:57.139964797 +0600
@@ -102,15 +102,15 @@ feeds=
 -- log ident, pid file end www root
 cfg.version='1.033'
 cfg.log_ident=arg[1] or 'xupnpd'
-cfg.pid_file='/var/run/'..cfg.log_ident..'.pid'
-cfg.www_root='./www/'
+cfg.pid_file='/run/xupnpd/xupnpd.pid'
+cfg.www_root='/usr/share/xupnpd/www/'
 cfg.tmp_path='/tmp/'
-cfg.plugin_path='./plugins/'
+cfg.plugin_path='/usr/share/xupnpd/plugins/'
 cfg.config_path='./config/'
 cfg.playlists_path='./playlists/'
 --cfg.feeds_path='/tmp/xupnpd-feeds/'
-cfg.ui_path='./ui/'
+cfg.ui_path='/usr/share/xupnpd/ui/'
 cfg.drive=''                    -- reload playlists only if drive state=active/idle, example: cfg.drive='/dev/sda'
-cfg.profiles='./profiles/'      -- device profiles feature
+cfg.profiles='/usr/share/xupnpd/profiles/'      -- device profiles feature
 
 dofile('xupnpd_main.lua')