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) \ goflags := $(GOFLAGS) \
-ldflags="-X 'git.sr.ht/~emersion/soju/config.DefaultPath=$(config_path)'" -ldflags="-X 'git.sr.ht/~emersion/soju/config.DefaultPath=$(config_path)'"
all: soju sojuctl doc/soju.1 all: soju sojudb doc/soju.1
soju: soju:
$(GO) build $(goflags) ./cmd/soju $(GO) build $(goflags) ./cmd/soju
sojuctl: sojudb:
$(GO) build $(goflags) ./cmd/sojuctl $(GO) build $(goflags) ./cmd/sojudb
doc/soju.1: doc/soju.1.scd doc/soju.1: doc/soju.1.scd
$(SCDOC) <doc/soju.1.scd >doc/soju.1 $(SCDOC) <doc/soju.1.scd >doc/soju.1
clean: clean:
$(RM) -f soju sojuctl doc/soju.1 $(RM) -f soju sojudb doc/soju.1
install: install:
mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR) mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1 mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
mkdir -p $(DESTDIR)/$(SYSCONFDIR)/soju mkdir -p $(DESTDIR)/$(SYSCONFDIR)/soju
mkdir -p $(DESTDIR)/var/lib/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 cp -f doc/soju.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
[ -f $(config_path) ] || cp -f config.in $(config_path) [ -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" "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 create-user <username> [-admin] Create a new user
change-password <username> Change password for a 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: 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 -listen irc+insecure://127.0.0.1:6667
soju will listen for unencrypted IRC connections on the default port. This is soju will listen for unencrypted IRC connections on the default port. This is