mirror of
https://github.com/samuelncui/yatm.git
synced 2026-04-14 12:47:45 +00:00
feat: rebrand to yatm
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user