HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/share/bug/samba-common/script
#!/bin/bash -e

cat <<EOF

I can automatically include various information about your samba configuration
in your bug report. This information may help to diagnose your problem.

EOF

for config in /etc/samba/smb.conf /var/lib/samba/dhcp.conf ; do
  if [ -f $config ]; then
    yesno "May I include your $config configuration file? [Y/n] " yep
    if [ "$REPLY" = "yep" ]; then
      echo "* $config present, and attached" >&3
      echo "-- BEGIN ATTACHMENTS --" >&3
      echo "$config" >&3
      echo "-- END ATTACHMENTS --" >&3
    else
      echo "* $config present, but not attached" >&3
    fi
  else
    echo "* $config not present" >&3
  fi
done