Remove MINIO_PATH

This commit is contained in:
Quentin 2021-12-08 16:36:33 +01:00
parent 322e949de0
commit 69871eeee8

View file

@ -2,7 +2,6 @@
import json, os, sys, time, pathlib, socket, shutil import json, os, sys, time, pathlib, socket, shutil
STORAGE_PATH = os.path.join(os.getcwd(), '.minio-testnet') STORAGE_PATH = os.path.join(os.getcwd(), '.minio-testnet')
MINIO_PATH = '/srv'
HOSTS_PATH = os.path.join(STORAGE_PATH, 'hosts.txt') HOSTS_PATH = os.path.join(STORAGE_PATH, 'hosts.txt')
UNIX_SOCK = os.path.join(STORAGE_PATH, 'deploy.sock') UNIX_SOCK = os.path.join(STORAGE_PATH, 'deploy.sock')
DATA_PATH = lambda nid: os.path.join(STORAGE_PATH, 'data'+str(nid)) DATA_PATH = lambda nid: os.path.join(STORAGE_PATH, 'data'+str(nid))
@ -14,7 +13,6 @@ def main():
def leader(): def leader():
shutil.rmtree(STORAGE_PATH, ignore_errors=True) shutil.rmtree(STORAGE_PATH, ignore_errors=True)
os.makedirs(STORAGE_PATH) os.makedirs(STORAGE_PATH)
os.makedirs(MINIO_PATH, exist_ok=True)
print(STORAGE_PATH) print(STORAGE_PATH)
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)