mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
jcs: Lifted restriction to run as root from jcs add and jcs makeinf
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
36ed3d9490
commit
9fe9a7c7cf
1 changed files with 9 additions and 9 deletions
18
scripts/jcs
18
scripts/jcs
|
|
@ -823,10 +823,10 @@ done
|
|||
shift # get past --
|
||||
|
||||
# ---------- check for being root
|
||||
if [ "`whoami`" != root ] ; then
|
||||
echo This program has to be executed by root. Exiting. >&2
|
||||
exit 1
|
||||
fi
|
||||
#if [ "`whoami`" != root ] ; then
|
||||
# echo This program has to be executed by root. Exiting. >&2
|
||||
# exit 1
|
||||
#fi
|
||||
|
||||
# ---------- rename input
|
||||
test $# -ne 2 && eusage
|
||||
|
|
@ -943,9 +943,9 @@ echo "$LINKFILEENTRY # properties: $OWNR $GRUP $MOD" >> $CONFDIR/new_link.sh
|
|||
|
||||
OWNR=$cfg_jcs_owner
|
||||
GRUP=$cfg_jcs_group
|
||||
chown -R $OWNR $CONFDIR
|
||||
chgrp -R $GRUP $CONFDIR
|
||||
chmod -R ug+rw $CONFDIR
|
||||
#chown -R $OWNR $CONFDIR
|
||||
#chgrp -R $GRUP $CONFDIR
|
||||
#chmod -R ug+rw $CONFDIR
|
||||
|
||||
} # end function jcs_add
|
||||
|
||||
|
|
@ -1203,8 +1203,8 @@ for LINKFILE in $LINKFILES ; do
|
|||
|
||||
echo $TDIR/$FILE >> old_links.txt
|
||||
|
||||
chown $DEF_LOCAL_OWNER $FILE
|
||||
chgrp $DEF_LOCAL_GROUP $FILE
|
||||
#chown $DEF_LOCAL_OWNER $FILE
|
||||
#chgrp $DEF_LOCAL_GROUP $FILE
|
||||
|
||||
# echo d=$TDIR f=$FILE o=$OWNR g=$GRUP um=$UMOD gm=$GMOD om=$OMOD
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue