mc-cluster/mc-cluster-image/scripts/init-mod-manager.sh

17 lines
293 B
Bash
Raw Normal View History

2024-12-06 05:52:08 -05:00
#!/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
touch "$flag_file"
su - mc -c "pm2 restart all"
else
echo "Mod Manager is initialized already! Skipping..."
fi