Commit Diff
Diff:
e104db79a87be12283116223fac98370f52fe907
9660b701d898d257c5b4dff230b7f86d127c5940
Commit:
9660b701d898d257c5b4dff230b7f86d127c5940
Tree:
debfdf7d690d89fd3d01df9b17a86188350a1647
Author:
jrmu <jrmu@ircnow.org>
Committer:
jrmu <jrmu@ircnow.org>
Date:
Sun Mar 5 20:46:01 2023 UTC
Message:
Fix perms issue in Shell.pm
blob - b7e51b90f555eacf143114b4898f49b495c85e86
blob + ebbb96021a1f198055225704ee83f049d87992ea
--- 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 $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" {
@@ -328,8 +328,8 @@ EOF
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";
IRCNow