Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for volumio2 sub-shell sudo permission problems; smaller fixes #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

2 participants