Super-Simple-Raspberry-Pi-Audio-Receiver-Install icon indicating copy to clipboard operation
Super-Simple-Raspberry-Pi-Audio-Receiver-Install copied to clipboard

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

Open wullxz opened this issue 7 years ago • 2 comments

  • 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

wullxz avatar Aug 28 '18 20:08 wullxz

Have any tests been run on this? @wullxz

BaReinhard avatar Sep 04 '18 01:09 BaReinhard

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?

wullxz avatar Oct 01 '18 20:10 wullxz