@@ -385,23 +385,26 @@ dev:
385
385
$(MAKE ) install ENVIRONMENT=local
386
386
$(MAKE ) hydrate ENVIRONMENT=local
387
387
388
+
388
389
.phony : confirm
389
- confirm :
390
- @printf " \n\n**DANGER** \n" ; \
391
- echo " About to rm your SERVER data subdirs, all docker volumes and your codebase/web/ directory" ; \
392
- read -p " Are you sure you want to continue and drop your data? [y/N] " REPLY && \
393
- if [ " $$ {REPLY:-N}" == y ] ; then echo " Continuing" ; true ; else printf " Aborting" ; false ; fi && \
394
- printf " \n\n"
390
+ confirm :
391
+ @echo " \n\n"
392
+ @echo -n " Are you sure you want to continue and drop your data? [y/N] " && read ans && [ $$ {ans:-N} = y ]
393
+ @echo " \n\n"
395
394
396
395
# Destroys everything beware!
397
396
.PHONY : clean
398
397
.SILENT : clean
399
- clean : confirm
400
- -docker-compose down -v --remove-orphans && \
401
- echo " Preparing to forcibly remove 'codebase/' and certs/ directories" && \
402
- echo " Note: elevating to root permissions via sudo to remove possible codebase/ with changed ownership" && \
398
+ clean :
399
+ echo " **DANGER** About to rm your SERVER data subdirs, your docker volumes and your codebase/web"
400
+ $(MAKE ) confirm
401
+ -docker-compose down -v --remove-orphans
402
+ # $(MAKE) set-codebase-owner
403
+ echo " Preparing to forcibly remove 'codebase/' and certs/ directories"
404
+ echo " Note: elevating to root permissions via sudo to remove possible codebase/ with changed ownership"
403
405
echo " you might be prompted for local password for sudo permissions:"
404
- sudo /bin/ rm -fr codebase certs && \
405
- echo " Refreshing 'codebase/': " && \
406
- git checkout codebase && \
406
+ sudo rm -fr codebase certs
407
+ # git clean -xffd .
408
+ git checkout codebase
407
409
echo " Clean completed successfully."
410
+
0 commit comments