cronic doesn't report errors

This commit is contained in:
Bob Mottram 2016-05-14 13:36:19 +01:00
parent 97fbdae1aa
commit afb33abc0c
2 changed files with 3 additions and 4 deletions

View File

@ -24,16 +24,13 @@ else
ERR=$TRACE
fi
if [ $RESULT -ne 0 -o -s "$ERR" ]
if [ $RESULT -ne 0 ]
then
echo "Cronic detected failure or error output for the command:"
echo "$@"
echo
echo "RESULT CODE: $RESULT"
echo
echo "ERROR OUTPUT:"
cat "$ERR"
echo
echo "STANDARD OUTPUT:"
cat "$OUT"
if [ $TRACE != $ERR ]

View File

@ -8722,6 +8722,8 @@ function install_gnu_social_plugin_sharings {
php scripts/checkschema.php
cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings
php scripts/seedsharings.php
cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
php scripts/checkschema.php
# Languages
cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en/LC_MESSAGES