#!/bin/bash

mkdir -p /usr/local/otaserver/bin
cp -f ./bin/otaserver /usr/local/otaserver/bin
cp -f ./run.sh /usr/local/otaserver
cp -f ./otaserver.service /usr/lib/systemd/system

systemctl daemon-reload
systemctl enable --now otaserver
