1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-15 10:46:26 +00:00

Improve the file importer (#415)

Improve the bulk importer (tags by filename, document language, Docker container)
This commit is contained in:
Cornelicorn
2020-05-22 15:18:19 +02:00
committed by GitHub
parent 3f67bd471b
commit 612fab2aef
7 changed files with 246 additions and 79 deletions

9
docs-importer/env.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/ash
file=/root/.config/preferences/com.sismics.docs.importer.pref
sed -i "s/env1/$TEEDY_TAG/g" $file
sed -i "s/env2/$TEEDY_ADDTAGS/g" $file
sed -i "s/env3/$TEEDY_LANG/g" $file
sed -i "s,env4,$TEEDY_URL,g" $file
sed -i "s/env5/$TEEDY_USERNAME/g" $file
sed -i "s/env6/$TEEDY_PASSWORD/g" $file
echo "Environment variables replaced"