summaryrefslogtreecommitdiffstats
path: root/setup-problem-reporting
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-05-26 08:33:24 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-05-26 08:33:24 +0000
commita071844fd9e603f057b9db4eb0d63b2b323f88fa (patch)
tree43cf5e0d0f784881db8b13d1c4709f5fc03cbf09 /setup-problem-reporting
parent99b3532d5ccda2db18ffd00ee48b428dce541838 (diff)
downloadalpine-conf-a071844fd9e603f057b9db4eb0d63b2b323f88fa.tar.bz2
alpine-conf-a071844fd9e603f057b9db4eb0d63b2b323f88fa.tar.xz
removed obsolete files
Diffstat (limited to 'setup-problem-reporting')
-rwxr-xr-xsetup-problem-reporting40
1 files changed, 0 insertions, 40 deletions
diff --git a/setup-problem-reporting b/setup-problem-reporting
deleted file mode 100755
index 0b24a30..0000000
--- a/setup-problem-reporting
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-PREFIX=
-. "$PREFIX/lib/libalpine.sh"
-
-conf="$ROOT/etc/gnats/send-pr.conf"
-
-cfgval() {
- awk -F= "/^$1/ {print \$2}" "$ROOT/etc/ssmtp/ssmtp.conf" 2>/dev/null
-}
-
-email=$(awk -F= '/^FROM/ {print $2}' "$conf" 2>/dev/null)
-
-if [ -z "$email" ] ; then
- hostname=$(cfgval hostname)
- if [ -z "$hostname" ]; then
- hostname=$(hostname -f 2>/dev/null || cat /etc/hostname)
- fi
-else
- hostname=$(hostname -f 2>/dev/null || cat /etc/hostname)
-fi
-domain=$(hostname -d $hostname 2>/dev/null)
-if [ -n "$hostname" -a -z "$email" ] ; then
- email=$(whoami)@$hostname
-fi
-
-echon "Sender email address for problem reports? [$email] "
-default_read email $email
-
-if grep ^FROM "$conf" > /dev/null ; then
- sed -i "s/FROM.*/FROM=$email/" "$conf"
-else
- echo "FROM=$email" >> "$conf"
-fi
-
-setup-mta
-
-echo ""
-echo "Please run 'send-pr' to submit problem reports"
-