apache: improve permissions in save_apache_status script
This commit is contained in:
parent
8b6c1341f9
commit
e557a3eaae
|
@ -36,6 +36,7 @@ The **patch** part changes incrementally at each release.
|
||||||
* webapps/evoadmin-web Overload templates if needed
|
* webapps/evoadmin-web Overload templates if needed
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
* apache: improve permissions in save_apache_status script
|
||||||
* elasticsearch: listen on local interface only by default
|
* elasticsearch: listen on local interface only by default
|
||||||
* evocheck: upstream version 19.11.2
|
* evocheck: upstream version 19.11.2
|
||||||
* evocheck: cron jobs execute in verbose
|
* evocheck: cron jobs execute in verbose
|
||||||
|
|
|
@ -7,11 +7,15 @@ URL="http://127.0.0.1/server-status"
|
||||||
TS=`date +%Y%m%d%H%M%S`
|
TS=`date +%Y%m%d%H%M%S`
|
||||||
FILE="${DIR}/${TS}.html"
|
FILE="${DIR}/${TS}.html"
|
||||||
|
|
||||||
mkdir -p "${DIR}"
|
if [ ! -d "${DIR}" ]; then
|
||||||
|
mkdir -p "${DIR}"
|
||||||
wget -q -O "${FILE}" "${URL}"
|
chown root:adm "${DIR}"
|
||||||
|
chmod 750 "${DIR}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
wget -q -U "save_apache_status" -O "${FILE}" "${URL}"
|
||||||
chmod 640 "${FILE}"
|
chmod 640 "${FILE}"
|
||||||
|
chown root:adm "${FILE}"
|
||||||
|
|
||||||
find "${DIR}" -type f -mtime +1 -delete
|
find "${DIR}" -type f -mtime +1 -delete
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue