tis-munin-node 1.6.0-3

  • package : tis-munin-node
  • version : 1.6.0-3
  • description : client for munin
  • maintainer : Clement Raimond
  • date : 2017-07-20 11:22:21

setup.py

#!/usr/bin/python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
#    This file is part of WAPT
#    Copyright (C) 2013  Tranquil IT Systems http://www.tranquil.it
#    WAPT aims to help Windows systems administrators to deploy
#    setup and update applications on users PC.
#
#    WAPT is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    WAPT is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with WAPT.  If not, see <http://www.gnu.org/licenses/>.
#
# -----------------------------------------------------------------------
import platform
from setuphelpers import *

uninstallkey=[]
uninstallstring=['"%s" /S' % makepath(programfiles32,'Munin Node for Windows','uninstall.exe')]
required_params=[]

def install():
    if service_installed('munin-node'):
        print("Munin Node is running, stopping the service...")
        service_stop('munin-node')
    print("Install Munin Node service")
    run('munin-node-win32-1.6.0.0-installer.exe /S')
    print("Add configuration file")
    filecopyto('munin-node.ini',"%s" % makepath(programfiles32,'Munin Node For Windows','munin-node.ini'))
    print("Starting Munin Node service...")
    service_start('munin-node')


    

manifest.sha1

[["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["munin-node.ini", "e5a565522d318673be021a6a9c8017b13a1fa3d9"], ["WAPT/wapt.psproj", "c400ba1ba11755169ac17d825e0cfb9ba63649e1"], ["munin-node-win32-1.6.0.0-installer.exe", "1d275febaccd52d196aaad50cdd260259223452a"], ["setup.py", "984b8d06835bcac85738da0185b8f07629f54da9"], ["WAPT/control", "42ff5ea528f5bab6a61813d0d6dfe99b8d09c7f0"]]