Commit b5609613 authored by tomogoma's avatar tomogoma

clean up; fix enable service not working

parent c8721df8
......@@ -32,7 +32,6 @@ function installCerts {
"$APP_DIR/cockroach" cert create-ca --certs-dir="$CERT_DIR" --ca-key="$CERT_PRIVATE_DIR/ca.key" || exit 1
"$APP_DIR/cockroach" cert create-client root --certs-dir="$CERT_DIR" --ca-key="$CERT_PRIVATE_DIR/ca.key" || exit 1
"$APP_DIR/cockroach" cert create-node localhost $(hostname) --certs-dir="$CERT_DIR" --ca-key="$CERT_PRIVATE_DIR/ca.key" || exit 1
popd
}
function changePerms {
......@@ -46,7 +45,7 @@ function changePerms {
function installService {
mkdir -p "$SYSTEMD_DIR" || exit 1
cp -f cockroach.service "$SYSTEMD_DIR" || exit 1
systemctl enable "$SYSTEMD_DIR/cockroach.service" || exit 1
systemctl enable cockroach.service || exit 1
}
#create cconnect script for easier access to the sql console
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment