Home
DevCentral
Search
Configure Global Search
Log In
Transactions
P237
Change Details
Change Details
Old
New
Diff
#!/bin/sh ARC=arc SHELLUSERS=pillar/users/shellusers.sls if [ $# -ne 1 ] then echo "Usage: `basename $0` <username>" exit 1 fi ACCOUNT=$1 if [ ! -f $SHELLUSERS ] then echo "You must run this at the top of a rOPS working copy." exit 2 fi LASTUID=`grep 'uid: 2' $SHELLUSERS | sort | tail -n 1 | awk '{print $2}'` NEWUID=`expr $LASTUID + 1` echo " $ACCOUNT:" >> $SHELLUSERS echo " fullname: $ACCOUNT" >> $SHELLUSERS echo " uid: $NEWUID" >> $SHELLUSERS $EDITOR $SHELLUSERS $EDITOR roles/shellserver/users/files/ssh_keys/$ACCOUNT arc feature account/$ACCOUNT git status
#!/bin/sh ARC=arc SHELLUSERS=pillar/users/shellusers.sls if [ $# -ne 1 ] then echo "Usage: `basename $0` <username>" exit 1 fi ACCOUNT=$1 if [ ! -f $SHELLUSERS ] then echo "You must run this at the top of a rOPS working copy." exit 2 fi LASTUID=`grep 'uid: 2' $SHELLUSERS | sort | tail -n 1 | awk '{print $2}'` NEWUID=`expr $LASTUID + 1` echo " $ACCOUNT:" >> $SHELLUSERS echo " fullname: $ACCOUNT" >> $SHELLUSERS echo " uid: $NEWUID" >> $SHELLUSERS $EDITOR $SHELLUSERS $EDITOR roles/shellserver/users/files/ssh_keys/$ACCOUNT arc feature account/$ACCOUNT git status
Continue