commit 2f251bfc0c34d9da1cb9fbb517dfec8b15a35cea from: jrmu via: Izzy Blacklock date: Sat Jul 15 22:01:03 2023 UTC Use freeshell login class by default commit - d9793b5f5fae9cccca8dbb43c7b8d5826d9bd624 commit + 2f251bfc0c34d9da1cb9fbb517dfec8b15a35cea 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 blob - 7cacaa710c615561b54c005d1cc5e5e0f5a88f26 blob + 5e7a3a9e2720a5370a8fd078f15ff727d6f8c4bc --- lib/BotNow/Shell.pm +++ lib/BotNow/Shell.pm @@ -27,6 +27,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"; @@ -336,6 +337,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; }