Email appears as "noname" attachment in Gmail accounts (and probably others but I did not test on):
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
So use cat -v as a workaround
See: http://ask.fclose.com/305/plain-pipelined-content-application-octet-stream-attachment
Also recommended to apply this fix to all other server scripts for consistency reasons.
Moved rootdir variable so that it's easier to define paths in fn_parms()
Fixed password parameter by adding double quotes - Error: Invalid command line (Expected value for option 'password')
Added double quotes to text type parameters - don't put quotes in the password variables or it'll break!
Added configpath variable to define where configs are loaded from (used to load from ~/.config/*, but now will load from ~/server1/*)
Added mods parameter; add mod ids delimited by space e.g. to use NS2+ and Shine: "812f004 706d242"
Added modstorage parameter; define a directory to store mods downloaded from Steam Workshop (used to load from ~/.config/Workshop/*, but now will load from ~/server1/Workshop/*)
* Fixed insserver. Now works on Debian and CentOS
* Added validate feature now 4 options update, update-restart,
validate, validate-restart
* Improved consistency of error messages thanks to wrelam
* Fixed bug with fn_logmanager
* Added steam_appid.txt file to fix an error where the server would
crash
* added 2nd query after delay on gsquery to prevent the script from
restarting during map change
* added +servercfgfile to start parameters to make multiple servers
easier. I will add more documentation on this soon.
Found x2 app 90 manifest files are required. I have created firstpass
and secondpass files. First pass downloads all manifest files . Then
second pass changes the manifest files to download the mod files
First pass app 90 downloads half life and cstrike files
Second pass app 90 downloads the mod files.
Mainly updates to make it easier to merger server versions
Improved installer
Insurgency Server added
Fixed fn_autoip not functioning as excpected
various other fixes
double quoting some of the variables that pertain to dirnames
* Cleaned up a couple of lines with trailing spaces
* Added a function for scriplogging, and replaced the lines where it
uses them. This has been tested, it works just like it used to
* Had to replace install.txt steam script with a commandline (like for
update), because steam install script treats quotes as literals:
http://forums.steampowered.com/forums/showthread.php?t=2896163
The "fix" in this forum post is not using spaces :)
* Replaced some "mkdir -v" commands with "mkdir -pv" so as to avoid
getting errors if the directory already exists
Tested on a completely fresh homedir:
- install
- start
- stop
- restart
- update
- monitor
- email-test
- details
- backup
- console
- debug
All test completed successfully!