Merge pull request #310 from plietar/fqdn
Use the FQDN to setup the HOSTNAME and VHOST files.
This commit is contained in:
@@ -3,7 +3,7 @@ set -eo pipefail
|
|||||||
|
|
||||||
sed -i 's/docker -d$/docker -d -r=true/' /etc/init/docker.conf
|
sed -i 's/docker -d$/docker -d -r=true/' /etc/init/docker.conf
|
||||||
|
|
||||||
echo $HOSTNAME > $DOKKU_ROOT/HOSTNAME
|
echo $(hostname -f) > $DOKKU_ROOT/HOSTNAME
|
||||||
|
|
||||||
|
|
||||||
# temporary hack for https://github.com/progrium/dokku/issues/82
|
# temporary hack for https://github.com/progrium/dokku/issues/82
|
||||||
|
|||||||
@@ -18,6 +18,6 @@ echo "include $DOKKU_ROOT/*/nginx.conf;" > /etc/nginx/conf.d/dokku.conf
|
|||||||
|
|
||||||
sed -i 's/# server_names_hash_bucket_size/server_names_hash_bucket_size/' /etc/nginx/nginx.conf
|
sed -i 's/# server_names_hash_bucket_size/server_names_hash_bucket_size/' /etc/nginx/nginx.conf
|
||||||
|
|
||||||
[[ $(dig +short $HOSTNAME) ]] && echo $HOSTNAME > $DOKKU_ROOT/VHOST
|
[[ $(dig +short $(< "$DOKKU_ROOT/HOSTNAME")) ]] && cp "$DOKKU_ROOT/HOSTNAME" "$DOKKU_ROOT/VHOST"
|
||||||
|
|
||||||
/etc/init.d/nginx start
|
/etc/init.d/nginx start
|
||||||
|
|||||||
@@ -11,8 +11,10 @@ if [[ $2 == *dokku* ]]; then
|
|||||||
tar -xf -
|
tar -xf -
|
||||||
echo "-----> Installing dependencies"
|
echo "-----> Installing dependencies"
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y git make curl software-properties-common
|
DEBIAN_FRONTEND=noninteractive apt-get install -y git make curl software-properties-common
|
||||||
|
echo "-----> Set hostname to dokku.me"
|
||||||
|
hostname dokku.me
|
||||||
echo "-----> Running make install"
|
echo "-----> Running make install"
|
||||||
DEBIAN_FRONTEND=noninteractive HOSTNAME=dokku.me make install
|
DEBIAN_FRONTEND=noninteractive make install
|
||||||
echo "-----> Generating keypair..."
|
echo "-----> Generating keypair..."
|
||||||
echo -e "y\n" | ssh-keygen -f /root/.ssh/id_rsa -t rsa -N ''
|
echo -e "y\n" | ssh-keygen -f /root/.ssh/id_rsa -t rsa -N ''
|
||||||
echo "-----> Installing SSH public key..."
|
echo "-----> Installing SSH public key..."
|
||||||
|
|||||||
Reference in New Issue
Block a user