Skip to content

Commit 72c7abe

Browse files
authored
Silverbullet: Fix Installation (wrong path) (#4873)
1 parent 12723c3 commit 72c7abe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install/silverbullet-install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ update_os
1616
msg_info "Installing Silverbullet"
1717
RELEASE=$(curl -fsSL https://api.github.com/repos/silverbulletmd/silverbullet/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
1818
mkdir -p /opt/silverbullet/bin /opt/silverbullet/space
19-
curl -fsSL "https://github.com/silverbulletmd/silverbullet/releases/download/${RELEASE}/silverbullet-server-linux-x86_64.zip" -o "/opt/silverbullet/bin/silverbullet-server-linux-x86_64.zip"
19+
cd /opt
20+
curl -fsSL "https://github.com/silverbulletmd/silverbullet/releases/download/${RELEASE}/silverbullet-server-linux-x86_64.zip" -o "silverbullet-server-linux-x86_64.zip"
2021
$STD unzip -o -d /opt/silverbullet/bin/ silverbullet-server-linux-x86_64.zip
2122
chmod +x /opt/silverbullet/bin/silverbullet
2223
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
@@ -46,7 +47,7 @@ motd_ssh
4647
customize
4748

4849
msg_info "Cleaning up"
49-
rm -rf silverbullet-server-linux-x86_64.zip
50+
rm -rf /opt/silverbullet-server-linux-x86_64.zip
5051
$STD apt-get -y autoremove
5152
$STD apt-get -y autoclean
5253
msg_ok "Cleaned"

0 commit comments

Comments
 (0)