Remove useless grav_cron file
This commit is contained in:
parent
30a605dae3
commit
fdda156c25
19
grav_cron
19
grav_cron
|
@ -1,19 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
GRAV_ROOT="/var/www/grav"
|
||||
GRAV_UPDATE_LOG="${GRAV_ROOT}/logs/update"
|
||||
|
||||
# Need to work in the Grav root directory
|
||||
cd "${GRAV_ROOT}" || exit 1
|
||||
|
||||
# Display the Grav's version and check if an update is available
|
||||
GRAV_UPDATE=$("${GRAV_ROOT}"/bin/gpm version|grep upgradable)
|
||||
|
||||
# Verify if the variable contains something
|
||||
if [ -z "${GRAV_UPDATE}" ]; then
|
||||
rm -f "${GRAV_UPDATE_LOG}"
|
||||
else
|
||||
touch "${GRAV_UPDATE_LOG}"
|
||||
fi
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue