From 1004ead89990c1be24b13e7e3c996cb921c65fd7 Mon Sep 17 00:00:00 2001 From: Nikola Petrov Date: Fri, 8 May 2026 11:39:46 +0200 Subject: [PATCH] move scripts to scripts dir --- .gitignore | 4 ++-- go-form-plugin/go-form-plugin.php | 7 ------- main.php | 13 +++++++++++++ copy_to_wp.sh => scripts/copy_to_wp.sh | 0 remove_wp.sh => scripts/remove_wp.sh | 6 +++--- restart_wp.sh => scripts/restart_wp.sh | 6 +++--- setup_wp.sh => scripts/setup_wp.sh | 0 start_wp.sh => scripts/start_wp.sh | 0 stop_wp.sh => scripts/stop_wp.sh | 0 zip.sh => scripts/zip.sh | 0 10 files changed, 21 insertions(+), 15 deletions(-) create mode 100644 main.php rename copy_to_wp.sh => scripts/copy_to_wp.sh (100%) rename remove_wp.sh => scripts/remove_wp.sh (57%) rename restart_wp.sh => scripts/restart_wp.sh (84%) rename setup_wp.sh => scripts/setup_wp.sh (100%) rename start_wp.sh => scripts/start_wp.sh (100%) rename stop_wp.sh => scripts/stop_wp.sh (100%) rename zip.sh => scripts/zip.sh (100%) diff --git a/.gitignore b/.gitignore index 20da133..dab0739 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -/database -/html +database +html *.zip \ No newline at end of file diff --git a/go-form-plugin/go-form-plugin.php b/go-form-plugin/go-form-plugin.php index b794c95..6ae7e9c 100644 --- a/go-form-plugin/go-form-plugin.php +++ b/go-form-plugin/go-form-plugin.php @@ -1,11 +1,4 @@ /dev/null || true -podman rm $CONTAINER_NAME_DB $CONTAINER_NAME_WP 2>/dev/null || true +podman stop $CONTAINER_NAME_DB $CONTAINER_NAME_WP || true +podman rm $CONTAINER_NAME_DB $CONTAINER_NAME_WP || true # Remove pod -podman pod rm -f $POD_NAME 2>/dev/null || true +podman pod rm -f $POD_NAME || true echo "removed pods" diff --git a/restart_wp.sh b/scripts/restart_wp.sh similarity index 84% rename from restart_wp.sh rename to scripts/restart_wp.sh index 08061ef..450d64d 100755 --- a/restart_wp.sh +++ b/scripts/restart_wp.sh @@ -9,11 +9,11 @@ CONTAINER_NAME_DB='wordpress_db' CONTAINER_NAME_WP='wordpress' # Stop and remove containers -podman stop $CONTAINER_NAME_DB $CONTAINER_NAME_WP 2>/dev/null || true -podman rm $CONTAINER_NAME_DB $CONTAINER_NAME_WP 2>/dev/null || true +podman stop $CONTAINER_NAME_DB $CONTAINER_NAME_WP || true +podman rm $CONTAINER_NAME_DB $CONTAINER_NAME_WP || true # Remove pod -podman pod rm -f $POD_NAME 2>/dev/null || true +podman pod rm -f $POD_NAME || true echo "removed pods" #exit 0 diff --git a/setup_wp.sh b/scripts/setup_wp.sh similarity index 100% rename from setup_wp.sh rename to scripts/setup_wp.sh diff --git a/start_wp.sh b/scripts/start_wp.sh similarity index 100% rename from start_wp.sh rename to scripts/start_wp.sh diff --git a/stop_wp.sh b/scripts/stop_wp.sh similarity index 100% rename from stop_wp.sh rename to scripts/stop_wp.sh diff --git a/zip.sh b/scripts/zip.sh similarity index 100% rename from zip.sh rename to scripts/zip.sh