Skip to content

Commit

Permalink
fix: code analyses fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Jan 1, 2022
1 parent 19e0485 commit 7eec757
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup_app/installers/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
from setup_app.installers.base import BaseInstaller

class NodeInstaller(BaseInstaller, SetupUtils):
"""This installer provides node installtion for Jans server."""

node_base = os.path.join(Config.jansOptFolder, 'node')
templates_rendered = False

def __init__(self):
"""Inits NodeInstaller instance"""
self.service_name = 'node'
self.needdb = False # we don't need backend connection in this class
self.install_var = 'installNode'
Expand All @@ -40,8 +42,8 @@ def install(self):
try:
self.logIt("Extracting %s into /opt" % nodeArchive)
self.run([paths.cmd_tar, '-xJf', nodeArchive, '-C', '/opt/', '--no-xattrs', '--no-same-owner', '--no-same-permissions'])
except:
self.logIt("Error encountered while extracting archive %s" % nodeArchive)
except Exception as e:
self.logIt("Error encountered while extracting archive {}: {}".format(nodeArchive, e))

nodeDestinationPath = max(glob.glob('/opt/node-*-linux-x64'))

Expand Down

0 comments on commit 7eec757

Please sign in to comment.