commit - e104db79a87be12283116223fac98370f52fe907
commit + 9660b701d898d257c5b4dff230b7f86d127c5940
blob - b7e51b90f555eacf143114b4898f49b495c85e86
blob + ebbb96021a1f198055225704ee83f049d87992ea
--- Shell.pm
+++ Shell.pm
system "doas chown -R $username:www /var/www/htdocs/$username /home/$username/htdocs";
system "doas chmod -R o-rx /var/www/htdocs/$username /home/$username/htdocs";
system "doas chmod -R g+rwx /var/www/htdocs/$username /home/$username/htdocs";
- system "doas chown root:wheel $httpdconfpath $pfconfpath $acmeconfpath";
- system "doas chmod g+rw $httpdconfpath $pfconfpath $acmeconfpath";
+ system "doas chown root:wheel $httpdconfpath $pfconfpath $acmeconfpath $relaydconfpath";
+ system "doas chmod g+rw $httpdconfpath $pfconfpath $acmeconfpath $relaydconfpath";
my $lusername = lc $username;
my $block = <<"EOF";
server "$lusername.$hostname" {
sub deleteshell {
my ($username, $bindhost) = @_;
my $lusername = lc $username;
- system "doas chown root:wheel $httpdconfpath $pfconfpath $acmeconfpath";
- system "doas chmod g+rw $httpdconfpath $pfconfpath $acmeconfpath";
+ system "doas chown root:wheel $httpdconfpath $pfconfpath $acmeconfpath $relaydconfpath";
+ system "doas chmod g+rw $httpdconfpath $pfconfpath $acmeconfpath $relaydconfpath";
system "doas groupdel $username";
system "doas userdel $username";
system "doas rm -f /etc/ssl/$lusername.$hostname.crt /etc/ssl/$lusername.$hostname.fullchain.pem /etc/ssl/private/$lusername.$hostname.key";