Skip to content

Commit eddb0bb

Browse files
author
Mike Cayanan
committed
Create runtime directories for SSL cert symlinks
- Create ~/mozart/ops/mozart/ before creating SSL cert symlinks - Create ~/sciflo/ops/grq2/ and ~/sciflo/ops/pele/ before creating SSL cert symlinks - Needed for PyPI installs where these directories don't exist - Maintains compatibility with supervisord working directory expectations
1 parent c9cc204 commit eddb0bb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

sdscli/adapters/hysds/update.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ def update_mozart(conf, ndeps=False, config_only=False, comp='mozart'):
159159
bar.update()
160160

161161
# link ssl certs to apps
162+
# Create runtime directory for SSL certs (needed for PyPI installs)
163+
execute(fab.mkdir, '~/mozart/ops/mozart', context['OPS_USER'], context['OPS_USER'], roles=[comp])
162164
execute(fab.ln_sf, '~/ssl/server.key', '~/mozart/ops/mozart/server.key', roles=[comp])
163165
execute(fab.ln_sf, '~/ssl/server.pem', '~/mozart/ops/mozart/server.pem', roles=[comp])
164166
bar.update()
@@ -515,6 +517,9 @@ def update_grq(conf, ndeps=False, config_only=False, comp='grq'):
515517
bar.update()
516518

517519
# link ssl certs to apps
520+
# Create runtime directories for SSL certs (needed for PyPI installs)
521+
execute(fab.mkdir, '~/sciflo/ops/grq2', context['OPS_USER'], context['OPS_USER'], roles=[comp])
522+
execute(fab.mkdir, '~/sciflo/ops/pele', context['OPS_USER'], context['OPS_USER'], roles=[comp])
518523
execute(fab.ln_sf, '~/ssl/server.key',
519524
'~/sciflo/ops/grq2/server.key', roles=[comp])
520525
execute(fab.ln_sf, '~/ssl/server.pem',

0 commit comments

Comments
 (0)