1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

Turn chasquid-userdb into chasquid-util

This patch removes chasquid-userdb and adds a more generic and extensive
chasquid-util, that supports various operations on user databases as well as
aliases lookups.

The code is not very pretty but for now I took a more practical approach, the
tool is ancillary and can be tidied up later.
This commit is contained in:
Alberto Bertogli
2016-09-24 00:44:13 +01:00
parent 859d4733f8
commit 3d06fb3a78
6 changed files with 205 additions and 101 deletions

View File

@@ -35,10 +35,8 @@ function chasquid() {
}
function add_user() {
go run ${TBASE}/../../cmd/chasquid-userdb/chasquid-userdb.go \
--database "config/domains/${1}/users" \
--add_user "${2}" \
--password "${3}" \
go run ${TBASE}/../../cmd/chasquid-util/chasquid-util.go \
adduser "config/domains/${1}/users" "${2}" --password "${3}" \
>> .add_user_logs
}