mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-08 00:39:16 +00:00
Compare commits
No commits in common. "d38a49532c12182d99235d2f1e5cda73c46581c6" and "2e9538d66030e8eed8d066a22d215754aa5d0079" have entirely different histories.
d38a49532c
...
2e9538d660
@ -36,7 +36,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating ${APP} to v${RELEASE}"
|
msg_info "Updating ${APP} to v${RELEASE}"
|
||||||
wget -q https://github.com/silverbulletmd/silverbullet/releases/download/${RELEASE}/silverbullet-server-linux-x86_64.zip
|
wget -q https://github.com/silverbulletmd/silverbullet/releases/download/${RELEASE}/silverbullet-server-linux-x86_64.zip
|
||||||
unzip -q silverbullet-server-linux-x86_64.zip
|
unzip silverbullet-server-linux-x86_64.zip &>/dev/null
|
||||||
mv silverbullet /opt/silverbullet/bin/
|
mv silverbullet /opt/silverbullet/bin/
|
||||||
chmod +x /opt/silverbullet/bin/silverbullet
|
chmod +x /opt/silverbullet/bin/silverbullet
|
||||||
echo "${RELEASE}" >/opt/silverbullet/${APP}_version.txt
|
echo "${RELEASE}" >/opt/silverbullet/${APP}_version.txt
|
||||||
@ -46,7 +46,7 @@ function update_script() {
|
|||||||
systemctl start silverbullet
|
systemctl start silverbullet
|
||||||
msg_ok "Started ${APP}"
|
msg_ok "Started ${APP}"
|
||||||
else
|
else
|
||||||
msg_ok "No update required. ${APP} is already at v${RELEASE}"
|
msg_ok "No update required. ${APP} is already at ${RELEASE}"
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
@ -20,14 +20,15 @@ $STD apt-get install -y \
|
|||||||
mc
|
mc
|
||||||
msg_ok "Installed Dependencies"
|
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) }')
|
RELEASE=$(curl -s https://api.github.com/repos/silverbulletmd/silverbullet/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
|
|
||||||
|
msg_info "Installing ${APPLICATION}"
|
||||||
mkdir -p /opt/silverbullet/bin /opt/silverbullet/space
|
mkdir -p /opt/silverbullet/bin /opt/silverbullet/space
|
||||||
wget -q https://github.com/silverbulletmd/silverbullet/releases/download/${RELEASE}/silverbullet-server-linux-x86_64.zip
|
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
|
unzip -oq -d /opt/silverbullet/bin/ silverbullet-server-linux-x86_64.zip
|
||||||
chmod +x /opt/silverbullet/bin/silverbullet
|
chmod +x /opt/silverbullet/bin/silverbullet
|
||||||
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
||||||
msg_ok "Installed Silverbullet"
|
msg_ok "Installed ${APPLICATION}"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
|
||||||
@ -53,7 +54,7 @@ motd_ssh
|
|||||||
customize
|
customize
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
msg_info "Cleaning up"
|
||||||
rm -rf silverbullet-server-linux-x86_64.zip
|
|
||||||
$STD apt-get -y autoremove
|
$STD apt-get -y autoremove
|
||||||
$STD apt-get -y autoclean
|
$STD apt-get -y autoclean
|
||||||
|
rm silverbullet-server-linux-x86_64.zip
|
||||||
msg_ok "Cleaned"
|
msg_ok "Cleaned"
|
||||||
|
Loading…
Reference in New Issue
Block a user