This is an automated email from the ASF dual-hosted git repository.

omartushevskyi pushed a commit to branch EPMCDLAB-1186
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/EPMCDLAB-1186 by this push:
     new 4dde413  fixed issue with nexus
4dde413 is described below

commit 4dde413bc019d072e6b8eb3583eafe7305301c87
Author: Oleh Martushevskyi <[email protected]>
AuthorDate: Wed Mar 6 15:48:13 2019 +0200

    fixed issue with nexus
---
 .../scripts/deploy_repository/deploy_repository.py          | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git 
a/infrastructure-provisioning/scripts/deploy_repository/deploy_repository.py 
b/infrastructure-provisioning/scripts/deploy_repository/deploy_repository.py
index 35f39e5..63f6afa 100644
--- a/infrastructure-provisioning/scripts/deploy_repository/deploy_repository.py
+++ b/infrastructure-provisioning/scripts/deploy_repository/deploy_repository.py
@@ -862,19 +862,22 @@ def install_nexus():
             sudo('rm -rf /opt/nexus-{}'.format(nexus_version))
             sudo('useradd nexus')
             sudo('echo \"run_as_user="nexus"\" > /opt/nexus/bin/nexus.rc')
-            sudo('chown -R nexus:nexus /opt/nexus /opt/sonatype-work')
+            # sudo('chown -R nexus:nexus /opt/nexus /opt/sonatype-work')
             create_keystore()
             put('templates/jetty-https.xml', '/tmp/jetty-https.xml')
             sudo('sed -i "s/KEYSTORE_PASSWORD/{}/g" 
/tmp/jetty-https.xml'.format(keystore_pass))
             sudo('cp -f /tmp/jetty-https.xml /opt/nexus/etc/jetty/')
             put('files/nexus.service', '/tmp/nexus.service')
             sudo('cp /tmp/nexus.service /etc/systemd/system/')
-            sudo('systemctl daemon-reload')
-            sudo('systemctl start nexus')
-            time.sleep(120)
+            # sudo('systemctl daemon-reload')
+            # sudo('systemctl start nexus')
+            # time.sleep(120)
             put('files/nexus.properties', '/tmp/nexus.properties')
+            sudo('mkdir -p /opt/sonatype-work/nexus3/etc')
             sudo('cp -f /tmp/nexus.properties 
/opt/sonatype-work/nexus3/etc/nexus.properties')
-            sudo('systemctl restart nexus')
+            sudo('chown -R nexus:nexus /opt/nexus /opt/sonatype-work')
+            sudo('systemctl daemon-reload')
+            sudo('systemctl start nexus')
             nexus_service_waiter()
             sudo('systemctl enable nexus')
             put('templates/configureNexus.groovy', 
'/tmp/configureNexus.groovy')


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to