Some installation updates

This commit is contained in:
2024-05-30 23:16:18 +08:00
parent 6298a324b0
commit c20053df10
2 changed files with 16 additions and 4 deletions

8
install.sh Normal file → Executable file
View File

@ -8,8 +8,14 @@ if [[ $ID == "debian" ]]; then
apt-get install -y rsync jq parallel
#elif [[ $ID == "centos" ]]; then
# yum -y install jq rsync parallel
elif [[ $ID_LIKE == "arch" ]]; then
pacman -S parallel jq rsync
else
printf "Distro not found. Exiting."
exit 1
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/
cp ./install-files/{default-config.ini,movement.json} /etc/file-o-bot/
cp ./install-files/config.ini /etc/file-o-bot/config.d/