#!/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  /etc/systemd/system

systemctl daemon-reload
systemctl enable --now otaserver
