From 8031e2ffc495252137332dbd7ff662852c342bf5 Mon Sep 17 00:00:00 2001 From: Nikola Petrov Date: Fri, 8 May 2026 12:21:46 +0200 Subject: [PATCH] move scripts --- .gitignore | 4 ++-- 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 8 files changed, 8 insertions(+), 8 deletions(-) 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..5ecc5cf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -/database -/html +scripts/database/* +scripts/html/* *.zip \ No newline at end of file diff --git a/copy_to_wp.sh b/scripts/copy_to_wp.sh similarity index 100% rename from copy_to_wp.sh rename to scripts/copy_to_wp.sh diff --git a/remove_wp.sh b/scripts/remove_wp.sh similarity index 57% rename from remove_wp.sh rename to scripts/remove_wp.sh index 40b2e89..a7bb8af 100755 --- a/remove_wp.sh +++ b/scripts/remove_wp.sh @@ -7,10 +7,10 @@ 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" 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