Fresh install fixes 🍏

pull/184/head
Simon Let 3 years ago
parent df45f3869d
commit 02466ae8da
  1. 4
      internal/logger/logger.go
  2. 3
      scripts/install.sh

@ -10,9 +10,9 @@ import (
) )
func New(executable string, level zapcore.Level, development string) (*zap.Logger, error) { func New(executable string, level zapcore.Level, development string) (*zap.Logger, error) {
dataDir, err := datadir.GetPath() dataDir, err := datadir.MakePath()
if err != nil { if err != nil {
return nil, fmt.Errorf("error while getting resh data dir: %w", err) return nil, fmt.Errorf("error while getting RESH data dir: %w", err)
} }
logPath := filepath.Join(dataDir, "log.json") logPath := filepath.Join(dataDir, "log.json")
loggerConfig := zap.NewProductionConfig() loggerConfig := zap.NewProductionConfig()

@ -96,7 +96,10 @@ if [ ! -f "$pid_file" ]; then
fi fi
failed_to_kill() { failed_to_kill() {
# Do not print error during first installation
if [ -n "${__RESH_VERSION-}" ]; then
echo "ERROR: Failed to kill the resh-daemon - maybe it wasn't running?" echo "ERROR: Failed to kill the resh-daemon - maybe it wasn't running?"
fi
} }
if [ -f "$pid_file" ]; then if [ -f "$pid_file" ]; then

Loading…
Cancel
Save