Is it possible to initialize a mock chroot environment variable with the 
return from the evaulation of a simple script when calling a koji build?  
Something like:

/etc/mock/site-defaults.cfg:
config_opts['environment']['MYVAR'] = "/usr/local/sbin/myscript.sh"

Where /usr/local/sbin/myscript.sh contains something like:
#!/usr/bin/bash
file="/tmp/$RANDOM.txt"
touch "$file" # Created outside the chroot
echo "$file"  # $file passed as the MYVAR environment variable 

If not, might you suggest another way of accomplishing this task?

Thanks in advance.  -A

-- 
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E

Attachment: signature.asc
Description: This is a digitally signed message part.

--
buildsys mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/buildsys

Reply via email to