20 lines
335 B
Bash
20 lines
335 B
Bash
#!/bin/bash
|
|
|
|
cd /home/mc/minecraft
|
|
|
|
flag_file="mod-manager.init"
|
|
|
|
if [ ! -f "$flag_file" ]; then
|
|
/var/mod-manager-installer.sh
|
|
echo "1.21.1" | mod-manager init
|
|
mod-manager install 8dI2tmqs -f
|
|
|
|
|
|
|
|
|
|
touch "$flag_file"
|
|
su - mc -c "pm2 restart all"
|
|
else
|
|
echo "Mod Manager is initialized already! Skipping..."
|
|
fi
|