mirror of
https://github.com/idanoo/gomatrixbot
synced 2025-07-01 16:12:18 +00:00
Reupload
This commit is contained in:
commit
ac641111a6
34 changed files with 4492 additions and 0 deletions
16
dist/gomatrixbot.service
vendored
Normal file
16
dist/gomatrixbot.service
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=GoMatrixBot
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
WorkingDirectory=/root/data
|
||||
ExecStart=/root/gomatrixbot/src/main
|
||||
TimeoutStopSec=300
|
||||
EnvironmentFile=/root/data/environment
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
7
dist/update.sh
vendored
Executable file
7
dist/update.sh
vendored
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd ~/gomatrixbot
|
||||
git pull
|
||||
cd src
|
||||
go build cmd/gomatrixbot/main.go
|
||||
systemctl restart gomatrixbot
|
Loading…
Add table
Add a link
Reference in a new issue