diff options
| author | Joe Carstairs <me@joeac.net> | 2026-07-02 22:28:13 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-07-02 22:28:13 +0100 |
| commit | e39c7a47fc2063246ba74e40693658ba715e6bb1 (patch) | |
| tree | 63067b42e5701ee1f128b96f4c1330652e99b40a /etherpad/Makefile | |
| parent | 24c55e142bd15e14495901552d766866979eae86 (diff) | |
etherpad/settings is templated for port
Diffstat (limited to 'etherpad/Makefile')
| -rw-r--r-- | etherpad/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/etherpad/Makefile b/etherpad/Makefile index 8679ecf..aa010d5 100644 --- a/etherpad/Makefile +++ b/etherpad/Makefile @@ -16,8 +16,12 @@ install_deps: $(SRC_DIR)/node_modules $(SRC_DIR)/node_modules: $(SRC_DIR) $(SRC_DIR)/settings.json $(SRC_DIR)/package.json $(SRC_DIR)/pnpm-lock.yaml cd $(SRC_DIR) && pnpm install -$(SRC_DIR)/settings.json: $(SRC_DIR) settings.json - cp settings.json $(SRC_DIR)/settings.json +$(SRC_DIR)/settings.json: $(SRC_DIR) settings.json.template +ifdef ETHERPAD_PORT + ETHERPAD_PORT=$(ETHERPAD_PORT) envsubst -no-unset -i settings.json.template -o $(SRC_DIR)/settings.json +else + $(error ETHERPAD_PORT is not defined) +endif clean: rm -rf etherpad-*/ |
