Explorar el Código

Changed message if servefiles already exists

Daniel Gibbs hace 9 años
padre
commit
cd23d0db05
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      linuxgsm.sh

+ 6 - 1
linuxgsm.sh

@@ -243,7 +243,12 @@ fn_install_file(){
 	sed -i -e "s/shortname=\"core\"/shortname=\"${shortname}\"/g" "${local_filename}"
 	sed -i -e "s/servername=\"core\"/servername=\"${servername}\"/g" "${local_filename}"
 	echo "Installed ${gamename} server as ${local_filename}"
-	echo "./${local_filename} install"
+	echo ""
+	if [ ! -d "${serverfiles}" ]; then
+		echo "./${local_filename} install"
+	else
+		echo "Remember to check server ports"
+		echo "./${local_filename} details"
 	exit
 }