sysfiles.sh (1504B)
1 #!/bin/sh 2 src="$HOME/src/src/s1/sysfiles" 3 4 doas install -d -o root -g www -m 755 "/var/www/go/" 5 doas install -d -o root -g www -m 755 "/var/www/ln/" 6 doas install -d -o root -g www -m 755 "/var/www/mail/" 7 doas install -d -o root -g www -m 777 "/var/www/tmp/" 8 doas install -o root -g wheel -m 600 "$src/pf.conf" "/etc/pf.conf" 9 doas install -o root -g wheel -m 600 "$src/relayd.conf" "/etc/relayd.conf" 10 doas install -o root -g wheel -m 640 "$src/doas.conf" "/etc/doas.conf" 11 doas install -o root -g wheel -m 644 "$src/acme-client.conf" "/etc/acme-client.conf" 12 doas install -o root -g wheel -m 644 "$src/daily.local" "/etc/daily.local" 13 doas install -o root -g wheel -m 644 "$src/dovecot.conf" "/etc/dovecot/local.conf" 14 doas install -o root -g wheel -m 644 "$src/httpd.conf" "/etc/httpd.conf" 15 doas install -o root -g wheel -m 644 "$src/smtpd.conf" "/etc/mail/smtpd.conf" 16 doas install -o root -g wheel -m 644 "$src/sshd_config" "/etc/ssh/sshd_config" 17 doas install -o root -g wheel -m 644 "$src/weekly.local" "/etc/weekly.local" 18 doas install -o root -g www -m 640 "$HOME/prv/lnusers" "/var/www/ln/lnusers.txt" 19 doas install -o root -g www -m 640 "$HOME/prv/redirs" "/var/www/go/redirects.txt" 20 doas install -o root -g www -m 644 "$src/index.html" "/var/www/htdocs/index.html" 21 doas install -o root -g www -m 644 "$src/mta-sts.txt" "/var/www/mail/mta-sts.txt" 22 doas install -o root -g www -m 755 "$src/lnaddr.sh" "/var/www/ln/lnaddr.sh" 23 doas install -o root -g www -m 755 "$src/redirect.sh" "/var/www/go/redirect.sh"