File tree Expand file tree Collapse file tree 5 files changed +11
-8
lines changed
Expand file tree Collapse file tree 5 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 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
38exit 0
49
5- # aptitude search --disable-columns --display-format "%p" <TERMS>
6-
710# 100% sure to remove
811apt autoremove --purge
912
Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ echo -e 'Acquire::Queue-mode "access";\nAcquire::http::Dl-Limit "1000";' >/etc/a
326326packages/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
332332find /var/mail/ -type f
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ if [ -r "$CERT_EXPIRY_CONFIG" ]; then
5959fi
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
Original file line number Diff line number Diff line change 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:.]+' \
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments