amiaopensource / ltopers

Bash scripts to manage LTO cartridges with LTFS
https://github.com/amiaopensource/ltopers
MIT License
39 stars 8 forks source link

LTO_LOGS needed defined #121

Closed BleakleyMcD closed 7 years ago

BleakleyMcD commented 7 years ago

LTO_LOGS needed defined to $LTO_INDEX_DIR from mmconfig or logs would attempt to write to /

added in printf to confirm location of LTO_LOGS before script runs

BleakleyMcD commented 7 years ago

becuase $LTO_INDEX_DIR is never used writelto. $LTO_LGOS is used instead. _check_for_lto_index_dir in mmfunctions only defines $LTO_INDEX_DIR. in 951b4ad LTO_LOGS is defined: LTO_LOGS="${HOME}/Documents/lto_indexes" This got lost in the changes (my fault!) and without it $LTO_LOGS is empty and so paths, such as SCHEMADIR="${LTO_LOGS}/schema", try to write to root, which gets denied and the script exits in error.