Add missing mkdir calls

This commit is contained in:
Jose Diaz-Gonzalez
2016-08-27 01:34:37 -04:00
parent 95e9fd114e
commit fbfacb44c4

View File

@@ -367,6 +367,7 @@ service_create() {
mkdir -p "$SERVICE_ROOT" || dokku_log_fail "Unable to create service directory"
mkdir -p "$SERVICE_ROOT/data" || dokku_log_fail "Unable to create service data directory"
mkdir -p "$SERVICE_ROOT/config" || dokku_log_fail "Unable to create service config directory"
rootpassword=$(openssl rand -hex 16)
password=$(openssl rand -hex 16)
echo "$rootpassword" > "$SERVICE_ROOT/ROOTPASSWORD"