Skip to content

Commit b7a0d41

Browse files
committed
daily
1 parent d9ad945 commit b7a0d41

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

debian-setup/deb-legacy-hunter.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/bin/bash
2+
#
3+
# Clean up legacy packages after dist-upgrade
4+
#
5+
# aptitude search --disable-columns --display-format "%p" <TERMS>
26

7+
# Execute commands manually
38
exit 0
49

5-
#aptitude search --disable-columns --display-format "%p" <TERMS>
6-
710
# 100% sure to remove
811
apt autoremove --purge
912

debian-setup/debian-setup2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ echo -e 'Acquire::Queue-mode "access";\nAcquire::http::Dl-Limit "1000";' >/etc/a
326326
packages/etckeeper
327327

328328
# Remove old configuration files
329-
find /etc/ -type f "(" -iname "*old" -or -iname "*dist" ")" -print -delete
329+
find /etc/ -type f "(" -name "*-old" -o -name "*-dist" ")" -print -delete
330330

331331
# List of emails
332332
find /var/mail/ -type f

monitoring/cert-expiry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if [ -r "$CERT_EXPIRY_CONFIG" ]; then
5959
fi
6060

6161
# Certificates in /etc/
62-
find /etc/ "(" -iname "*.crt" -or -iname "*.pem" ")" \
62+
find /etc/ "(" -iname "*.crt" -o -iname "*.pem" ")" \
6363
-not -path "/etc/ssl/certs/*" \
6464
-not -path "/etc/letsencrypt/archive/*" \
6565
| while read -r CERT; do

monitoring/siteprotection.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
# Exclude WordPress cache: cache directory, Focus Cache
1616
# Exclude Laravel view cache: SHA-1, xxHash
17-
#find /home/ -type f "(" -iname "*.php" -or -iname ".js" -or -iname ".htaccess" -or -iname ".env" ")" \
18-
find /home/ -type f "(" -iname "*.php" -or -iname ".htaccess" -or -iname ".env" ")" \
19-
"(" -cmin -61 -or -mmin -61 ")" -printf '%p @%TH:%TM:%TS\n' \
17+
#find /home/ -type f "(" -iname "*.php" -o -iname ".js" -o -iname ".htaccess" -o -iname ".env" ")" \
18+
find /home/ -type f "(" -iname "*.php" -o -iname ".htaccess" -o -iname ".env" ")" \
19+
"(" -cmin -61 -o -mmin -61 ")" -printf '%p @%TH:%TM:%TS\n' \
2020
| grep -v -E -x '/home/[[:alnum:]]+/website/code/wp-content/cache/\S+\.php @[0-9:.]+' \
2121
| grep -v -E -x '/home/[[:alnum:]]+/website/code/wp-content/focus-object-cache/[a-z_-]+/\S+\.php @[0-9:.]+' \
2222
| grep -v -E -x '/home/[[:alnum:]]+/website/code/storage/framework/views/[0-9a-z]{40}(\.blade)?\.php @[0-9:.]+' \

webserver/Production-website.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ wp db optimize
258258

259259
- Sample / [Demo content](https://thispersondoesnotexist.com/) :snail:
260260
- Code editor configuration file `.editorconfig`
261-
- Files: `find -iname "*example*" -or -iname "*sample*" -or -iname "*demo*"`
261+
- Files: `find -iname "*example*" -o -iname "*sample*" -o -iname "*demo*"`
262262
- PHP-FPM pool configuration: `env[WP_ENV] = production`
263263

264264
### VCS

0 commit comments

Comments
 (0)