Files
file-o-bot/install.sh

16 lines
305 B
Bash
Raw Normal View History

2024-05-27 21:59:41 +08:00
#!/usr/bin/env bash
set -euo
2024-05-29 00:03:47 +08:00
. /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
2024-05-27 21:59:41 +08:00
mkdir -p /etc/file-o-bot/config.d
2024-05-29 00:03:47 +08:00
cp file-o-bot /usr/local/bin/file-o-bot
cp ./install-files/* /etc/file-o-bot/