installer

package module
Version: v0.0.0-...-29d0cd9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2018 License: MIT Imports: 10 Imported by: 0

README

DEPRECATED

use systemd or docker & kubernetes or anything else

installer

Just a simple installer, as for the moment, just for init.d scripts and without many configuration options.

Thanks to [https://github.com/fhd/init-script-template] for the template!

installation

go get github.com/mier85/installer

usage

just import the package and call "installer.Register()"

todo

  • better error handling
  • rollback for incomplete installations
  • uninstall
  • support more than just init.d scripts

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInitDPath

func GetInitDPath(name string) string

func GetInitDScript

func GetInitDScript(folder, command, user string) (ret string, err error)

func Install

func Install(user string) (rErr error)

func IsInitDScriptExist

func IsInitDScriptExist(name string) bool

func MakeInitDExecutable

func MakeInitDExecutable(name string) (rErr error)

func Register

func Register(parse bool)

func WriteInitD

func WriteInitD(name, content string) (rErr error)

Types

type TemplateInitD

type TemplateInitD struct {
	Dir, User, Command, ScriptName string
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL