Smooth out installation stuff

This commit is contained in:
2024-05-29 00:03:47 +08:00
parent aa8529e5dc
commit d5a674a690
2 changed files with 16 additions and 3 deletions

View File

@ -2,6 +2,14 @@
set -euo
. /etc/os-release
if [[ $ID == "debian" ]]; then
apt-get install -y rsync jq parallel
elif [[ $ID == "centos" ]]; then
yum -y install jq rsync parallel
fi
mkdir -p /etc/file-o-bot/config.d
cd ./install-files/
cp -r * /etc/file-o-bot/
cp file-o-bot /usr/local/bin/file-o-bot
cp ./install-files/* /etc/file-o-bot/