Replaced app name variable with just the application name

This commit is contained in:
Andrew Stout 2025-08-08 15:46:44 -05:00
parent 9ff98daafc
commit 7813fa19b8
No known key found for this signature in database
GPG Key ID: B01268A581FC2448

View File

@ -47,26 +47,26 @@ msg_ok "Set up PostgreSQL"
msg_info "Creating Service" msg_info "Creating Service"
mkdir -p /opt mkdir -p /opt
cat <<EOF >/opt/"${APPLICATION}".yaml cat <<EOF >/opt/litellm.yaml
general_settings: general_settings:
master_key: sk-1234 master_key: sk-1234
database_url: postgresql://$DB_USER:$DB_PASS@127.0.0.1:5432/$DB_NAME database_url: postgresql://$DB_USER:$DB_PASS@127.0.0.1:5432/$DB_NAME
store_model_in_db: true store_model_in_db: true
EOF EOF
cat <<EOF >/etc/systemd/system/"${APPLICATION}".service cat <<EOF >/etc/systemd/system/litellm.service
[Unit] [Unit]
Description=LiteLLM Description=LiteLLM
[Service] [Service]
Type=simple Type=simple
ExecStart=litellm --config /opt/${APPLICATION}.yaml --use_prisma_migrate ExecStart=litellm --config /opt/litellm.yaml --use_prisma_migrate
Restart=always Restart=always
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl enable -q --now "${APPLICATION}" systemctl enable -q --now litellm
msg_ok "Created Service" msg_ok "Created Service"
motd_ssh motd_ssh