relocate /www to /var/www
Relocate writable /www to /var/www Story: 2009101 Task: 43543 Depends-on: https://review.opendev.org/c/starlingx/metal/+/810023 Change-Id: Icf0c69acba0693d817de3a538b74740619efa3d0 Signed-off-by: Bin Qian <bin.qian@windriver.com>
This commit is contained in:
parent
005b2d5dc2
commit
8cda3639e8
@ -13,7 +13,7 @@ class StxPath:
|
|||||||
HEAT = '~/heat/'
|
HEAT = '~/heat/'
|
||||||
BACKUPS = '/opt/backups'
|
BACKUPS = '/opt/backups'
|
||||||
CUSTOM_HEAT_TEMPLATES = '~/custom_heat_templates/'
|
CUSTOM_HEAT_TEMPLATES = '~/custom_heat_templates/'
|
||||||
HELM_CHARTS_DIR = '/www/pages/helm_charts/'
|
HELM_CHARTS_DIR = '/var/www/pages/helm_charts/'
|
||||||
DOCKER_CONF = '/etc/docker-distribution/registry/config.yml'
|
DOCKER_CONF = '/etc/docker-distribution/registry/config.yml'
|
||||||
DOCKER_REPO = '/var/lib/docker-distribution/docker/registry/v2/repositories'
|
DOCKER_REPO = '/var/lib/docker-distribution/docker/registry/v2/repositories'
|
||||||
|
|
||||||
|
@ -292,14 +292,14 @@ def test_upload_charts_via_helm_upload(copy_test_apps):
|
|||||||
|
|
||||||
Test Steps:
|
Test Steps:
|
||||||
- Upload helm charts from given controller via 'helm-upload <tar_file>'
|
- Upload helm charts from given controller via 'helm-upload <tar_file>'
|
||||||
- Verify the charts appear at /www/pages/helm_charts/ on both
|
- Verify the charts appear at /var/www/pages/helm_charts/ on both
|
||||||
controllers (if applicable)
|
controllers (if applicable)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
app_dir = copy_test_apps
|
app_dir = copy_test_apps
|
||||||
|
|
||||||
LOG.tc_step("Upload helm charts via helm-upload cmd from active controller "
|
LOG.tc_step("Upload helm charts via helm-upload cmd from active controller "
|
||||||
"and check charts are in /www/pages/")
|
"and check charts are in /var/www/pages/")
|
||||||
file_path = container_helper.upload_helm_charts(
|
file_path = container_helper.upload_helm_charts(
|
||||||
tar_file=os.path.join(app_dir, HELM_TAR), delete_first=True)[1]
|
tar_file=os.path.join(app_dir, HELM_TAR), delete_first=True)[1]
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ Copy Install Packages
|
|||||||
# -- Transfer directories with packages
|
# -- Transfer directories with packages
|
||||||
${destination_dir} Set Variable /home/${CLI_USER_NAME}/
|
${destination_dir} Set Variable /home/${CLI_USER_NAME}/
|
||||||
${destination_move} Set Variable
|
${destination_move} Set Variable
|
||||||
... /www/pages/feed/rel-${${current_version.strip('"')}}
|
... /var/www/pages/feed/rel-${${current_version.strip('"')}}
|
||||||
SSHLibrary.Put Directory ${source_pkg} ${destination_dir} mode=0755
|
SSHLibrary.Put Directory ${source_pkg} ${destination_dir} mode=0755
|
||||||
SSHLibrary.Put Directory ${source_repo} ${destination_dir} mode=0755
|
SSHLibrary.Put Directory ${source_repo} ${destination_dir} mode=0755
|
||||||
Execute Sudo Command
|
Execute Sudo Command
|
||||||
|
Loading…
Reference in New Issue
Block a user