From: Richard Kettlewell Date: Mon, 31 Dec 2007 14:54:12 +0000 (+0000) Subject: remove obsolete debian web config stuff X-Git-Tag: 3.0~115 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/01f400edd61968a9e7df3d1aff11bc67039317a2 remove obsolete debian web config stuff --- diff --git a/README b/README index 8692efa..9d80eb4 100644 --- a/README +++ b/README @@ -150,8 +150,8 @@ skip steps 1 to 6 and configure it via debconf. This is strongly recommended! start up correctly there should be an error message. Correct the problem and try again. -7. After a minute it should start to play something. Try scratching it (as - root): +7. After a short while it should start to play something. Try scratching it + (as root): disorder scratch diff --git a/debian/config.disorder-server b/debian/config.disorder-server index 3389538..11bec83 100755 --- a/debian/config.disorder-server +++ b/debian/config.disorder-server @@ -26,7 +26,6 @@ db_input high disorder/roots || true db_input high disorder/encoding || true db_input high disorder/port || true db_input medium disorder/scratches || true -db_input medium disorder/server-name || true db_go || true db_get disorder/roots || true @@ -35,8 +34,6 @@ db_get disorder/scratches || true scratches="$RET" db_get disorder/encoding || true encoding="$RET" -db_get disorder/server-name || true -server_name="$RET" db_get disorder/port || true port="$RET" @@ -56,9 +53,6 @@ echo "# Scratches" >> /etc/disorder/conf.debconf.new for s in $scratches; do echo "scratch $s" >> /etc/disorder/conf.debconf.new done -echo >> /etc/disorder/conf.debconf.new -echo "# Canonical URL of web interface" >> /etc/disorder/conf.debconf.new -echo "url http://$server_name/cgi-bin/disorder/disorder" >> /etc/disorder/conf.debconf.new if test "$port" != none && test "$port" != ""; then echo >> /etc/disorder/conf.debconf.new echo "# Listen for remote clients" >> /etc/disorder/conf.debconf.new diff --git a/debian/control b/debian/control index 45ce7e7..a1523aa 100644 --- a/debian/control +++ b/debian/control @@ -26,7 +26,7 @@ Package: disorder-server Architecture: any Section: sound Priority: extra -Depends: disorder,httpd-cgi,pwgen,sox,debconf,${shlibs:Depends} +Depends: disorder,httpd-cgi,sox,debconf,${shlibs:Depends} Suggests: disorder-playrtp,disobedience Description: Play random or selected digital audio files continuously DisOrder is a software jukebox. It can play OGG, MP3, WAV and FLAC files, diff --git a/debian/postinst.disorder-server b/debian/postinst.disorder-server index 53402b5..4ee3e0a 100755 --- a/debian/postinst.disorder-server +++ b/debian/postinst.disorder-server @@ -43,43 +43,6 @@ configure ) else add_jukebox_user fi - if test ! -f /etc/disorder/config.private; then - rootpw=`pwgen 16 1` - webpw=`pwgen 16 1` - if test -z "$rootpw" || test -z "$webpw"; then - # We used to ignore the exit status of pwgen due to a bug in an old - # version of Debian. That bug seems to be gone, but this check is - # harmless and could catch future bugs. - echo "$0: pwgen failed" 1>&2 - exit 1 - fi - # We set the umask so that private files aren't transiently world-readable - u=`umask` - umask 077 - - echo allow root "$rootpw" > /etc/disorder/config.private.new - echo allow www-data "$webpw" >> /etc/disorder/config.private.new - chgrp jukebox /etc/disorder/config.private.new - chmod 640 /etc/disorder/config.private.new - mv /etc/disorder/config.private.new /etc/disorder/config.private - - if test ! -f /etc/disorder/config.www-data; then - echo password "$webpw" > /etc/disorder/config.www-data.new - chgrp www-data /etc/disorder/config.www-data.new - chmod 640 /etc/disorder/config.www-data.new - mv /etc/disorder/config.www-data.new /etc/disorder/config.www-data - fi - umask $u - fi - - if test ! -f /etc/disorder/http.users; then - u=`umask` - umask 077 - touch /etc/disorder/http.users - chgrp www-data /etc/disorder/http.users - chmod 640 /etc/disorder/http.users - umask $u - fi chown jukebox:jukebox /var/lib/disorder configure_init_d restart_server diff --git a/debian/templates.disorder-server b/debian/templates.disorder-server index d2dfe97..b1a14c4 100644 --- a/debian/templates.disorder-server +++ b/debian/templates.disorder-server @@ -20,12 +20,6 @@ Description: Scratch files by spaces. Leave this blank if you don't want any scratch sounds. All filenames should be absolute path names. -Template: disorder/server-name -Type: string -Default: localhost -Description: Web server hostname - Enter the hostname that the web interface will appear under. - Template: disorder/port Type: string Default: none