Mono /usr/local/bin/nuget.exe install _sqlite3.linux -Version 1.1.11 -OutputDirectory /home/$username/iw4madminĬhmod -R 770 /home/$username/iw4madmin/Lib/runtimesĮcho "# Fixing ownership of serverfiles # "Ĭhown -R " $username ":users /home/ " $username "Įcho "# Do you wish to remove the downloaded zip-files? # " If ] thenĮcho "# The install files exists already # "Įcho "# Adding urls to download_list.txt # "Ĭat > /home/ " $username "/download_list.txt /home/ " $username "/servers/ " $svalias "/MW2/iw4x/server.cfg /home/ " $username "/ " $svalias ".sh /home/ " $username "/.bash_aliases /home/ " $username "/afterinstall.sh << EOF Su " $username " -c "mkdir -p /home/' $username'/servers/' $svalias' "
If thenĮcho "# You already have a server with that alias # "Įcho "# Creating serverfolder ' $svalias' " Useradd -m -g users -d /home/ " $username " -s /bin/bash -p $(echo " $password " | openssl passwd -1 -stdin ) " $username " Mv prod.list /etc/apt//microsoft-prod.listĬhown root:root /etc/apt//Ĭhown root:root /etc/apt//microsoft-prod.listĪpt-get install wine wine32 unzip git screen mono-devel dotnet-sdk-2.1 curl -yĮcho "# Specify username to install under - can be a new or existing user - DO NOT use root # "Įcho "# Specify password if new user # "Įcho "# Specify server hostname (Visable in the serverbrowser) # "Įcho "# Specify server port default is 28960 (You must Specify a port) # "Įcho "# Specify server alias - a name to refer to this server by - use different names for multiple servers # "Įcho "# Specify server RCON-password # " Apt install apt-transport-https dirmngr -y