rename project to runaway
This commit is contained in:
+5
-5
@@ -1,8 +1,8 @@
|
||||
show_history() {
|
||||
header "Unleash Event History"
|
||||
header "Runaway Event History"
|
||||
|
||||
local log_dir="${1:-/var/log}"
|
||||
local logs=("$log_dir/unleash-monitor.log" "$log_dir/unleash-heal.log" "$log_dir/unleash-monitor.err")
|
||||
local logs=("$log_dir/runaway-monitor.log" "$log_dir/runaway-heal.log" "$log_dir/runaway-monitor.err")
|
||||
local found=false
|
||||
|
||||
for logfile in "${logs[@]}"; do
|
||||
@@ -20,11 +20,11 @@ show_history() {
|
||||
|
||||
if [ "$found" = false ]; then
|
||||
info "No event logs found."
|
||||
info "Run 'sudo ./unleash monitor' or 'sudo ./unleash persist' first."
|
||||
info "Run 'sudo ./runaway monitor' or 'sudo ./runaway persist' first."
|
||||
fi
|
||||
|
||||
step "Backup records"
|
||||
local backup_dir=".unleash-backup"
|
||||
local backup_dir=".runaway-backup"
|
||||
if [ -d "$backup_dir" ] && [ -f "$backup_dir/timestamp" ]; then
|
||||
local ts
|
||||
ts=$(cat "$backup_dir/timestamp")
|
||||
@@ -36,7 +36,7 @@ show_history() {
|
||||
|
||||
clear_history() {
|
||||
local log_dir="${1:-/var/log}"
|
||||
local logs=("$log_dir/unleash-monitor.log" "$log_dir/unleash-heal.log" "$log_dir/unleash-monitor.err")
|
||||
local logs=("$log_dir/runaway-monitor.log" "$log_dir/runaway-heal.log" "$log_dir/runaway-monitor.err")
|
||||
for logfile in "${logs[@]}"; do
|
||||
if [ -f "$logfile" ]; then
|
||||
: > "$logfile"
|
||||
|
||||
Reference in New Issue
Block a user