Rename local->internal
This commit is contained in:
21
internal/config/sysconf.go
Normal file
21
internal/config/sysconf.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func CreateConf() {
|
||||
if syscall.Geteuid() != 0 {
|
||||
os.Exit(1)
|
||||
fmt.Printf("You must be root to run\n, use the sudo/doas")
|
||||
}
|
||||
exec.Command("mkdir /etc/banforge")
|
||||
exec.Command("touch /etc/banforge/config.toml")
|
||||
|
||||
}
|
||||
|
||||
func CheckSysConf() {
|
||||
}
|
||||
Reference in New Issue
Block a user