From 372de06b4363d38d92c503cc96103b6a879c2820 Mon Sep 17 00:00:00 2001 From: Naoaki Ueda Date: Sun, 4 Sep 2022 18:23:17 +0900 Subject: Initial commit --- misc/disable-really-simple-ssl.makefile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 misc/disable-really-simple-ssl.makefile (limited to 'misc/disable-really-simple-ssl.makefile') diff --git a/misc/disable-really-simple-ssl.makefile b/misc/disable-really-simple-ssl.makefile new file mode 100644 index 0000000..b8789c2 --- /dev/null +++ b/misc/disable-really-simple-ssl.makefile @@ -0,0 +1,9 @@ +WP_PATH = $(patsubst %/,%,$(HTML_DIR)/$(WP_INSTALL_DIR)) +URL_BASE = $(patsubst %/,%,$(LOCAL_URL)/$(WP_INSTALL_DIR)) + +.PHONY: disable-ssl +disable-ssl: deactive-file = $(shell find $(WP_PATH)/wp-content/plugins -name force-deactivate.txt) +disable-ssl: + $(if $(wildcard $(deactive-file)),, $(error force-deactivate.txt: not found)) + cp $(deactive-file) $(basename $(deactive-file)).php + @echo "Success, don't forget to access \`$(URL_BASE)/wp-content/plugins/really-simple-ssl/force-deactivate.php\` to disable SSL." -- cgit v1.2.3-54-g00ecf