On 12/9/20 6:50 PM, Hans-Peter Jansen wrote:
Am Dienstag, 8. Dezember 2020, 21:05:39 CET schrieb Marcus Hüwe:
On 2020-12-08 15:46:09 +0100, Hans-Peter Jansen wrote:
Nice trick, Marcus, but I get a completely different output for that case.
$ grc osc build
# nice and expressive: https://paste.opensuse.org/91070912
root# echo > /usr/local/bin/colored_build << EOF !/bin/bash exec /usr/bin/grc /usr/bin/build "$@" EOF root# chmod +x /usr/local/bin/colored_build root# echo >> /etc/sudoers.d/local-build << EOF hp ALL = NOPASSWD: /usr/local/bin/colored_build EOF
$ osc config general build-cmd /usr/local/bin/colored_build
# rather greenish: https://paste.opensuse.org/96352274
Looks more openSUS(E)ish... so that's correct:P Joking aside,
LOL
now the grc script is executed as root - maybe that's why it does not find your (user) config files? (Just a wild guess)
Hmm, just using grc out of the box, no user centric config files in place. That would imply, grc behaves differently, when running as root. Oh well.
grc's config files are in /usr/share/grc/ so it should behave the same for any user including root. Having said that I don't really run it as root because I have the following in my sudoers file simon ALL = NOPASSWD: /usr/bin/build If you wanted different config per user you could create a conf.osc_bob and then pass -c osc_bob to it on the command line. -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B