Standardize auxiliary file location across os-charms
Change-Id: Ic06c4fcdd87d350a0e41cb9de62bd7887aae7168 Closes-Bug: #1843826
This commit is contained in:
parent
660ce5b021
commit
e69a562494
@ -181,7 +181,7 @@ def install_cron_script():
|
||||
|
||||
"""
|
||||
for fn in [SYNC_SCRIPT_NAME, SCRIPT_WRAPPER_NAME]:
|
||||
shutil.copy(os.path.join("scripts", fn), USR_SHARE_DIR)
|
||||
shutil.copy(os.path.join("files", fn), USR_SHARE_DIR)
|
||||
|
||||
config = hookenv.config()
|
||||
installed_script = os.path.join(USR_SHARE_DIR, SCRIPT_WRAPPER_NAME)
|
||||
@ -201,7 +201,7 @@ def install_cron_script():
|
||||
|
||||
def install_cron_poll():
|
||||
"Installs /etc/cron.d every-minute job in crontab for quick polling."
|
||||
poll_file_source = os.path.join('scripts', CRON_POLL_FILENAME)
|
||||
poll_file_source = os.path.join("files", CRON_POLL_FILENAME)
|
||||
shutil.copy(poll_file_source, CRON_D)
|
||||
|
||||
|
||||
|
2
tox.ini
2
tox.ini
@ -44,7 +44,7 @@ deps = -r{toxinidir}/requirements.txt
|
||||
basepython = python3
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands = flake8 {posargs} hooks unit_tests tests actions lib scripts
|
||||
commands = flake8 {posargs} hooks unit_tests tests actions lib files
|
||||
charm-proof
|
||||
|
||||
[testenv:cover]
|
||||
|
Loading…
Reference in New Issue
Block a user