Element Synapse: switched from development to production mode and fixed update (#5066)

* Update elementsynapse.sh

* Update elementsynapse-install.sh

* Update elementsynapse.sh

removed comment
This commit is contained in:
Frankmaaan
2025-06-10 20:13:00 +02:00
committed by GitHub
parent 7cf8300b47
commit b8ba409e5c
2 changed files with 16 additions and 2 deletions

View File

@ -54,7 +54,12 @@ RELEASE=$(curl -fsSL https://api.github.com/repos/etkecc/synapse-admin/releases/
curl -fsSL "https://github.com/etkecc/synapse-admin/archive/refs/tags/v${RELEASE}.tar.gz" -o "$temp_file"
tar xzf "$temp_file" -C /opt/synapse-admin --strip-components=1
cd /opt/synapse-admin
$STD yarn global add serve
$STD yarn install --ignore-engines
$STD yarn build
mv ./dist ../ && \
rm -rf * && \
mv ../dist ./
msg_ok "Installed Element Synapse"
msg_info "Creating Service"
@ -67,7 +72,7 @@ Requires=matrix-synapse.service
[Service]
Type=simple
WorkingDirectory=/opt/synapse-admin
ExecStart=/usr/bin/yarn start --host
ExecStart=/usr/local/bin/serve -s dist -l 5173
Restart=always
[Install]