2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#2049] hammer.py: create YANG repository

This commit is contained in:
Andrei Pavel
2021-09-18 10:10:01 +03:00
parent f6215c24ed
commit 39acae2307

View File

@@ -1052,6 +1052,11 @@ def _install_sysrepo_from_sources():
# right version pair to the dictionary above.
sysrepo_version = '1.4.140'
# Create repository for YANG modules and change ownership to current user.
# pw usershow command is for BSD OSs.
execute('sudo mkdir -p /etc/sysrepo')
execute('sudo chown -R "${USER}:$(stat -c %G "${HOME}" || pw usershow ${USER} | cut -d ":" -f 9)" /etc/sysrepo')
execute('rm -rf /tmp/sysrepo')
try:
execute('git clone https://github.com/sysrepo/sysrepo.git /tmp/sysrepo')