Skip to content

Commit b556103

Browse files
author
Mike Cayanan
committed
copy all hysds/scripts to verdi/ops/bin
1 parent 8ccd7e5 commit b556103

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

sdscli/adapters/hysds/update.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -758,15 +758,15 @@ def update_verdi(conf, ndeps=False, config_only=False, comp='verdi'):
758758
execute(fab.send_celeryconf, 'verdi', roles=[comp])
759759
bar.update()
760760

761-
# Copy script wrappers for PyPI compatibility
762-
set_bar_desc(bar, 'Installing script wrappers')
763-
wrapper_src = execute(fab.get_package_resource_path, 'hysds', 'scripts/log_instance_stats.sh',
764-
remote=True, resource_type='file', roles=[comp])
765-
wrapper_src_path = list(wrapper_src.values())[0]
766-
execute(fab.run, f'cp {wrapper_src_path} ~/verdi/bin/log_instance_stats.sh', roles=[comp])
767-
execute(fab.chmod, 755, '~/verdi/bin/log_instance_stats.sh', roles=[comp])
761+
# Copy all scripts to ops/bin (will be included in code bundle)
762+
set_bar_desc(bar, 'Copying scripts to ops/bin')
763+
execute(fab.mkdir, '~/verdi/ops/bin', None, None, roles=[comp])
764+
scripts_dir = execute(fab.get_package_resource_path, 'hysds', 'scripts',
765+
remote=True, resource_type='dir', roles=[comp])
766+
scripts_dir_path = list(scripts_dir.values())[0]
767+
execute(fab.run, f'cp {scripts_dir_path}/* ~/verdi/ops/bin/', roles=[comp])
768+
execute(fab.chmod, 755, '~/verdi/ops/bin/*', roles=[comp])
768769
bar.update()
769-
770770

771771
# update supervisor config
772772
set_bar_desc(bar, 'Updating supervisor config')

0 commit comments

Comments
 (0)