From 2e73d2585fe2658ea1cd90e303788d789eed072e Mon Sep 17 00:00:00 2001 From: Naglfar Date: Fri, 9 Oct 2020 00:48:22 +0200 Subject: [PATCH] only move to once --- makeuser | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/makeuser b/makeuser index 79875a8..3eb305d 100755 --- a/makeuser +++ b/makeuser @@ -31,7 +31,7 @@ case $1 in #Thunix specific section currdir=`pwd` - cd $REPO_LOCATION; git pull; cd $currdir + cd $REPO_LOCATION; git pull echo "--- - name: Setting up $1 user: @@ -49,12 +49,10 @@ case $1 in key: \"$3\"" > $REPO_LOCATION/roles/shell/tasks/users/$YAML_FILE echo "- include: users/$YAML_FILE" >> $REPO_LOCATION/roles/shell/tasks/users.yml - place=`pwd` - cd $REPO_LOCATION git add $REPO_LOCATION/roles/shell/tasks/users/$1.yml git commit -am "Adding user $1" git push - cd $place + cd $currdir $GEN_TDP | sudo tee $TILDE_JSON # End Thunix specific section ;;