summaryrefslogtreecommitdiff
path: root/misc/disable-really-simple-ssl.makefile
blob: b8789c2e85546b842dd3cd7960aa45224506c69f (plain)
1
2
3
4
5
6
7
8
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."