Skip to content

Commit

Permalink
Fix Icecast for DSM 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
publicarray committed Feb 4, 2021
1 parent 6dd0edd commit 9dd89e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spk/icecast/src/icecast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,14 @@

<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/local/icecast/share/icecast</basedir>
<basedir>/var/packages/icecast/target/share/icecast</basedir>

<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/usr/local/icecast/var/log</logdir>
<webroot>/usr/local/icecast/share/icecast/web</webroot>
<adminroot>/usr/local/icecast/share/icecast/admin</adminroot>
<pidfile>/usr/local/icecast/var/icecast.pid</pidfile>
<logdir>/var/packages/icecast/var/log</logdir>
<webroot>/var/packages/icecast/target/share/icecast/web</webroot>
<adminroot>/var/packages/icecast/target/share/icecast/admin</adminroot>
<pidfile>/var/packages/icecast/var/icecast.pid</pidfile>

<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
Expand All @@ -214,7 +214,7 @@
<alias source="/" destination="/status.xsl"/>
<!-- The certificate file needs to contain both public and private part.
Both should be PEM encoded.
<ssl-certificate>/usr/local/share/icecast/icecast.pem</ssl-certificate>
<ssl-certificate>/var/packages/icecast/var/icecast.pem</ssl-certificate>
-->
</paths>

Expand Down
3 changes: 3 additions & 0 deletions spk/icecast/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ service_postinst ()
# Edit the configuration according to the wizard
sed -i -e "s/@username@/${wizard_ic_username:=admin}/g" ${CFG_FILE}
sed -i -e "s/@password@/${wizard_ic_password:=changepassword}/g" ${CFG_FILE}
if [ $SYNOPKG_DSM_VERSION_MAJOR -lt 7 ]; then
sed -i -e "s|/var/packages/icecast/var|/var/packages/icecast/target/var|g" ${CFG_FILE}
fi
}


0 comments on commit 9dd89e3

Please sign in to comment.