diff options
Diffstat (limited to 'scripts/new.md')
-rwxr-xr-x | scripts/new.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/new.md b/scripts/new.md new file mode 100755 index 0000000..034480a --- /dev/null +++ b/scripts/new.md @@ -0,0 +1,9 @@ +#!/bin/bash + +echo -n "Input blog post title: " +read title + +echo -n "Input blog post category: " +read category + +sudo docker run -it --entrypoint python3 -v "$(pwd)/edaweb.conf":/app/edaweb.conf -v "$(pwd)/$1":/app/$1 --link mariadb:mysql --rm jwansek/edaweb /app/parser.py save -m /app/$1 -u root -c $category -t $title |