sojuctl: rename to sojudb
sojuctl will be used to control the soju deamon directly. sojudb is a better name because it operates on the database file only.
This commit is contained in:
parent
b920facdff
commit
ab235f0099
12
Makefile
12
Makefile
@ -11,24 +11,24 @@ config_path := $(DESTDIR)/$(SYSCONFDIR)/soju/config
|
||||
goflags := $(GOFLAGS) \
|
||||
-ldflags="-X 'git.sr.ht/~emersion/soju/config.DefaultPath=$(config_path)'"
|
||||
|
||||
all: soju sojuctl doc/soju.1
|
||||
all: soju sojudb doc/soju.1
|
||||
|
||||
soju:
|
||||
$(GO) build $(goflags) ./cmd/soju
|
||||
sojuctl:
|
||||
$(GO) build $(goflags) ./cmd/sojuctl
|
||||
sojudb:
|
||||
$(GO) build $(goflags) ./cmd/sojudb
|
||||
doc/soju.1: doc/soju.1.scd
|
||||
$(SCDOC) <doc/soju.1.scd >doc/soju.1
|
||||
|
||||
clean:
|
||||
$(RM) -f soju sojuctl doc/soju.1
|
||||
$(RM) -f soju sojudb doc/soju.1
|
||||
install:
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
||||
mkdir -p $(DESTDIR)/$(SYSCONFDIR)/soju
|
||||
mkdir -p $(DESTDIR)/var/lib/soju
|
||||
cp -f soju sojuctl $(DESTDIR)$(PREFIX)/$(BINDIR)
|
||||
cp -f soju sojudb $(DESTDIR)$(PREFIX)/$(BINDIR)
|
||||
cp -f doc/soju.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
||||
[ -f $(config_path) ] || cp -f config.in $(config_path)
|
||||
|
||||
.PHONY: soju sojuctl clean install
|
||||
.PHONY: soju sojudb clean install
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
"git.sr.ht/~emersion/soju/database"
|
||||
)
|
||||
|
||||
const usage = `usage: sojuctl [-config path] <action> [options...]
|
||||
const usage = `usage: sojudb [-config path] <action> [options...]
|
||||
|
||||
create-user <username> [-admin] Create a new user
|
||||
change-password <username> Change password for a user
|
@ -7,7 +7,7 @@ Alternatively, you can compile it from source (see the [README]).
|
||||
|
||||
To create an admin user and start soju, run these commands:
|
||||
|
||||
sojuctl create-user <soju username> -admin
|
||||
sojudb create-user <soju username> -admin
|
||||
soju -listen irc+insecure://127.0.0.1:6667
|
||||
|
||||
soju will listen for unencrypted IRC connections on the default port. This is
|
||||
|
Loading…
Reference in New Issue
Block a user