8#define WHO "tinydns-conf"
12 logmsg(
WHO,100,USAGE,
"tinydns-conf acct logacct /tinydns myip");
21int main(
int argc,
char **argv)
35 logmsg(
WHO,111,FATAL,B(
"unknown account: ",
loguser));
48 outs(
"#!/bin/sh\nexec 2>&1\nexec envuidgid ");
outs(
user);
49 outs(
" envdir ./env softlimit -d4500000 ");
62 outs(
"#!/bin/sh\nexec ");
67 start(
"root/add-childns");
68 outs(
"#!/bin/sh\nexec ");
69 outs(
auto_home);
outs(
"/bin/tinydns-edit data data.new add childns ${1+\"$@\"}\n");
73 start(
"root/add-host");
74 outs(
"#!/bin/sh\nexec ");
79 start(
"root/add-alias");
80 outs(
"#!/bin/sh\nexec ");
85 start(
"root/add-host6");
86 outs(
"#!/bin/sh\nexec ");
91 start(
"root/add-alias6");
92 outs(
"#!/bin/sh\nexec ");
93 outs(
auto_home);
outs(
"/bin/tinydns-edit data data.new add alias6 ${1+\"$@\"}\n");
98 outs(
"#!/bin/sh\nexec ");
103 start(
"root/Makefile");
104 outs(
"data.cdb: data\n");
void init(const char *d, const char *f)
void start(const char *s)
void makedir(const char *s)
void makelog(const char *user, int uid, int gid)