Skip to content

Commit

Permalink
fix: jans-linux-setup install cb via apt for dependencies (#2330)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Sep 8, 2022
1 parent 5c752d1 commit 732ce6a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions jans-linux-setup/jans_setup/setup_app/installers/couchbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import sys
import json
import uuid
import shutil

from setup_app import paths
from setup_app.static import InstallTypes, AppType, InstallOption, BackendTypes, colors
Expand Down Expand Up @@ -94,10 +95,17 @@ def couchbaseInstall(self):
err_msg = "Couchbase package not found at %s. Exiting with error..." % (self.couchbasePackageFolder)
self.logIt(err_msg, True, True)

packageName = max(cb_package_list)
self.logIt("Found package '%s' for install" % packageName)
installOutput = self.installPackage(packageName)
Config.post_messages.append(installOutput)
package_name = max(cb_package_list)
self.logIt("Found package '%s' for install" % package_name)

if base.clone_type == 'deb':
apt_path = shutil.which('apt')
self.chown(self.couchbasePackageFolder, '_apt', 'nogroup', recursive=True)
install_output = self.run([apt_path, 'install', '-y', package_name])
else:
install_output = self.installPackage(package_name)

Config.post_messages.append(install_output)


def couchebaseCreateCluster(self):
Expand Down

0 comments on commit 732ce6a

Please sign in to comment.