- #!/bin/bash
- # LinuxGSM check_gamedig.sh module
- # Author: Daniel Gibbs
- # Contributors: http://linuxgsm.com/contrib
- # Website: https://linuxgsm.com
- # Description: Installs nodejs and gamedig
- if [ "$(command -v node)" ] && [ "$(node -v | cut -d 'v' -f 2 | cut -d '.' -f 1)" -ge 16 ] && [ ! -f "${lgsmdir}/node_modules/gamedig/bin/gamedig.js" ]; then
- echo -e ""
- echo -e "${bold}${lightyellow}Installing Gamedig${default}"
- fn_script_log_info "Installing Gamedig"
- cd "${lgsmdir}" || exit
- wget -N --no-check-certificate "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${githubbranch}/package.json"
- npm install
- fi
|