|
|
@ -4,7 +4,8 @@ |
|
|
|
|
|
|
|
# This may also serve as an example on how you can wrap astronaut to package in any format. |
|
|
|
|
|
|
|
_fakeroot="$(command -v fakeroot && echo 'fakeroot' || true)" |
|
|
|
_fakeroot="$(command -v fakeroot || true)" |
|
|
|
[ "$_fakeroot" ] && _fakeroot='fakeroot' |
|
|
|
|
|
|
|
if [ ! "$_fakeroot" -a "$(id -u)" != "0" ]; then |
|
|
|
echo 'This script has to be run as root, or you need fakeroot installed.' 1>&2 |
|
|
|