forked from ungleich-public/cdist-contrib
__netbox: fix netbox version save
The cdist directory needs to be created to write there. This is done directly after the new tarball is installed.
This commit is contained in:
parent
0b261070d3
commit
584e0bbda8
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@ cp '$install_dir/cdist/ldap_config.py' "\$tmpdir/ldap_config.py"
|
|||
# Deploy sources and restore configuration.
|
||||
rm -r '$install_dir'
|
||||
cp -r '$src/netbox' '$install_dir'
|
||||
mkdir '$install_dir/cdist'
|
||||
|
||||
cp \$tmpdir/configuration.py '$install_dir/netbox/configuration.py'
|
||||
cp \$tmpdir/ldap_config.py '$install_dir/netbox/ldap_config.py'
|
||||
|
||||
|
|
Loading…
Reference in a new issue