Skip to content

Commit fa9cbc8

Browse files
committed
Skip audit log backup on 11.10.x
1 parent 4f16669 commit fa9cbc8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bin/ghe-backup

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,11 @@ else
147147
failures="$failures redis"
148148
fi
149149

150-
echo "Backing up audit log ..."
151-
ghe-backup-es-audit-log ||
152-
failures="$failures audit-log"
150+
if [ $GHE_VERSION_MAJOR -ge 2 ]; then
151+
echo "Backing up audit log ..."
152+
ghe-backup-es-audit-log ||
153+
failures="$failures audit-log"
154+
fi
153155

154156
echo "Backing up hookshot logs ..."
155157
ghe-backup-es-hookshot ||

0 commit comments

Comments
 (0)