commit - 4bac7b57a63792f593f308d20a1ffe050f41e45a
commit + 0b43d183bcae91d4cb5255c82b8c7cbc253373d8
blob - 4a204786533077e78963583e6aa94f1f7929590d
blob + b548c1f34c6a20fdaa4ad8088ddd766dff6cda88
--- Shell.pm
+++ Shell.pm
my $mailfrom = $conf{mailfrom};
my $mailname = $conf{mailname};
my $approval = $conf{approval};
+my $loginclass = $conf{loginclass} || "freeshell";
my $passpath = "/etc/passwd";
my $httpdconfpath = "/etc/httpd.conf";
my $acmeconfpath = "/etc/acme-client.conf";
~ * * * * acme-client $lusername.$hostname && rcctl reload relayd
EOF
system "echo $block | doas crontab -";
+ system "doas usermod -L $loginclass $username";
#edquota $username
return 1;
}
blob - 787101ca95004ddb335e121eb94880494b02f44d
blob + 76b3e340f80128afa2f2c7e1e756a7c9912b2c4a
--- botnow.conf.example
+++ botnow.conf.example
#Verbosity: NONE, ERRORS, WARNINGS, ALL
#verbose = ERRORS
+
+#New shell user login class
+#loginclass = freeshell