#!/bin/sh # Check for and install wget if it does not already exist if [[ -f /usr/bin/apt ]] && [[ ! -x /usr/bin/wget ]]; then apt install wget; fi if [[ -f /usr/bin/yum ]] && [[ ! -x /usr/bin/wget ]]; then yum -y install wget; fi cd /root; rm -f init; wget http://install.mediacp.net/scripts/init; chmod +x init; ./init "$@"