mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-11 02:49:35 -06:00
20465 fix script re-upload
This commit is contained in:
parent
e1bf27e4db
commit
9dcf9475cc
@ -232,6 +232,9 @@ STORAGES = {
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"BACKEND": "extras.storage.ScriptFileSystemStorage",
|
"BACKEND": "extras.storage.ScriptFileSystemStorage",
|
||||||
|
"OPTIONS": {
|
||||||
|
"allow_overwrite": True,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -247,6 +250,7 @@ STORAGES = {
|
|||||||
"OPTIONS": {
|
"OPTIONS": {
|
||||||
'access_key': 'access key',
|
'access_key': 'access key',
|
||||||
'secret_key': 'secret key',
|
'secret_key': 'secret key',
|
||||||
|
"allow_overwrite": True,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -243,6 +243,9 @@ SESSION_FILE_PATH = None
|
|||||||
# },
|
# },
|
||||||
# "scripts": {
|
# "scripts": {
|
||||||
# "BACKEND": "extras.storage.ScriptFileSystemStorage",
|
# "BACKEND": "extras.storage.ScriptFileSystemStorage",
|
||||||
|
# "OPTIONS": {
|
||||||
|
# "allow_overwrite": True,
|
||||||
|
# },
|
||||||
# },
|
# },
|
||||||
# }
|
# }
|
||||||
|
|
||||||
|
|||||||
@ -291,6 +291,9 @@ DEFAULT_STORAGES = {
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"BACKEND": "extras.storage.ScriptFileSystemStorage",
|
"BACKEND": "extras.storage.ScriptFileSystemStorage",
|
||||||
|
"OPTIONS": {
|
||||||
|
"allow_overwrite": True,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
STORAGES = DEFAULT_STORAGES | STORAGES
|
STORAGES = DEFAULT_STORAGES | STORAGES
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user