admin

package
v0.0.0-...-288be38 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FlixctlAdminRootCmd = &cobra.Command{
		Use:   "admin",
		Short: "To Perform Admin and Maintenance Tasks",
		Long:  "to perform admin / maintenance tasks",
	}
)
View Source
var PurgeSlackCmd = &cobra.Command{
	Use:   "slack-purge",
	Short: "To purge slack messages",
	Long:  "To purge slack messages from all channels",
	Run: func(cmd *cobra.Command, args []string) {
		SlackPurge()
	},
}
View Source
var RemotePurgeSlack = `` /* 156-byte string literal not displayed */
View Source
var RemoteRenewCerts = []string{
	`sudo openssl pkcs12 \
        -export \
        -password env:PLEX_PASSWORD \
        -out /var/lib/plexmediaserver/ssl/marianoflix.duckdns.org.pfx \
        -inkey /opt/ssl/marianoflix.duckdns.org/privkey.pem \
        -in /opt/ssl/marianoflix.duckdns.org/cert.pem \
        -certfile /opt/ssl/marianoflix.duckdns.org/fullchain.pem`,
	`sudo chown plex:plex /var/lib/plexmediaserver/ssl/marianoflix.duckdns.org.pfx`,
	`sudo cp /opt/ssl/marianoflix.duckdns.org/fullchain.pem /opt/nzbget/fullchain.pem`,
	`sudo cp /opt/ssl/marianoflix.duckdns.org/privkey.pem /opt/nzbget/privkey.pem`,
	`sudo chown nzbget:nzbget /opt/nzbget/fullchain.pem`,
	`sudo chown nzbget:nzbget /opt/nzbget/privkey.pem`,
	`sudo cp /opt/ssl/marianoflix.duckdns.org/fullchain.pem /opt/Tautulli/fullchain.pem`,
	`sudo cp /opt/ssl/marianoflix.duckdns.org/privkey.pem /opt/Tautulli/privkey.pem`,
	`sudo cp /opt/ssl/marianoflix.duckdns.org/cert.pem /opt/Tautulli/cert.pem`,
	`sudo chown tautulli:tautulli /opt/Tautulli/fullchain.pem`,
	`sudo chown tautulli:tautulli /opt/Tautulli/privkey.pem`,
	`sudo chown tautulli:tautulli /opt/Tautulli/cert.pem`,
	`sudo /opt/dehydrated/dehydrated -c -o /opt/ssl`,
}
View Source
var RemoteRestartPlexServices = `sudo systemctl restart %s`
View Source
var RenewCertsCmd = &cobra.Command{
	Use:   "renew-certs",
	Short: "To Renew Certs",
	Long:  "to renew tls certificates all plex related services",
	Run: func(cmd *cobra.Command, args []string) {
		RenewCerts()
	},
}
View Source
var RestartPlexServicesCmd = &cobra.Command{
	Use:   "restart-services",
	Short: "To Restart Plex Services",
	Long:  "to restart all plex related services",
	Run: func(cmd *cobra.Command, args []string) {
		RestartPlexServices()
	},
}
View Source
var SlackOauthTokenCmd = &cobra.Command{
	Use:   "slack-token",
	Short: "To Get An Oauth Token",
	Long:  "to get a slack oauth token for a given client id",
	Run: func(cmd *cobra.Command, args []string) {
		SlackOauthToken()
	},
}

Functions

func AsyncCommandExecution

func AsyncCommandExecution(tasks []worker.TaskFunction)

func DownloadPublicKey

func DownloadPublicKey() ssh.AuthMethod

func GetSSHConnection

func GetSSHConnection() *ssh.Client

func RenewCerts

func RenewCerts()

func RestartPlexServices

func RestartPlexServices()

func RunCommand

func RunCommand(cmd string, conn *ssh.Client)

func ShowError

func ShowError(err error)

func SlackOauthToken

func SlackOauthToken()

func SlackPurge

func SlackPurge()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL