Script Update: SnipeIT (#641)

This commit is contained in:
Michel Roegl-Brunner
2024-12-03 16:10:33 +01:00
committed by GitHub
parent 6d307f07a9
commit df99c30ab3
3 changed files with 31 additions and 26 deletions

View File

@@ -45,6 +45,7 @@ msg_ok "Set up database"
msg_info "Installing Snipe-IT"
cd /opt
RELEASE=$(curl -s https://api.github.com/repos/snipe/snipe-it/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
wget -q "https://github.com/snipe/snipe-it/archive/refs/tags/v${RELEASE}.zip"
unzip -q v${RELEASE}.zip
mv snipe-it-${RELEASE} /opt/snipe-it