Compare commits
2
Commits
31c8a2719b
...
d8c144ff76
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8c144ff76 | ||
|
|
c2ebb5cfeb |
@@ -0,0 +1,4 @@
|
|||||||
|
If ( $(Get-ComputerRestorePoint) -ne $null ) { LogMsg "System Restore is already enabled" ; Exit }
|
||||||
|
LogMsg "Enabling System Restore"
|
||||||
|
Try { Enable-ComputerRestore -Drive $Env:SystemDrive }
|
||||||
|
Catch { LogErr $_.Exception.Message }
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
WEBROOT=/var/www/html
|
||||||
|
if [ -d "${WEBROOT}/wp-content/plugins/wp-fail2ban/filters.d" ]; then
|
||||||
|
echo "Updating fail2ban filters"
|
||||||
|
cp -a "${WEBROOT}/wp-content/plugins/wp-fail2ban/filters.d/. /etc/fail2ban/filter.d/ && /usr/bin/fail2ban-client reload
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user