Updated some scripts

This commit is contained in:
Toastie (DCS Team) 2024-06-25 21:02:29 +12:00
parent 4db6303e49
commit 43af2461e9
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
3 changed files with 32 additions and 6 deletions

View file

@ -1 +1,27 @@
#!/bin/sh
#!/bin/sh
root=$(pwd)
# remove old backup but store the database
if [ -d elliebot_old/output/data/ ]; then
if [ -f elliebot_old/output/data/NadekoBot.db ]; then
if [ ! -d elliebot_db_backups/ ]; then
mkdir elliebot_db_backups
fi
cp elliebot_old/output/data/NadekoBot.db elliebot_db_backups/NadekoBot-$(date +%s).db
fi
fi
rm -rf elliebot_old 1>/dev/null 2>&1
# make a new backup
mv -fT elliebot elliebot_old 1>/dev/null 2>&1
# clone new version
git clone -b v4 --recursive --depth 1 https://toastielab.dev/Emotions-stuff/elliebot
wget -q -N https://toastielab.dev/Emotions-stuff/ellie-bash-installer/raw/branch/v4/rebuild.sh
bash rebuild.sh
cd "$root"
rm "$root/e-download.sh"
exit 0

View file

@ -207,10 +207,10 @@ elif [ "$OS" = "openSUSE Leap" ] || [ "$OS" = "openSUSE Tumbleweed" ]; then
echo "Installing redis..."
sudo zypper install -y redis
# Instructions here: https://build.opensuse.org/package/view_file/openSUSE:Factory/redis/README.SUSE?expand=1
sudo cp -a /etc/redis/default.conf.example /etc/redis/nadeko.conf
sudo sudo install -d -o redis -g redis -m 0750 /var/lib/redis/nadeko/
sudo systemctl start redis@nadeko
sudo systemctl enable redis@nadeko
sudo cp -a /etc/redis/default.conf.example /etc/redis/ellie.conf
sudo sudo install -d -o redis -g redis -m 0750 /var/lib/redis/ellie/
sudo systemctl start redis@ellie
sudo systemctl enable redis@ellie
echo -e "\nInstalling music prerequisites..."
if [ "$OS" = "openSUSE Leap" ]; then

View file

@ -7,7 +7,7 @@ rm -rf elliebot_old 1>/dev/null 2>&1
# make a new backup
cp -rT elliebot elliebot_old 1>/dev/null 2>&1
wget -q -N https://toastielab.dev/Emotions-stuff/ellie-bash-installer/raw/branch/main/rebuild.sh
wget -q -N https://toastielab.dev/Emotions-stuff/ellie-bash-installer/raw/branch/v4/rebuild.sh
bash rebuild.sh
cd "$root"