|
@@ -3,7 +3,7 @@ |
|
|
# make sure this was run as root |
|
|
# make sure this was run as root |
|
|
if [ $UID -ne 0 ] ; then |
|
|
if [ $UID -ne 0 ] ; then |
|
|
echo "Need to be root; trying sudo" |
|
|
echo "Need to be root; trying sudo" |
|
|
exec sudo $0 "$@" |
|
|
|
|
|
|
|
|
exec sudo env BUILD_CONFIG=$BUILD_CONFIG $0 "$@" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# enter the chroot and run the command (if supplied) or a shell |
|
|
# enter the chroot and run the command (if supplied) or a shell |
|
|