#!/bin/bash

sudo mkdir -p /opt/<%= name %>/
sudo mkdir -p /opt/<%= name %>/certs
sudo mkdir -p /opt/<%= name %>/mounted-certs
sudo mkdir -p /opt/<%= name %>/config
sudo mkdir -p /opt/<%= name %>/config/vhost.d
sudo mkdir -p /opt/<%= name %>/config/html

touch /opt/<%= name %>/config/shared-config.sh
touch /opt/<%= name %>/config/env.list
touch /opt/<%= name %>/config/env_letsencrypt.list

sudo chown ${USER} /opt/<%= name %> -R

#!/bin/bash

sudo mkdir -p /opt/<%= name %>/
sudo mkdir -p /opt/<%= name %>/certs
sudo mkdir -p /opt/<%= name %>/mounted-certs
sudo mkdir -p /opt/<%= name %>/config
sudo mkdir -p /opt/<%= name %>/config/vhost.d
sudo mkdir -p /opt/<%= name %>/config/html

sudo touch /opt/<%= name %>/config/shared-config.sh
sudo touch /opt/<%= name %>/config/env.list
sudo touch /opt/<%= name %>/config/env_letsencrypt.list

sudo chown ${USER} /opt/<%= name %> -R

Fix setting up proxy when not root user
Fix setting up proxy when not root user
