Работа над конфигом repko, работа над интеграцией в deb пакет repko
This commit is contained in:
parent
58b258be29
commit
d3fd4f5858
7 changed files with 101 additions and 11 deletions
|
|
@ -10,12 +10,10 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
const ConfDir = "./confs/"
|
||||
|
||||
func LoadApplications() []types.PackageApplication {
|
||||
var apps []types.PackageApplication
|
||||
|
||||
err := filepath.WalkDir(ConfDir, func(path string, d fs.DirEntry, err error) error {
|
||||
err := filepath.WalkDir(types.ConfsDir, func(path string, d fs.DirEntry, err error) error {
|
||||
if err != nil || d == nil || d.IsDir() {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package bootstrap
|
||||
|
||||
import (
|
||||
"bubble/types"
|
||||
"github.com/sirupsen/logrus"
|
||||
"gopkg.in/natefinch/lumberjack.v2"
|
||||
"io"
|
||||
|
|
@ -14,7 +15,7 @@ func Logs() {
|
|||
PadLevelText: true,
|
||||
}
|
||||
logWriter := &lumberjack.Logger{
|
||||
Filename: "log.txt",
|
||||
Filename: types.LogFile,
|
||||
Compress: true,
|
||||
MaxSize: 50,
|
||||
LocalTime: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue