#!/bin/bash

function fail {
    echo $1 > /home/eeg/.update_failure
    exit 1
}

build=$(cat /etc/eeg/build)
if ! [[ "$build" =~ 'a' ]]
then
    echo ${build}a > /etc/eeg/build
fi

mv /tmp/*.root.js /opt/python/run/lexi/venv/lib/python3.11/site-packages/app/static/js/dist/

touch /tmp/update-reboot
