You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-20 01:42:27 +03:00
16 lines
476 B
Python
16 lines
476 B
Python
#!/usr/bin/env python3
|
|
|
|
import configparser
|
|
import sys
|
|
|
|
config = configparser.ConfigParser()
|
|
config.read('/etc/columnstore/storagemanager.cnf')
|
|
|
|
storage = config.get('ObjectStorage', 'service', fallback='LocalStorage')
|
|
region = config.get('S3', 'region', fallback='some_region')
|
|
bucket = config.get('S3', 'bucket', fallback='some_bucket')
|
|
|
|
if storage.lower() == 's3' and not region.lower() == 'some_region' and not bucket.lower() == 'some_bucket':
|
|
sys.exit(0)
|
|
sys.exit(1)
|