fix: remove space in heredoc syntax
This commit is contained in:
@@ -50,12 +50,12 @@ chmod +x /usr/local/bin/minio
|
|||||||
mkdir -p /opt/minio/data
|
mkdir -p /opt/minio/data
|
||||||
MINIO_ACCESS_KEY=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c16)
|
MINIO_ACCESS_KEY=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c16)
|
||||||
MINIO_SECRET_KEY=$(openssl rand -base64 36 | tr -dc 'a-zA-Z0-9' | head -c32)
|
MINIO_SECRET_KEY=$(openssl rand -base64 36 | tr -dc 'a-zA-Z0-9' | head -c32)
|
||||||
cat <<EOF >/etc/default/minio
|
cat <<EOF>/etc/default/minio
|
||||||
MINIO_ROOT_USER="${MINIO_ACCESS_KEY}"
|
MINIO_ROOT_USER="${MINIO_ACCESS_KEY}"
|
||||||
MINIO_ROOT_PASSWORD="${MINIO_SECRET_KEY}"
|
MINIO_ROOT_PASSWORD="${MINIO_SECRET_KEY}"
|
||||||
MINIO_VOLUMES="/opt/minio/data"
|
MINIO_VOLUMES="/opt/minio/data"
|
||||||
EOF
|
EOF
|
||||||
cat <<EOF >/etc/systemd/system/minio.service
|
cat <<EOF>/etc/systemd/system/minio.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=MinIO Object Storage
|
Description=MinIO Object Storage
|
||||||
After=network.target
|
After=network.target
|
||||||
@@ -108,7 +108,7 @@ msg_info "Configuring Plane"
|
|||||||
SECRET_KEY=$(openssl rand -hex 32)
|
SECRET_KEY=$(openssl rand -hex 32)
|
||||||
MACHINE_SIG=$(echo -n "$(hostname)-$(date +%s)" | sha256sum | head -c64)
|
MACHINE_SIG=$(echo -n "$(hostname)-$(date +%s)" | sha256sum | head -c64)
|
||||||
LIVE_SECRET=$(openssl rand -hex 16)
|
LIVE_SECRET=$(openssl rand -hex 16)
|
||||||
cat <<EOF >/opt/plane/apps/api/.env
|
cat <<EOF>/opt/plane/apps/api/.env
|
||||||
DEBUG=0
|
DEBUG=0
|
||||||
CORS_ALLOWED_ORIGINS=http://${LOCAL_IP}
|
CORS_ALLOWED_ORIGINS=http://${LOCAL_IP}
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ GUNICORN_WORKERS=2
|
|||||||
LIVE_SERVER_SECRET_KEY=${LIVE_SECRET}
|
LIVE_SERVER_SECRET_KEY=${LIVE_SECRET}
|
||||||
API_KEY_RATE_LIMIT=60/minute
|
API_KEY_RATE_LIMIT=60/minute
|
||||||
EOF
|
EOF
|
||||||
cat <<EOF >/opt/plane/.env
|
cat <<EOF>/opt/plane/.env
|
||||||
API_BASE_URL=http://localhost:8000
|
API_BASE_URL=http://localhost:8000
|
||||||
LIVE_SERVER_SECRET_KEY=${LIVE_SECRET}
|
LIVE_SERVER_SECRET_KEY=${LIVE_SECRET}
|
||||||
REDIS_HOST=localhost
|
REDIS_HOST=localhost
|
||||||
@@ -183,7 +183,7 @@ chmod +x /usr/local/bin/mcli
|
|||||||
$STD /usr/local/bin/mcli alias set plane http://localhost:9000 "${MINIO_ACCESS_KEY}" "${MINIO_SECRET_KEY}"
|
$STD /usr/local/bin/mcli alias set plane http://localhost:9000 "${MINIO_ACCESS_KEY}" "${MINIO_SECRET_KEY}"
|
||||||
$STD /usr/local/bin/mcli mb plane/uploads --ignore-existing
|
$STD /usr/local/bin/mcli mb plane/uploads --ignore-existing
|
||||||
|
|
||||||
cat <<EOF >/etc/systemd/system/plane-api.service
|
cat <<EOF>/etc/systemd/system/plane-api.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Plane API
|
Description=Plane API
|
||||||
After=network.target postgresql.service redis-server.service rabbitmq-server.service minio.service
|
After=network.target postgresql.service redis-server.service rabbitmq-server.service minio.service
|
||||||
@@ -200,7 +200,7 @@ RestartSec=5
|
|||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<EOF >/etc/systemd/system/plane-worker.service
|
cat <<EOF>/etc/systemd/system/plane-worker.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Plane Celery Worker
|
Description=Plane Celery Worker
|
||||||
After=plane-api.service
|
After=plane-api.service
|
||||||
@@ -218,7 +218,7 @@ RestartSec=5
|
|||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<EOF >/etc/systemd/system/plane-beat.service
|
cat <<EOF>/etc/systemd/system/plane-beat.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Plane Celery Beat
|
Description=Plane Celery Beat
|
||||||
After=plane-api.service
|
After=plane-api.service
|
||||||
@@ -236,7 +236,7 @@ RestartSec=5
|
|||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<EOF >/etc/systemd/system/plane-live.service
|
cat <<EOF>/etc/systemd/system/plane-live.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Plane Live Server
|
Description=Plane Live Server
|
||||||
After=network.target
|
After=network.target
|
||||||
@@ -253,7 +253,7 @@ RestartSec=5
|
|||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<EOF >/etc/systemd/system/plane-space.service
|
cat <<EOF>/etc/systemd/system/plane-space.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Plane Space Server
|
Description=Plane Space Server
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|||||||
Reference in New Issue
Block a user