commit 0b43d183bcae91d4cb5255c82b8c7cbc253373d8 from: jrmu date: Fri Jun 30 15:29:36 2023 UTC Use freeshell login class by default commit - 4bac7b57a63792f593f308d20a1ffe050f41e45a commit + 0b43d183bcae91d4cb5255c82b8c7cbc253373d8 blob - 4a204786533077e78963583e6aa94f1f7929590d blob + b548c1f34c6a20fdaa4ad8088ddd766dff6cda88 --- Shell.pm +++ Shell.pm @@ -25,6 +25,7 @@ my $expires = $conf{expires}; 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"; @@ -334,6 +335,7 @@ EOF ~ * * * * 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 @@ -92,3 +92,6 @@ die = You did not configure botnow.conf! #Verbosity: NONE, ERRORS, WARNINGS, ALL #verbose = ERRORS + +#New shell user login class +#loginclass = freeshell