From d9d3a16e5c2d22a7a4b079723338e5db9904aea4 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 18 Apr 2015 03:56:19 -0400 Subject: [PATCH 1/2] Prompt users to run the web installer via MOTD. Closes #943 --- plugins/00_dokku-standard/install | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugins/00_dokku-standard/install b/plugins/00_dokku-standard/install index 1cede1504..511c88647 100755 --- a/plugins/00_dokku-standard/install +++ b/plugins/00_dokku-standard/install @@ -41,3 +41,18 @@ WantedBy=multi-user.target EOF ;; esac + + +cat< /etc/update-motd.d/99-dokku +#!/bin/sh + +if [ ! -f "/home/dokku/HOSTNAME" ]; then + echo "\nTo avoid cli-based dokku configuration, use the web installer" + echo "Debian-based installs should have this running and available" + echo "on port 80. You can also install it via the following commands:" + echo "" + echo " cd /root/dokku" + echo " make dokku-installer\n" +fi +EOF +chmod +x /etc/update-motd.d/99-dokku From d6aa8d59f153c3d42254cbd60c8b9c9acb5503e9 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 19 Apr 2015 16:55:08 -0400 Subject: [PATCH 2/2] [ci skip] ensure users run dokku-installer as sudo user --- plugins/00_dokku-standard/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/00_dokku-standard/install b/plugins/00_dokku-standard/install index 511c88647..4c5efa8f1 100755 --- a/plugins/00_dokku-standard/install +++ b/plugins/00_dokku-standard/install @@ -52,7 +52,7 @@ if [ ! -f "/home/dokku/HOSTNAME" ]; then echo "on port 80. You can also install it via the following commands:" echo "" echo " cd /root/dokku" - echo " make dokku-installer\n" + echo " sudo make dokku-installer\n" fi EOF chmod +x /etc/update-motd.d/99-dokku