mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-23 12:43:10 +00:00
Merge branch 'debug-toolbar' into dev
This commit is contained in:
commit
63919dc90a
2 changed files with 4 additions and 5 deletions
|
@ -213,10 +213,9 @@ class SnapshotAdmin(SearchResultsAdminMixin, admin.ModelAdmin):
|
|||
delete_snapshots.short_description = "Delete"
|
||||
|
||||
def add_tag(self, request, queryset):
|
||||
if tag and tag.id:
|
||||
tag = request.POST['tag']
|
||||
for obj in queryset:
|
||||
obj.tags.add(tag)
|
||||
tag = request.POST['tag']
|
||||
for obj in queryset:
|
||||
obj.tags.add(tag)
|
||||
|
||||
add_tag.short_description = "Add tag"
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ if [[ -d "$DATA_DIR/archive" ]]; then
|
|||
fi
|
||||
else
|
||||
# create data directory
|
||||
mkdir -p "$DATA_DIR"
|
||||
mkdir -p "$DATA_DIR/logs"
|
||||
chown -R $ARCHIVEBOX_USER:$ARCHIVEBOX_USER "$DATA_DIR"
|
||||
fi
|
||||
chown $ARCHIVEBOX_USER:$ARCHIVEBOX_USER "$DATA_DIR"
|
||||
|
|
Loading…
Reference in a new issue