mirror of
https://github.com/dokku/dokku.git
synced 2025-12-25 16:29:30 +01:00
This makes the installation a bit more secure by ensuring a user does not accidentally expose a way for unauthorized users to add new ssh keys to the system. Additionally, this removes the extra HOSTNAME file to make the initial install process easier (that file was not modifiable by any dokku commands. Closes #2247
34 lines
1.7 KiB
Makefile
34 lines
1.7 KiB
Makefile
/tmp/build-dokku/var/lib/dokku/GIT_REV:
|
|
mkdir -p /tmp/build-dokku
|
|
mkdir -p /tmp/build-dokku/usr/share/bash-completion/completions
|
|
mkdir -p /tmp/build-dokku/usr/bin
|
|
mkdir -p /tmp/build-dokku/usr/share/doc/dokku
|
|
mkdir -p /tmp/build-dokku/usr/share/lintian/overrides
|
|
mkdir -p /tmp/build-dokku/usr/share/man/man1
|
|
mkdir -p /tmp/build-dokku/var/lib/dokku/core-plugins/available
|
|
|
|
cp dokku /tmp/build-dokku/usr/bin
|
|
cp LICENSE /tmp/build-dokku/usr/share/doc/dokku/copyright
|
|
cp contrib/bash-completion /tmp/build-dokku/usr/share/bash-completion/completions/dokku
|
|
find . -name ".DS_Store" -depth -exec rm {} \;
|
|
$(MAKE) go-build
|
|
cp common.mk /tmp/build-dokku/var/lib/dokku/core-plugins/common.mk
|
|
cp -r plugins/* /tmp/build-dokku/var/lib/dokku/core-plugins/available
|
|
find plugins/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | while read plugin; do cd /tmp/build-dokku/var/lib/dokku/core-plugins/available/$$plugin && if [ -e Makefile ]; then $(MAKE) src-clean; fi; done
|
|
find plugins/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | while read plugin; do touch /tmp/build-dokku/var/lib/dokku/core-plugins/available/$$plugin/.core; done
|
|
rm /tmp/build-dokku/var/lib/dokku/core-plugins/common.mk
|
|
$(MAKE) help2man
|
|
$(MAKE) addman
|
|
cp /usr/local/share/man/man1/dokku.1 /tmp/build-dokku/usr/share/man/man1/dokku.1
|
|
gzip -9 /tmp/build-dokku/usr/share/man/man1/dokku.1
|
|
ifeq ($(DOKKU_VERSION),master)
|
|
git describe --tags > /tmp/build-dokku/var/lib/dokku/VERSION
|
|
else
|
|
echo $(DOKKU_VERSION) > /tmp/build-dokku/var/lib/dokku/VERSION
|
|
endif
|
|
ifdef DOKKU_GIT_REV
|
|
echo "$(DOKKU_GIT_REV)" > /tmp/build-dokku/var/lib/dokku/GIT_REV
|
|
else
|
|
git rev-parse HEAD > /tmp/build-dokku/var/lib/dokku/GIT_REV
|
|
endif
|