1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

add asset migration to setup process

This commit is contained in:
checktheroads
2020-02-15 20:02:47 -07:00
parent f45b149832
commit 354f789403
4 changed files with 71 additions and 34 deletions

View File

@@ -106,7 +106,13 @@ def generate_secret(length):
)
def setup(unattended):
"""Define application directory, move example files, generate systemd service."""
from hyperglass.cli.util import create_dir, move_files, make_systemd, write_to_file
from hyperglass.cli.util import (
create_dir,
move_files,
make_systemd,
write_to_file,
migrate_static_assets,
)
user_path = Path.home() / "hyperglass"
root_path = Path("/etc/hyperglass/")
@@ -158,3 +164,5 @@ def setup(unattended):
systemd_file = install_path / "hyperglass.service"
systemd = make_systemd(user)
write_to_file(systemd_file, systemd)
migrate_static_assets(install_path)