Move changes from test branch to upstream merge branch

This commit is contained in:
Sam
2025-01-08 00:22:53 +10:00
parent c7885c5d22
commit 2eef6d1e5f
213 changed files with 1220 additions and 623 deletions

View File

@@ -17,14 +17,16 @@ msg_info "Installing Dependencies"
$STD apt-get install -y \
curl \
sudo \
mc
mc \
wget \
openssh-server
msg_ok "Installed Dependencies"
msg_info "Installing Silverbullet"
RELEASE=$(curl -s https://api.github.com/repos/silverbulletmd/silverbullet/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
mkdir -p /opt/silverbullet/bin /opt/silverbullet/space
wget -q https://github.com/silverbulletmd/silverbullet/releases/download/${RELEASE}/silverbullet-server-linux-x86_64.zip
unzip -oq -d /opt/silverbullet/bin/ silverbullet-server-linux-x86_64.zip
wget -q https://github.com/silverbulletmd/silverbullet/releases/download/${RELEASE}/silverbullet-server-linux-aarch64.zip
unzip -oq -d /opt/silverbullet/bin/ silverbullet-server-linux-aarch64.zip
chmod +x /opt/silverbullet/bin/silverbullet
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
msg_ok "Installed Silverbullet"
@@ -53,7 +55,7 @@ motd_ssh
customize
msg_info "Cleaning up"
rm -rf silverbullet-server-linux-x86_64.zip
rm -rf silverbullet-server-linux-aarch64.zip
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"