summaryrefslogtreecommitdiffstats
path: root/meta/install
diff options
context:
space:
mode:
authortv <tv@xso>2011-09-06 22:06:43 +0200
committertv <tv@xso>2011-09-06 22:06:43 +0200
commitdafd45a75f6c433485d2ec0fd4b9539b89e59175 (patch)
treeb0583718d69ba972e198827c40523b46c6b90b41 /meta/install
parent3eacd8b8d5d0bde9ac4381ae1e92833aa10610a8 (diff)
//meta/install: try to be more intelligent... untested^_^
Diffstat (limited to 'meta/install')
-rwxr-xr-xmeta/install5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/install b/meta/install
index 6bb04fec..b74b7f02 100755
--- a/meta/install
+++ b/meta/install
@@ -3,7 +3,7 @@ set -euf
cd $(dirname $(readlink -f $0))
-id=`ls -lnd . | awk '{print$3}'`
+id=`ls -ld . | awk '{print$3}'`
update=$PWD/bin/update
echo "#"
@@ -19,8 +19,9 @@ if test -e /update; then
ls -l /update
fi
-if test `id -u` != $id; then
+if test `id -un` != $id; then
echo "# and remember to allow yourself to sudo -u $id /update"
+ echo "# i.e. add `id -un` ($id) NOPASSWD:/update"
fi
echo "#^D"