File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,7 @@ ln -s $PWD/bin/resetpwd.py $INSTALL/bin/resetpwd.py 2>/dev/null
3535ln -s $PWD /bin/delentity.py $INSTALL /bin/delentity.py 2> /dev/null
3636ln -s $PWD /bin/upsertidentity.py $INSTALL /bin/upsertidentity.py 2> /dev/null
3737ln -s $PWD /bin/activation.py $INSTALL /bin/activation.py 2> /dev/null
38-
39- cp ./ps1_templates/* $INSTALL /ps1_templates
38+ cp -n ./ps1_templates/* $INSTALL /ps1_templates
4039chmod 600 $INSTALL /ps1_templates/*
4140cp config.yml $INSTALL
4241
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def compose_dn(entity):
5656 data ['branch' ]= branch
5757 template_string = 'cn={{ rdnValue}},{{ branch }},{{ config.base }}'
5858 else :
59- template = 'cn={{ rdnValue}},{{ config.base }}'
59+ template_string = 'cn={{ rdnValue}},{{ config.base }}'
6060 template = jinja2 .Environment (loader = jinja2 .BaseLoader ()).from_string (u .config ('dnTemplate' ,template_string ))
6161 content = template .render (data )
6262 return content
@@ -96,7 +96,7 @@ def gen_script_from_template(entity,template):
9696 'dn' : compose_dn (entity ),
9797 'path' : dn_superior (compose_dn (entity )),
9898 'e' : u .make_entry_array (entity ),
99- 'config' : u .get_config ()
99+ 'config' : u .get_config (),
100100 }
101101 environment = jinja2 .Environment (loader = FileSystemLoader ("../ps1_templates/" ))
102102 template = environment .get_template (template )
You can’t perform that action at this time.
0 commit comments