File: script

package info (click to toggle)
pybit 1.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,512 kB
  • sloc: python: 5,088; xml: 497; sh: 411; perl: 349; sql: 197; makefile: 82
file content (42 lines) | stat: -rwxr-xr-x 992 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
set -e

if [ -z "$YESNO" ]; then
	YESNO=$"yYnN"
fi

cat <<EOF
I can automatically include various information about your pybit-client
configuration and debug output in your bug report. This information may help
to diagnose your problem.

It may also help if you provide /var/log/apache2/pybit-error.log from
the machine running the pybit-web package.

EOF

if [ -f "/var/log/pybitclient.log" ]; then
	yesno "May I include /var/log/pybitclient.log ? [Y/n] " yep
	if [ "$REPLY" = "yep" ]; then
		echo >&3
		echo "-- /var/log/pybitclient.log --" >&3
		echo >&3
		cat $config >&3
	else
		echo >&3
		echo "-- ( /var/log/pybitclient.log present, but not submitted) --" >&3
		echo >&3
	fi
fi

yesno "May I include /etc/pybit/client/client.conf ? [Y/n] " yep
if [ "$REPLY" = "yep" ]; then
	echo >&3
	echo "-- /etc/pybit/client/client.conf --" >&3
	echo >&3
	cat /etc/dpkg-cross/cross-compile >&3
else
	echo >&3
	echo "-- (/etc/pybit/client/client.conf not submitted) --" >&3
	echo >&3
fi