View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001340 | Blog | public | 2014-11-19 00:50 | 2017-03-06 21:14 | |
Reporter | MartinGummi | Assigned To | egal | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Default | OS | any | OS Version | any |
Summary | 0001340: script with syntax errors after php update from debian | ||||
Description | /usr/lib/php5/sessionclean looks like an invalid option of sed script before update ==================== # first find all used files and touch them (hope it's not massive amount of files) [ -x /usr/bin/lsof ] && /usr/bin/lsof -w -l +d "${1}" | awk -- '{ if (NR > 1) { print $9; } }' | xargs -i touch -c {} # find all files older then maxlifetime find "${1}" -depth -mindepth 1 -maxdepth 1 -ignore_readdir_race -type f -cmin "+${2}" -delete script after update =================== #!/bin/sh # first find all used files and touch them (hope it's not massive amount of files) [ -x /usr/bin/lsof ] && /usr/bin/lsof -w -l +d "${1}" -F0 | sed -zne "s/^n//p" | xargs -0i echo touch -c -h "'{}'" # find all files older then maxlifetime find "${1}" -depth -mindepth 1 -maxdepth 1 -ignore_readdir_race -type f -cmin "+${2}" -delete | ||||
Steps To Reproduce | [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime) | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2014-11-19 00:50 | MartinGummi | New Issue | |
2014-11-19 01:11 | MartinGummi | Description Updated | |
2014-11-19 01:11 | MartinGummi | Steps to Reproduce Updated | |
2017-03-06 21:14 | egal | Note Added: 0005538 | |
2017-03-06 21:14 | egal | Status | new => closed |
2017-03-06 21:14 | egal | Assigned To | => egal |
2017-03-06 21:14 | egal | Resolution | open => fixed |