aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-11-13 17:26:00 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2022-11-13 17:26:00 +0000
commit8fae8f38c2c95ed99cd16fc450519915193ae895 (patch)
tree5a314332f8cc08d7e2d98e408f632a89b42829d4 /scripts
parent5347a8ddc2001ead97e426523b4b03bd797591fb (diff)
downloadeda.gay-8fae8f38c2c95ed99cd16fc450519915193ae895.tar.gz
eda.gay-8fae8f38c2c95ed99cd16fc450519915193ae895.zip
Added new script, added two images
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/new.md9
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