|
|
@ -18,7 +18,15 @@ initKnowledgeBase(){ |
|
|
|
echo "/knowledgebase.sqlite3" >> "${dataDir}/.gitignore" |
|
|
|
echo "/knowledgebase.sqlite3" >> "${dataDir}/.gitignore" |
|
|
|
|
|
|
|
|
|
|
|
git -C "$dataDir" add .gitignore > "$output" |
|
|
|
git -C "$dataDir" add .gitignore > "$output" |
|
|
|
git -C "$dataDir" commit -m "Knowledge base initialised" > output |
|
|
|
git -C "$dataDir" commit -m "Knowledge base initialised" > "$output" |
|
|
|
|
|
|
|
if type -p git-lfs; then |
|
|
|
|
|
|
|
git -C "$dataDir" lfs install > "$output" |
|
|
|
|
|
|
|
for i in "jpg" "jpeg" "gif" "png" "pdf"; do |
|
|
|
|
|
|
|
git -C "$dataDir" lfs track "*.$i" > "$output" |
|
|
|
|
|
|
|
done |
|
|
|
|
|
|
|
git -C add .gitattributes |
|
|
|
|
|
|
|
git commit -m "Initialises Git lfs" |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
initDB |
|
|
|
initDB |
|
|
|
} |
|
|
|
} |
|
|
|