1 |
unnilennium |
1.1 |
diff -Nur smeserver-subsonic-4.8-old/createlinks smeserver-subsonic-4.8/createlinks |
2 |
|
|
--- smeserver-subsonic-4.8-old/createlinks 2013-10-26 20:03:47.000000000 -0400 |
3 |
|
|
+++ smeserver-subsonic-4.8/createlinks 2013-10-26 20:05:17.000000000 -0400 |
4 |
|
|
@@ -4,10 +4,8 @@ |
5 |
|
|
|
6 |
|
|
#################### |
7 |
|
|
# links to add |
8 |
|
|
- safe_symlink("/etc/e-smith/templates-default/template-begin-shell", "root/etc/e-smith/templates/usr/share/subsonic/subsonic.sh/template-begin"); |
9 |
|
|
|
10 |
|
|
# templates to expand |
11 |
|
|
- templates2events( "/usr/share/subsonic/subsonic.sh" , qw( conf-subsonic bootstrap-console-save post-upgrade)); |
12 |
|
|
templates2events( "/etc/sysconfig/subsonic" , qw( conf-subsonic bootstrap-console-save post-upgrade)); |
13 |
|
|
templates2events("/etc/httpd/conf/httpd.conf", "conf-subsonic"); |
14 |
|
|
|
15 |
|
|
diff -Nur smeserver-subsonic-4.8-old/root/etc/e-smith/templates/etc/sysconfig/subsonic/40subsonic smeserver-subsonic-4.8/root/etc/e-smith/templates/etc/sysconfig/subsonic/40subsonic |
16 |
|
|
--- smeserver-subsonic-4.8-old/root/etc/e-smith/templates/etc/sysconfig/subsonic/40subsonic 2013-10-26 20:03:47.000000000 -0400 |
17 |
|
|
+++ smeserver-subsonic-4.8/root/etc/e-smith/templates/etc/sysconfig/subsonic/40subsonic 2013-10-26 20:21:43.000000000 -0400 |
18 |
|
|
@@ -30,6 +30,16 @@ |
19 |
|
|
|
20 |
|
|
$OUT .= "--max-memory=$submem --context-path='$subpath'"; |
21 |
|
|
|
22 |
|
|
+$OUT .= " --home='$subhome'" unless $subhome eq "/var/subsonic"; |
23 |
|
|
+$OUT .= " --host='$subhost'" unless $subhost eq "0.0.0.0"; |
24 |
|
|
+$OUT .= " --port='$subport'" unless $subport == "4040"; |
25 |
|
|
+$OUT .= " --https-port='$subhttps_port'" unless $subhttps_port eq "0"; |
26 |
|
|
+$OUT .= " --pidfile='$subpid'" unless $subpid eq ""; |
27 |
|
|
+$OUT .= " --quiet" unless $subquiet eq "0"; |
28 |
|
|
+$OUT .= " --default-music-folder='$submusic'" unless $submusic eq "/var/music"; |
29 |
|
|
+$OUT .= " --default-podcast-folder='$subpod'" unless $subpod eq "/var/music/Podcast"; |
30 |
|
|
+$OUT .= " --default-playlist-folder='$subplay'" unless $subplay eq "/var/music/playlists"; |
31 |
|
|
+ |
32 |
|
|
}" |
33 |
|
|
|
34 |
|
|
|
35 |
|
|
@@ -38,5 +48,5 @@ |
36 |
|
|
# below 1024. Also make sure to grant the user write permissions in |
37 |
|
|
# the music directories, otherwise changing album art and tags will fail. |
38 |
|
|
|
39 |
|
|
-SUBSONIC_USER=root |
40 |
|
|
+SUBSONIC_USER=subsonic |
41 |
|
|
|