Integrate 0.9.3 SLP/IP, SQLite identities and complete token fix; build release 0.9.3-1

This commit is contained in:
2026-11-30 06:07:09 +00:00
parent 679dada6ec
commit b9fe2e61d2
67 changed files with 1797 additions and 73 deletions

View File

@@ -2,7 +2,7 @@
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
[[ $EUID == 0 ]] || { echo 'Use sudo ./install.sh' >&2; exit 1; }
[[ -f upstream/install-prefix.txt && -f upstream/build/CMakeCache.txt && -x build/mars-pcapd && -x build/mars_vme ]] || { echo 'Run ./build.sh successfully first' >&2; exit 1; }
[[ -s upstream/build-complete && -f upstream/install-prefix.txt && -f upstream/build/CMakeCache.txt && -x build/mars-pcapd && -x build/mars_vme ]] || { echo 'Run ./build.sh successfully first' >&2; exit 1; }
prefix=$(cat upstream/install-prefix.txt)
[[ $prefix == /usr/local ]] || { echo 'Native service currently requires PREFIX=/usr/local' >&2; exit 1; }
if [[ -d /run/systemd/system ]]; then
@@ -30,6 +30,7 @@ install -D -m 0755 publish-winclient.sh "$prefix/sbin/mars-publish-winclient"
install -D -m 0755 build/mars-pcapd "$prefix/sbin/mars-pcapd"
install -D -m 0755 build/mars-print "$prefix/sbin/mars-print"
install -D -m 0755 build/mars_vme "$prefix/sbin/mars_vme"
install -d -o root -g root -m 0755 /var/lib/mars-identities
install -d -m 0700 /var/lib/mars-vme /var/lib/mars-vme/bindery-backups /var/lib/mars-vme/script-backups
install -d -m 0755 "$prefix/share/mars-vme/www"
for f in index.html app.js style.css login.html login.js; do install -m 0644 "websetup/$f" "$prefix/share/mars-vme/www/$f"; done