Skip to content

Commit d107dd9

Browse files
authored
Docker: Cleanup CfT and Chromium profiles (#3123)
* Cleanup Chromium profiles * Widen regex search
1 parent a2aefd8 commit d107dd9

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

NodeChrome/chrome-cleanup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ cleanup_stuck_chrome_processes() {
1111

1212
cleanup_tmp_chrome_files() {
1313
echo -n "Deleting all Chrome files in /tmp... "
14-
find /tmp -name ".com.google.Chrome.*" -type d -mtime +${SE_BROWSER_LEFTOVERS_TEMPFILES_DAYS} -exec rm -rf "{}" +
14+
find /tmp -name "*com.google.Chrome.*" -type d -mtime +${SE_BROWSER_LEFTOVERS_TEMPFILES_DAYS} -exec rm -rf "{}" +
15+
find /tmp -name "*org.chromium.Chromium.*" -type d -mtime +${SE_BROWSER_LEFTOVERS_TEMPFILES_DAYS} -exec rm -rf "{}" +
1516
echo "DONE."
1617
}
1718

NodeChromium/chrome-cleanup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ cleanup_stuck_chrome_processes() {
1010
}
1111

1212
cleanup_tmp_chrome_files() {
13-
echo -n "Deleting all Chrome files in /tmp... "
14-
find /tmp -name ".com.google.Chrome.*" -type d -mtime +${SE_BROWSER_LEFTOVERS_TEMPFILES_DAYS} -exec rm -rf "{}" +
13+
echo -n "Deleting all Chromium files in /tmp... "
14+
find /tmp -name "*org.chromium.Chromium.*" -type d -mtime +${SE_BROWSER_LEFTOVERS_TEMPFILES_DAYS} -exec rm -rf "{}" +
1515
echo "DONE."
1616
}
1717

0 commit comments

Comments
 (0)