Compare commits

...
2 Commits
Author SHA1 Message Date
dyoder d8c144ff76 initial commit 2023-04-26 12:22:22 -04:00
dyoder c2ebb5cfeb initial commit 2023-04-26 12:22:13 -04:00
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -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 }
+5
View File
@@ -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