Files
file-o-bot/install.sh
2024-05-29 00:04:52 +08:00

16 lines
307 B
Bash

#!/usr/bin/env bash
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
cp file-o-bot /usr/local/bin/file-o-bot
cp ./install-files/* /etc/file-o-bot/