Added Service and Packager
This commit is contained in:
parent
ac3783e47b
commit
0bbab771ce
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
cmd/plugins/*
|
||||
cmd/helperbot
|
||||
cmd/*.db
|
||||
helperbot.tgz
|
||||
|
16
cmd/helperbot.service
Executable file
16
cmd/helperbot.service
Executable file
@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=brbuller
|
||||
Group=brbuller
|
||||
WorkingDirectory=/home/brbuller/helperbot/
|
||||
ExecStart=/home/brbuller/helperbot/helperbot
|
||||
Restart=always
|
||||
Environment="HOME=/home/brbuller/helperbot","USER=brbuller"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
8
package.sh
Executable file
8
package.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm helperbot.tgz
|
||||
./buildplugins.sh
|
||||
cd cmd
|
||||
go build -o helperbot
|
||||
tar -zcvf ../helperbot.tgz helperbot* plugins
|
||||
cd ..
|
Loading…
Reference in New Issue
Block a user