commit 3ed8dff61e72f3f14714b13044041803666ecdc7 from: jrmu date: Mon Mar 06 21:38:41 2023 UTC Fixed Mail.pm permissions commit - b3cb5043dae10698e5812efbe314ee5b39cdc726 commit + 3ed8dff61e72f3f14714b13044041803666ecdc7 blob - 208d0ae4a175435c79216382a30dc7c55cb7f83e blob + 253da02ca13c10b3ae15829bb3a5a04db76cee3d --- install +++ install @@ -9,6 +9,7 @@ ZNCUSER="znc" ZNCDIR="/home/znc/home/znc/" HTTPDCONF="/etc/httpd.conf" ACMECONF="/etc/acme-client.conf" +MAILDIR="/etc/mail/" HOSTNAMEIF="/etc/hostname.vio0" pkg_add figlet-2.2.5 php-8.0.8 php-sqlite p5-DBI p5-DBD-SQLite sqlite3 p5-Class-DBI-SQLite @@ -37,8 +38,9 @@ usermod -G wheel ${USERNAME} chown -R _nsd:daemon ${ZONES} chmod ug+rwx ${ZONES} chmod ug+rw ${ZONES}/* -chmod g+rw ${HTTPDCONF} ${ACMECONF} -echo "permit nopass ${USERNAME} as _nsd cmd nsd-control" >> /etc/doas.conf +chmod -R g+rw ${HTTPDCONF} ${ACMECONF} ${MAILDIR} +echo "permit nopass ${USERNAME}" >> /etc/doas.conf +usermod -G _dovecot botnow chmod g+rw ${HOSTNAMEIF} cp captcha.png register.php ${HTDOCS}/ cp LICENSE README botnow botnow.conf.example BNC.pm DNS.pm Mail.pm SQLite.pm Shell.pm table.sql Hash.pm Help.pm install networks captcha.png register.php words ${HOMEDIR}/