From a071844fd9e603f057b9db4eb0d63b2b323f88fa Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 26 May 2010 08:33:24 +0000 Subject: removed obsolete files --- setup-sendbug.in | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100755 setup-sendbug.in (limited to 'setup-sendbug.in') diff --git a/setup-sendbug.in b/setup-sendbug.in deleted file mode 100755 index 9ce94d8..0000000 --- a/setup-sendbug.in +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -PREFIX= -. "$PREFIX/lib/libalpine.sh" - -conf="$ROOT/etc/sendbug/sendbug.conf" - -cfgval() { - awk -F= "/^$1/ {print \$2}" "$ROOT/etc/ssmtp/ssmtp.conf" 2>/dev/null -} - -email=$(awk -F= '/^mailfrom/ {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 ^mailfrom "$conf" > /dev/null 2>&1; then - sed -i "s/^mailfrom.*/mailfrom=$email/" "$conf" -else - mkdir -p $(dirname "$conf") - echo "mailfrom=$email" >> "$conf" -fi - -setup-mta - -echo "" -echo "Please run 'sendbug' to submit problem reports" - -- cgit v1.2.3