title: How to correctly install dokku - with or without sudo?
body: <p>I'm learning dokku right now for simple web deployment. Offical install instructions state this command:</p>
  
  <pre><code>wget -qO- https://raw.github.com/progrium/dokku/v0.3.12/bootstrap.sh | sudo DOKKU_TAG=v0.3.12 bash
  </code></pre>
  
  <p>I'm not a devop or admin, but as far as I understand this line, it performs all bootstrapping and installation under the <code>root</code> account, thanks to <code>sudo</code>. So dokku will be checked out into a directory with <code>root</code> access rights, and all additional directories like <code>/var/lib/dokku/</code> will also have <code>root</code> access rights.</p>
  
  <p>The problem is - all articles across the internet about dokku instructs to execute <code>dokku</code> command or do dokku-related actions without <code>sudo</code>. For example, instructions about this <code>dokku</code> database plugin, <a href="https://github.com/krisrang/dokku-mariadb">https://github.com/krisrang/dokku-mariadb</a>, instructs to install it via:</p>
  
  <pre><code>cd /var/lib/dokku/plugins
  git clone https://github.com/krisrang/dokku-mariadb mariadb
  dokku plugins-install
  </code></pre>
  
  <p>This is not working, since <code>/var/lib/dokku/plugins</code> have <code>root</code> access rights and <code>git clone</code> will fail with <code>acces denied</code>. It's hard to be a non-admin nowadays, but maybe someone will hint what I'm doing wrong? Do I need to install dokku some other way, or all dokku-related tutorials across internet assume that I'm executing them under <code>root</code> (which is, by my limited admin knowledge, highly not recommended for security reasons).</p>