mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
chore: Update Umami installation back to production. remove testing
This commit is contained in:
parent
332f6a79df
commit
be5c7141d8
1 changed files with 4 additions and 5 deletions
|
@ -26,13 +26,12 @@ msg_info "Setting up Node.js Repository"
|
||||||
mkdir -p /etc/apt/keyrings
|
mkdir -p /etc/apt/keyrings
|
||||||
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
|
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
|
||||||
curl -fsSL https://bun.sh/install | bash
|
|
||||||
source /root/.bashrc
|
|
||||||
msg_ok "Set up Node.js Repository"
|
msg_ok "Set up Node.js Repository"
|
||||||
|
|
||||||
msg_info "Installing Node.js"
|
msg_info "Installing Node.js"
|
||||||
$STD apt-get update
|
$STD apt-get update
|
||||||
$STD apt-get install -y nodejs
|
$STD apt-get install -y nodejs
|
||||||
|
$STD npm install -g yarn
|
||||||
msg_ok "Installed Node.js"
|
msg_ok "Installed Node.js"
|
||||||
|
|
||||||
msg_info "Setting up postgresql"
|
msg_info "Setting up postgresql"
|
||||||
|
@ -54,9 +53,9 @@ msg_ok "Set up postgresql"
|
||||||
msg_info "Installing Umami (Patience)"
|
msg_info "Installing Umami (Patience)"
|
||||||
git clone -q https://github.com/umami-software/umami.git /opt/umami
|
git clone -q https://github.com/umami-software/umami.git /opt/umami
|
||||||
cd /opt/umami
|
cd /opt/umami
|
||||||
$STD bun install
|
$STD yarn install
|
||||||
echo -e "DATABASE_URL=postgresql://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME" >>/opt/umami/.env
|
echo -e "DATABASE_URL=postgresql://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME" >>/opt/umami/.env
|
||||||
$STD bun run build
|
$STD yarn run build
|
||||||
msg_ok "Installed Umami"
|
msg_ok "Installed Umami"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
@ -69,7 +68,7 @@ Type=simple
|
||||||
Restart=always
|
Restart=always
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/opt/umami
|
WorkingDirectory=/opt/umami
|
||||||
ExecStart=/root/.bun/bin/bun run start
|
ExecStart=/usr/bin/yarn run start
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue