Skip to content

Commit be97843

Browse files
authored
Fix isntall and update (#4041)
1 parent 08ff2da commit be97843

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ct/elementsynapse.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function update_script() {
5555
rm -rf /opt/synapse-admin
5656
mkdir -p /opt/synapse-admin
5757
curl -fsSL "https://github.com/etkecc/synapse-admin/archive/refs/tags/v${RELEASE}.tar.gz" -o "$temp_file"
58-
tar xzf "$temp_file" -C /opt/synapse-admin
58+
tar xzf "$temp_file" -C /opt/synapse-admin --strip-components=1
5959
cd /opt/synapse-admin
6060
$STD yarn install --ignore-engines
6161
systemctl start synapse-admin

install/elementsynapse-install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ temp_file=$(mktemp)
6363
mkdir -p /opt/synapse-admin
6464
RELEASE=$(curl -fsSL https://api.github.com/repos/etkecc/synapse-admin/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
6565
curl -fsSL "https://github.com/etkecc/synapse-admin/archive/refs/tags/v${RELEASE}.tar.gz" -o "$temp_file"
66-
tar xzf "$temp_file" -C /opt/synapse-admin
67-
cd /opt/synapse-admin
66+
tar xzf "$temp_file" -C /opt/synapse-admin --strip-components=1
67+
cd /opt/synapse-adminsys
6868
$STD yarn install --ignore-engines
6969
msg_ok "Installed Element Synapse"
7070

7171
msg_info "Creating Service"
7272
cat <<EOF >/etc/systemd/system/synapse-admin.service
7373
[Unit]
74-
Description=Excalidraw Service
74+
Description=Synapse-Admin Service
7575
After=network.target
7676
Requires=matrix-synapse.service
7777

0 commit comments

Comments
 (0)