aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2023-08-15 18:39:24 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2023-08-15 18:39:24 +0000
commit8039228db1ecc500f5372da2adc04ef991303a0e (patch)
treea8291bc4c43aadf8f1a9edd3e9b48f528a131c5a /scripts
parentc4ab716c20729a62f7b78b60029c27e0f166f41c (diff)
downloadeda.gay-8039228db1ecc500f5372da2adc04ef991303a0e.tar.gz
eda.gay-8039228db1ecc500f5372da2adc04ef991303a0e.zip
Added images, fixed scripts, updated index markdown
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/export.sh2
-rwxr-xr-xscripts/new.md9
-rwxr-xr-xscripts/update.sh2
3 files changed, 2 insertions, 11 deletions
diff --git a/scripts/export.sh b/scripts/export.sh
index 66b56e7..4c4af2c 100755
--- a/scripts/export.sh
+++ b/scripts/export.sh
@@ -9,4 +9,4 @@ read export_name
echo "Exporting blog post " $id " to " $export_name
touch $export_name
-sudo docker run -it --entrypoint python3 -v "$(pwd)/edaweb.conf":/app/edaweb.conf -v "$(pwd)/$export_name":/app/$export_name --link mariadb:mysql --rm jwansek/edaweb /app/parser.py export -i $id -u root -o $export_name
+sudo docker run -it --entrypoint python3 -v "$(pwd)/edaweb.conf":/app/edaweb.conf -v "$(pwd)/$export_name":/app/$export_name --network mariadb --rm jwansek/edaweb /app/parser.py export -i $id -u root -o $export_name
diff --git a/scripts/new.md b/scripts/new.md
deleted file mode 100755
index 034480a..0000000
--- a/scripts/new.md
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/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
diff --git a/scripts/update.sh b/scripts/update.sh
index 9734089..5694e3a 100755
--- a/scripts/update.sh
+++ b/scripts/update.sh
@@ -3,4 +3,4 @@
echo -n "Input blog post ID to update: "
read id
-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 update -i $id -u root -m $1
+sudo docker run -it --entrypoint python3 -v "$(pwd)/edaweb.conf":/app/edaweb.conf -v "$(pwd)/$1":/app/$1 --network mariadb --rm jwansek/edaweb /app/parser.py update -i $id -u root -m $1