Skip to content

Conversation

wullxz
Copy link

@wullxz wullxz commented Aug 28, 2018

  • add $user to sudoers before calling bt_pa_config.sh
    This ensures that $user can run sudo commands without typing any
    password. The error message, that previously was "swallowed" by exc
    was: "sudo: no tty present and no askpass program specified".

  • change quotation of ""arm"" to '"arm"' to prevent confusing syntax
    highlightings

  • add function to restore single saved files
    This was needed to restore the sudoers file to its previous state after
    temporarily adding $user to sudoers.

  • fixed wrong variable name BT_NAME to BluetoothName in bt_pa_config.sh

  • added some config, to-be-compiled source and temporary files to .gitignore to keep commits clean

- add $user to sudoers before calling bt_pa_config.sh
This ensures that $user can run sudo commands without typing any
password. The error message, that previously was "swallowed" by `exc`
was: "sudo: no tty present and no askpass program specified".

- change quotation of "\"arm\"" to '"arm"' to prevent confusing syntax
  highlightings

- add function to restore single saved files
This was needed to restore the sudoers file to its previous state after
temporarily adding $user to sudoers.

- fixed wrong variable name BT_NAME to BluetoothName in bt_pa_config.sh
@BaReinhard
Copy link
Owner

Have any tests been run on this? @wullxz

@wullxz
Copy link
Author

wullxz commented Oct 1, 2018

Sorry, missed your answer here somehow. No, I haven't run any tests apart from testing it in my environment with the latest volumio version.
What tests would you like to be run?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants