diff --git a/scripts/extract_nprofile.sh b/scripts/extract_nprofile.sh index e70944ac..b0f50732 100644 --- a/scripts/extract_nprofile.sh +++ b/scripts/extract_nprofile.sh @@ -43,7 +43,7 @@ get_log_info() { latest_unlocker_log=$(ls -1t ${LOG_DIR}/components/unlocker_*.log 2>/dev/null | head -n 1) - latest_entry=$(grep -E "unlocker >> macaroon not found, creating wallet|unlocker >> wallet is locked, unlocking|unlocker >> the wallet is already unlocked" "$latest_unlocker_log" | tail -n 1) + latest_entry=$(tac "$latest_unlocker_log" | grep -m 1 -E "unlocker >> macaroon not found, creating wallet|unlocker >> wallet is locked, unlocking|unlocker >> the wallet is already unlocked") if echo "$latest_entry" | grep -q "unlocker >> macaroon not found, creating wallet"; then log "Creating wallet..." diff --git a/scripts/start_services.sh b/scripts/start_services.sh index ba42e46a..24e93d32 100755 --- a/scripts/start_services.sh +++ b/scripts/start_services.sh @@ -12,8 +12,6 @@ start_services() { USER_NAME=$(whoami) fi - log "USER_HOME: $USER_HOME, USER_NAME: $USER_NAME" - if [ "$OS" = "Linux" ]; then if [ "$SYSTEMCTL_AVAILABLE" = true ]; then sudo bash -c "cat > /etc/systemd/system/lnd.service <