feat: rebrand to yatm

This commit is contained in:
Samuel N Cui
2023-09-26 16:53:05 +08:00
parent 508d4bf137
commit 8eee1e9e4e
7 changed files with 10 additions and 6 deletions

View File

@@ -1,3 +1,7 @@
# YATM aka Yet Another Tape Manager
YATM is a first-of-its-kind open-source tape manager for LTO tape via LTFS tape format.
## Install
> WIP

View File

@@ -4,5 +4,5 @@ set -ex;
CURDIR=$(cd $(dirname $0); pwd);
cd ${CURDIR};
go build -o ./output/httpd ./cmd/tape-httpd;
go build -o ./output/lto-info ./cmd/lto-info;
go build -o ./output/yatm-httpd ./cmd/httpd;
go build -o ./output/yatm-lto-info ./cmd/lto-info;

View File

@@ -1,5 +1,5 @@
[Unit]
Description=Tape Writer Service
Description=YATM Service
Documentation=https://github.com/samuelncui/yatm/
After=network.target
@@ -7,7 +7,7 @@ After=network.target
User=root
Type=simple
WorkingDirectory=/opt/yatm
ExecStart=/opt/yatm/httpd
ExecStart=/opt/yatm/yatm-httpd
Restart=always
RestartSec=15
StartLimitInterval=0

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tape Writer</title>
<title>YATM - Yet Another Tape Manager</title>
<script type="text/javascript">
window.apiBase = "%%API_BASE%%";
</script>

View File

@@ -2,6 +2,6 @@
set -ex;
# SG_DEVICE=`sg_map | grep ${DEVICE} | awk '{print $1}'`
BARCODE=`./lto-info -f /dev/nst0 | grep 'Barcode' | awk '{print $3}'`
BARCODE=`./yatm-lto-info -f /dev/nst0 | grep 'Barcode' | awk '{print $3}'`
echo "{\"barcode\": \"$BARCODE\"}" > $OUT
sleep 3