mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-04-27 01:10:17 +00:00
Fix isntall and update (#4041)
This commit is contained in:
parent
08ff2daa38
commit
be9784336e
@ -55,7 +55,7 @@ function update_script() {
|
||||
rm -rf /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"
|
||||
tar xzf "$temp_file" -C /opt/synapse-admin
|
||||
tar xzf "$temp_file" -C /opt/synapse-admin --strip-components=1
|
||||
cd /opt/synapse-admin
|
||||
$STD yarn install --ignore-engines
|
||||
systemctl start synapse-admin
|
||||
|
@ -63,15 +63,15 @@ temp_file=$(mktemp)
|
||||
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) }')
|
||||
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
|
||||
cd /opt/synapse-admin
|
||||
tar xzf "$temp_file" -C /opt/synapse-admin --strip-components=1
|
||||
cd /opt/synapse-adminsys
|
||||
$STD yarn install --ignore-engines
|
||||
msg_ok "Installed Element Synapse"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/etc/systemd/system/synapse-admin.service
|
||||
[Unit]
|
||||
Description=Excalidraw Service
|
||||
Description=Synapse-Admin Service
|
||||
After=network.target
|
||||
Requires=matrix-synapse.service
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user