Skip to content

Commit e894116

Browse files
committed
setup root keep
1 parent 220beb9 commit e894116

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/drone/dcape-app/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ DCAPE_COMPOSE ?= $(DCAPE_TAG)-compose
2525
DCAPE_DC_YML ?= /opt/dcape-app/docker-compose.yml
2626
DCAPE_DC_USED ?= true
2727
PERSIST_FILES ?=
28+
# Empty or 'keep'
29+
SETUP_ROOT_OPTS ?=
2830

2931
# ------------------------------------------------------------------------------
3032
# .env template
@@ -225,7 +227,7 @@ $(CFGSAMPLE):
225227
.drone-default:
226228
@echo "*** $@ ***" ; \
227229
[ $$USE_DB != yes ] || $(MAKE) -s db-create ; \
228-
[ -z "$$PERSIST_FILES" ] || . setup root ; cp -r $$PERSIST_FILES $$APP_ROOT ; \
230+
[ -z "$$PERSIST_FILES" ] || . setup root $(SETUP_ROOT_OPTS); cp -r $$PERSIST_FILES $$APP_ROOT ; \
229231
[ "$(DCAPE_DC_USED)" != true ] || args="-f $(DCAPE_DC_YML) -f docker-compose.yml" ; \
230232
docker-compose -p $(APP_TAG) --env-file $(CFG) $$args up -d --force-recreate
231233

0 commit comments

Comments
 (0)