From 14636218a1ca18cf66c507d39c6784a6b28f7528 Mon Sep 17 00:00:00 2001 From: krebs Date: Sat, 24 Sep 2011 20:33:21 -0400 Subject: punani: bugfix --- icecrab/icecast2 | 19 ------------------- icecrab/icecast2.conf | 19 +++++++++++++++++++ punani/bin/punani | 3 ++- 3 files changed, 21 insertions(+), 20 deletions(-) delete mode 100644 icecrab/icecast2 create mode 100644 icecrab/icecast2.conf diff --git a/icecrab/icecast2 b/icecrab/icecast2 deleted file mode 100644 index 3a2521ff..00000000 --- a/icecrab/icecast2 +++ /dev/null @@ -1,19 +0,0 @@ -# Defaults for icecast2 initscript -# sourced by /etc/init.d/icecast2 -# installed at /etc/default/icecast2 by the maintainer scripts - -# -# This is a POSIX shell fragment -# - -# Full path to the server configuration file -CONFIGFILE="/etc/icecast2/icecast.xml" - -# Name or ID of the user and group the daemon should run under -USERID=icecast2 -GROUPID=icecast - -# Edit /etc/icecast2/icecast.xml and change at least the passwords. -# Change this to true when done to enable the init.d script -ENABLE=true - diff --git a/icecrab/icecast2.conf b/icecrab/icecast2.conf new file mode 100644 index 00000000..3a2521ff --- /dev/null +++ b/icecrab/icecast2.conf @@ -0,0 +1,19 @@ +# Defaults for icecast2 initscript +# sourced by /etc/init.d/icecast2 +# installed at /etc/default/icecast2 by the maintainer scripts + +# +# This is a POSIX shell fragment +# + +# Full path to the server configuration file +CONFIGFILE="/etc/icecast2/icecast.xml" + +# Name or ID of the user and group the daemon should run under +USERID=icecast2 +GROUPID=icecast + +# Edit /etc/icecast2/icecast.xml and change at least the passwords. +# Change this to true when done to enable the init.d script +ENABLE=true + diff --git a/punani/bin/punani b/punani/bin/punani index 34d5bcbf..954eca43 100755 --- a/punani/bin/punani +++ b/punani/bin/punani @@ -115,7 +115,7 @@ handle_system () { # apt-file () { echo $@; } # apt-get () { echo $@; } #fi - if [ `which apt-file` ]; then + if ! which apt-file; then echo "installing dependencies: apt-file" apt-get install --yes apt-file echo "update the apt-file tool" @@ -133,6 +133,7 @@ handle_system () { fi } punani_Engineer_insert() { + echo "trying to install $1" if apt-get install `apt-file search -l -x /$1\$`;then echo "++ finished" else -- cgit v1.2.3