Adds the ability to add files that already exist
Work on #16 This was a relatively large amount of work. It introduces assets which are stored in the assets sub directory and stored in the database with the asset type in the database.
This commit is contained in:
parent
980eef941b
commit
a3bbe9b4a2
4 changed files with 123 additions and 15 deletions
3
inc/init
3
inc/init
|
@ -15,7 +15,8 @@ initKnowledgeBase(){
|
|||
git init "$dataDir" > "$output"
|
||||
|
||||
# TODO: make gitignore use new sqlite file
|
||||
echo "/knowledgebase.sqlite3" >> "${dataDir}/.gitignore"
|
||||
# Datadir always has a trailing slash
|
||||
echo "/knowledgebase.sqlite3" >> "${dataDir}.gitignore"
|
||||
|
||||
git -C "$dataDir" add .gitignore > "$output"
|
||||
git -C "$dataDir" commit -m "Knowledge base initialised" > "$output"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue