Your ROOT_URL in app.ini is https://git.bwnetwork.us/ but you are visiting http://git.bwnetwork.us/Administrator/Proxmox_Helper_scripts/commit/99d81287e54ce4d4a9f32cbcbf93edfeb94deefc
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
6 additions and
6 deletions
@ -1,5 +1,5 @@
#!/usr/bin/env bash
VW RELEASE= $( curl -s https://api.github.com/repos/zadam/trilium/releases/latest \
RELEASE= $( curl -s https://api.github.com/repos/zadam/trilium/releases/latest \
| grep "tag_name" \
| awk '{print substr($2, 3, length($2)-4) }' )
@ -21,7 +21,7 @@ EOF
}
update_info
while true; do
read -p " This will Update Trilium to v $ VW RELEASE. Proceed(y/n)? " yn
read -p " This will Update Trilium to v $ RELEASE. Proceed(y/n)? " yn
case $yn in
[ Yy] * ) break; ;
[ Nn] * ) exit; ;
@ -33,13 +33,13 @@ echo -e "${GN} Stopping Trilium... ${CL}"
systemctl stop trilium.service
sleep 1
echo -e " ${ GN } Updating to v ${ VW RELEASE} ... ${ CL } "
wget -q https://github.com/zadam/trilium/releases/download/v$ VW RELEASE/trilium-linux-x64-server-$ VW RELEASE.tar.xz
echo -e " ${ GN } Updating to v ${ RELEASE} ... ${ CL } "
wget -q https://github.com/zadam/trilium/releases/download/v$ RELEASE/trilium-linux-x64-server-$ RELEASE.tar.xz
tar -xzf trilium-linux-x64-server-$ VW RELEASE.tar.xz -C /opt/trilium & >/dev/null
tar -xzf trilium-linux-x64-server-$ RELEASE.tar.xz -C /opt/trilium & >/dev/null
echo -e " ${ GN } Cleaning up... ${ CL } "
rm trilium-linux-x64-server-$ VW RELEASE.tar.xz
rm trilium-linux-x64-server-$ RELEASE.tar.xz
echo -e " ${ GN } Starting Trilium... ${ CL } "
systemctl start trilium.service