Tranquil IT recrute Tranquil IT recrute

tis-mongodb

Version : 2.4.5-1

Download
  • package : tis-mongodb
  • editor :
  • version : 2.4.5-1
  • licence :
  • architecture : x86
  • locale :
  • description : mongodb win32
  • description_fr :
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • installed_size :
  • impacted_process :
  • signature_date : 20170720-155528
  • maintainer : Hubert TOUVET

setup.py

# -*- coding: utf-8 -*-
from setuphelpers import *
import configobj

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []

# command(s) to launch to remove the application(s)
uninstallstring = []

# list of required parameters names (string) which canb be used during install
required_params = []

def install():
    # if you want to modify the keys depending on environment (win32/win64... params..)
    global uninstallkey
    global uninstallstring

    if service_is_running('MongoDB'):
        service_stop('MongoDB')
    if service_installed('MongoDB'):
        print "Uninstall MongoDB service"
        run_notfatal(r'C:\mongodb\bin\mongod.exe --remove')

    print "Copy files"
    copytree2('mongodb',r'c:\mongodb',onreplace=default_overwrite)
    conf_filename = r'C:\mongodb\mongod.cfg'
    ensure_dir(conf_filename)

    if not isdir(r'C:\mongodb\db'):
        os.makedirs(r'C:\mongodb\db')

    print "Creates config file"
    conf = configobj.ConfigObj(infile = conf_filename)
    conf['logpath'] = r'C:\mongodb\log\mongo.log'
    conf['dbpath'] = r'C:\mongodb\db'
    conf.write()
    if service_installed('MongoDB'):
        print "Uninstall MongoDB service"
        run(r'C:\mongodb\bin\mongod.exe --remove')

    print "Install MongoDB service"
    run(r'C:\mongodb\bin\mongod.exe --config C:\mongodb\mongod.cfg --install')
    print "Start MongoDB"
    service_start('MongoDB')

			

Changelog

"""{% trans %}No changelog.{% endtrans %}"""
			

manifest.sha256

[["mongodb/README", "a13dd26bcf9574c2038ada41f2a10b536d98d4d0aa087b91d74bdff9ea74ce1c"], ["mongodb/bin/mongo.exe", "01490408422ae8b0872ee62c9826f80b603547cb77dc4dcfb8be63f5dfb009f8"], ["WAPT/certificate.crt", "20f25d6b242159077345379865f8e0d84bdc9e4764190f1aa6cb3816bcabd341"], ["mongodb/bin/mongos.exe", "e857888cc0c4820ff754569ed1c2e19d14218c28b28e33e52ab84097cdd1e181"], ["mongodb/bin/bsondump.exe", "62942861dc4268dbe8641f908305badb2c8a5218b02c575255a6ef1b6fc609f9"], ["mongodb/bin/mongod.exe", "b6b5bf6432d89c2e5f3378809a861cd6b77b646307c5b0e9b9a412177592e457"], ["mongodb/THIRD-PARTY-NOTICES", "2f6b6e5ebf62cdc224f35822f38a98fd942ed68d8171542c2c61fe11c6c89244"], ["mongodb/bin/mongotop.exe", "0c569789cfdfd9c7861c54f4976711603d674e48e0d135d27e2f0a05f909eee7"], ["mongodb/GNU-AGPL-3.0", "282751b8c98ee9e445346eb57a992c9ecbe25ed8dd554df046777313e19b10f9"], ["mongodb/bin/mongoperf.exe", "58dcc5f7b6d8a7f99849714c162fb4a73185e1ace2f25d0c5a3fc0196d6dcf17"], ["mongodb/bin/mongooplog.exe", "205759b600b0acb726f95fbb6d51dec17da156c6c98e2d4701165578579d2e46"], ["mongodb/bin/mongofiles.exe", "c904f6e64866112a452bae3f19d6377d758aeaac4226bc1ef41d052a0f35c3e1"], ["mongodb/bin/mongoexport.exe", "e26b31bd86100af2c81ddfa202ebc9a3a2b6a03c1467e7418c44fc6984242a5a"], ["mongodb/bin/mongodump.exe", "3c8ef56e87f182bf7ecf0fc72bf4c5efe9f85a72cf54415c84eacbcdb55d4969"], ["setup.py", "318a2b1c4b9fcc19f461cbb879e0fb2f3603c16ce2b72d434061512614a3f5bd"], ["mongodb/bin/mongorestore.exe", "1dce7f9245b4c796bd0aed4bd447f0f0dc9d15c536e3b87c57a46d022dde3174"], ["mongodb/bin/mongostat.exe", "548553f7c1438945fbec504c9a738767b266ab1c57f94fcf422f22069b4d758a"], ["WAPT/control", "73faad7e6dddb74168c02ae7329dfaca95f51a9897b679466e0dc0bf01ba98d7"], ["mongodb/bin/mongoimport.exe", "e7917d2075a2f82a46de336ea987dc6a61fc5c055174658b8fc9da06b8a2584f"]]