Skip to content

SAFIR-URCA/SafirWelcome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SafirWelcome

Requirements

  • go => 1.16

Build / Setup

# Init
/sbin/useradd -s /usr/sbin/nologin -r safir_welcome
/bin/sudo /bin/mkdir /opt/safir_welcome 

# Build
/bin/go build 
/bin/sudo /bin/mv SafirWelcome  /opt/safir_welcome/

# Setup service 
/bin/sudo cp safir_welcome.service /opt/safir_welcome/
/bin/ln -s /opt/safir_welcome/safir_welcome.service /etc/systemd/system/safir_welcome.service
/bin/systemctl enable safir_welcome.service

# Set privileges
/bin/chown safir_welcome:safir_welcome /opt/safir_welcome -R
/bin/chmod 500 /opt/safir_welcome/SafirWelcome
/bin/chown root:root /opt/safir_welcome/safir_welcome.service
/bin/chmod 400 /opt/safir_welcome/safir_welcome.service

Run / stop bot

# Run service/bot
/bin/systemctl start safir_welcome.service

# Stop service/bot
/bin/systemctl stop safir_welcome.service

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages