#!/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