diff options
author | Ted B <lantrix@pobox.com> | 2020-12-03 23:24:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 23:24:33 +0300 |
commit | e65ff4aabaa0813379c6e6f7c074b429ce73b5e4 (patch) | |
tree | ea1beaa9a5cbe2a23b2795c74123ad47a72f9863 /old | |
parent | 73936ddd4361e60c059bf507b805212206707c2f (diff) |
Fix spelling in VM (#1706)
Signed-off-by: Lantrix <lantrix@pobox.com>
Diffstat (limited to 'old')
-rw-r--r-- | old/format-sda-nuc-server.sh | 2 | ||||
-rw-r--r-- | old/modsecurity.sh | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/old/format-sda-nuc-server.sh b/old/format-sda-nuc-server.sh index 2fe83979..1dd9c118 100644 --- a/old/format-sda-nuc-server.sh +++ b/old/format-sda-nuc-server.sh @@ -50,7 +50,7 @@ install_if_not zfsutils-linux isMounted() { findmnt -rno SOURCE,TARGET "$1" >/dev/null;} #path or device isDevMounted() { findmnt -rno SOURCE "$1" >/dev/null;} #device only isPathMounted() { findmnt -rno TARGET "$1" >/dev/null;} #path only -isDevPartOfZFS() { zpool status | grep "$1" >/dev/null;} #device memeber of a zpool +isDevPartOfZFS() { zpool status | grep "$1" >/dev/null;} #device member of a zpool if isPathMounted "/mnt/ncdata"; #Spaces in path names are ok. then diff --git a/old/modsecurity.sh b/old/modsecurity.sh index 07068870..8ac739cc 100644 --- a/old/modsecurity.sh +++ b/old/modsecurity.sh @@ -26,7 +26,7 @@ mv /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/modsecurity.co msg_box "WARNING WARNING WARNING WARNING WARNING WARNING: -Do not enable active defence if you don't know what you're doing! +Do not enable active defense if you don't know what you're doing! It will break OnlyOffice, and it may break other stuff as well in Nextcloud as it's blocking access to files automatically. @@ -37,7 +37,7 @@ You can disable it by typing this command in your shell: sed -i 's/SecRuleEngine .*/SecRuleEngine DetectionOnly/g' /etc/modsecurity/modsecurity.conf YOU HAVE BEEN WARNED." -if yesno_box_yes "Do you want to enable active defence?" +if yesno_box_yes "Do you want to enable active defense?" then sed -i 's|SecRuleEngine .*|SecRuleEngine on|g' /etc/modsecurity/modsecurity.conf fi @@ -85,7 +85,7 @@ cat << MODSECWHITE > "/etc/modsecurity/whitelist.conf" </Directory> MODSECWHITE -# Don't log in Apache2 error.log, only in a seperate log (/var/log/apache2/modsec_audit.log) +# Don't log in Apache2 error.log, only in a separate log (/var/log/apache2/modsec_audit.log) check_command sed -i 's|SecDefaultAction "phase:1,log,auditlog,pass"|# SecDefaultAction "phase:1,log,auditlog,pass"|g' /etc/modsecurity/crs/crs-setup.conf check_command sed -i 's|SecDefaultAction "phase:2,log,auditlog,pass"|# SecDefaultAction "phase:2,log,auditlog,pass"|g' /etc/modsecurity/crs/crs-setup.conf check_command sed -i 's|# SecDefaultAction "phase:1,nolog,auditlog,pass"|SecDefaultAction "phase:1,nolog,auditlog,pass"|g' /etc/modsecurity/crs/crs-setup.conf |