Skip to content
Snippets Groups Projects
Select Git revision
  • c3088d39ce57f3d3f6ddfa30b8b67273e3d8451d
  • master default protected
  • 7771-harden-postgres-backup
  • pgsql-dump-with-snapshots
  • update-colors
  • update-docs-css
  • usb-repair-stick
  • desktop-notification
  • 7000-corrections
  • db-detector
10 results

check_clientbackup.sh

Blame
  • detect-mysql 569 B
    # ----------------------------------------------------------------------------
    # 
    # EOL - End of life detection - Warn before reaching end of life
    #
    # detect version of MARIADB
    #
    # ----------------------------------------------------------------------------
    # 2020-02-25  v1.0  <axel.hahn@iml.unibe.ch>
    # ----------------------------------------------------------------------------
    
    # ----- example output
    #   mysql --version
    #   mysql  Ver 14.14 Distrib 5.5.62, for debian-linux-gnu (x86_64) using readline 6.3
    
    mysql --version | awk '{ print $5 }' | cut -f 1,2 -d '.'