mirror of
https://github.com/9001/copyparty.git
synced 2026-01-12 15:52:39 -07:00
panic if --shr overlaps with volumes
This commit is contained in:
parent
f4d67ff031
commit
cedfc44420
|
|
@ -3131,7 +3131,10 @@ class AuthSrv(object):
|
||||||
self.log("BUG: /%s not in all_nodes" % (vol.vpath,), 1)
|
self.log("BUG: /%s not in all_nodes" % (vol.vpath,), 1)
|
||||||
vols.append(vol)
|
vols.append(vol)
|
||||||
if shr in vfs.all_nodes:
|
if shr in vfs.all_nodes:
|
||||||
self.log("BUG: %s found in all_nodes" % (shr,), 1)
|
t = "invalid config: a volume is overlapping with the --shr global-option (/%s)"
|
||||||
|
t = t % (shr,)
|
||||||
|
self.log(t, 1)
|
||||||
|
raise Exception(t)
|
||||||
|
|
||||||
for vol in vols:
|
for vol in vols:
|
||||||
dbv = vol.get_dbv("")[0]
|
dbv = vol.get_dbv("")[0]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue