Commit Diff


commit - 1caa333f0c25a94609aa1c9cfc496b95b094c30f
commit + e104db79a87be12283116223fac98370f52fe907
blob - 67385c94fc891c2e0724e49bddb4106c4a5d9604
blob + b7e51b90f555eacf143114b4898f49b495c85e86
--- Shell.pm
+++ Shell.pm
@@ -286,8 +286,8 @@ sub createshell {
 	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";
-	system "doas chmod g+rw $httpdconfpath $pfconfpath";
+	system "doas chown root:wheel $httpdconfpath $pfconfpath $acmeconfpath";
+	system "doas chmod g+rw $httpdconfpath $pfconfpath $acmeconfpath";
 	my $lusername = lc $username;
 	my $block = <<"EOF";
 server "$lusername.$hostname" {
@@ -328,8 +328,8 @@ EOF
 sub deleteshell {
 	my ($username, $bindhost) = @_;
 	my $lusername = lc $username;
-	system "doas chown root:wheel $httpdconfpath $pfconfpath";
-	system "doas chmod g+rw $httpdconfpath $pfconfpath";
+	system "doas chown root:wheel $httpdconfpath $pfconfpath $acmeconfpath";
+	system "doas chmod g+rw $httpdconfpath $pfconfpath $acmeconfpath";
 	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";