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:
delthas 2023-01-20 15:49:57 +01:00 committed by Simon Ser
parent b920facdff
commit ab235f0099
3 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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