From 82de6bc849135080a86ace02b52816767b76700e Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Fri, 11 Aug 2023 23:05:14 +0000 Subject: [PATCH] syntax fix [skip ci] --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 147ccc46..9f82bd11 100755 --- a/backup.sh +++ b/backup.sh @@ -16,7 +16,7 @@ fi if [[ $* == *--schedule* ]]; then ( crontab -l 2>/dev/null - echo "0 0 * * * /rmm/backup.sh --auto" + echo "0 0 * * * /rmm/backup.sh --auto > /dev/null 2>&1" ) | crontab - if [ ! -d /rmmbackups ]; then @@ -78,7 +78,7 @@ node /meshcentral/node_modules/meshcentral --dbexport # for import to postgres if grep -q postgres "/meshcentral/meshcentral-data/config.json"; then if ! which jq >/dev/null; then - sudo apt-get install -y jq >null + sudo apt-get install -y jq >/dev/null fi MESH_POSTGRES_USER=$(jq '.settings.postgres.user' /meshcentral/meshcentral-data/config.json -r) MESH_POSTGRES_PW=$(jq '.settings.postgres.password' /meshcentral/meshcentral-data/config.json -r)