| 1 |
#!/bin/bash -e |
| 2 |
|
| 3 |
cat <<EOF |
| 4 |
|
| 5 |
I can automatically include various information about your samba configuration |
| 6 |
in your bug report. This information may help to diagnose your problem. |
| 7 |
|
| 8 |
EOF |
| 9 |
|
| 10 |
for config in /etc/samba/smb.conf ; do |
| 11 |
if [ -f $config ]; then |
| 12 |
yesno "May I include your $config configuration file? [Y/n] " yep |
| 13 |
if [ "$REPLY" = "yep" ]; then |
| 14 |
echo "* $config present, and attached" >&3 |
| 15 |
echo "-- BEGIN ATTACHMENTS --" >&3 |
| 16 |
echo "$config" >&3 |
| 17 |
echo "-- END ATTACHMENTS --" >&3 |
| 18 |
else |
| 19 |
echo "* $config present, but not attached" >&3 |
| 20 |
fi |
| 21 |
else |
| 22 |
echo "* $config not present" >&3 |
| 23 |
fi |
| 24 |
done |