mirror of
https://github.com/ThunixdotNet/makeuser.git
synced 2026-01-24 13:40:17 +00:00
only move to once
This commit is contained in:
6
makeuser
6
makeuser
@@ -31,7 +31,7 @@ case $1 in
|
|||||||
|
|
||||||
#Thunix specific section
|
#Thunix specific section
|
||||||
currdir=`pwd`
|
currdir=`pwd`
|
||||||
cd $REPO_LOCATION; git pull; cd $currdir
|
cd $REPO_LOCATION; git pull
|
||||||
echo "---
|
echo "---
|
||||||
- name: Setting up $1
|
- name: Setting up $1
|
||||||
user:
|
user:
|
||||||
@@ -49,12 +49,10 @@ case $1 in
|
|||||||
key: \"$3\"" > $REPO_LOCATION/roles/shell/tasks/users/$YAML_FILE
|
key: \"$3\"" > $REPO_LOCATION/roles/shell/tasks/users/$YAML_FILE
|
||||||
|
|
||||||
echo "- include: users/$YAML_FILE" >> $REPO_LOCATION/roles/shell/tasks/users.yml
|
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 add $REPO_LOCATION/roles/shell/tasks/users/$1.yml
|
||||||
git commit -am "Adding user $1"
|
git commit -am "Adding user $1"
|
||||||
git push
|
git push
|
||||||
cd $place
|
cd $currdir
|
||||||
$GEN_TDP | sudo tee $TILDE_JSON
|
$GEN_TDP | sudo tee $TILDE_JSON
|
||||||
# End Thunix specific section
|
# End Thunix specific section
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user