1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-04-27 09:30:18 +00:00

Fix isntall and update (#4041)

This commit is contained in:
Slaviša Arežina 2025-04-24 20:52:57 +02:00 committed by GitHub
parent 08ff2daa38
commit be9784336e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ function update_script() {
rm -rf /opt/synapse-admin rm -rf /opt/synapse-admin
mkdir -p /opt/synapse-admin mkdir -p /opt/synapse-admin
curl -fsSL "https://github.com/etkecc/synapse-admin/archive/refs/tags/v${RELEASE}.tar.gz" -o "$temp_file" 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 tar xzf "$temp_file" -C /opt/synapse-admin --strip-components=1
cd /opt/synapse-admin cd /opt/synapse-admin
$STD yarn install --ignore-engines $STD yarn install --ignore-engines
systemctl start synapse-admin systemctl start synapse-admin

View File

@ -63,15 +63,15 @@ temp_file=$(mktemp)
mkdir -p /opt/synapse-admin mkdir -p /opt/synapse-admin
RELEASE=$(curl -fsSL https://api.github.com/repos/etkecc/synapse-admin/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') RELEASE=$(curl -fsSL https://api.github.com/repos/etkecc/synapse-admin/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
curl -fsSL "https://github.com/etkecc/synapse-admin/archive/refs/tags/v${RELEASE}.tar.gz" -o "$temp_file" 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 tar xzf "$temp_file" -C /opt/synapse-admin --strip-components=1
cd /opt/synapse-admin cd /opt/synapse-adminsys
$STD yarn install --ignore-engines $STD yarn install --ignore-engines
msg_ok "Installed Element Synapse" msg_ok "Installed Element Synapse"
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/synapse-admin.service cat <<EOF >/etc/systemd/system/synapse-admin.service
[Unit] [Unit]
Description=Excalidraw Service Description=Synapse-Admin Service
After=network.target After=network.target
Requires=matrix-synapse.service Requires=matrix-synapse.service