Doesn't the command line option for the steam cmd dir already do this? SavSin On Mar 8, 2013 12:37 PM, "Emanuel Caceres | Gmail" <[email protected]> wrote:
> **
> Dears;
>
> Could you please replace in the file srcds_run the following lines
> "-autoupdate")
> AUTO_UPDATE="yes"
> RESTART="yes" ;;
> for
>
> $DIR = Where is located the steam.sh
>
> "-autoupdate")
> AUTO_UPDATE="yes"
> STEAM="$DIR/steam.sh"
> RESTART="yes" ;;
> and
>
> updatesingle() {
> # Run the steam update
> # exits on failure if STEAMERR is set
>
> if test -n "$AUTO_UPDATE"; then
> if test -d "$STEAM_DIR"; then
> echo "Updating server using Steam."
> echo "----------------------------"
> OLDWD=$(pwd)
> eval "cd $STEAM_DIR"
> eval "STEAMEXE=steamcmd ./steam.sh +runscript
> $STEAMCMD_SCRIPT"
> eval "cd $OLDWD"
> echo "----------------------------"
> else
> if test -n "$STEAMERR"; then
> echo "ERROR: Could not locate steam
> dir:$STEAM_DIR, exiting.";
> quit 1
> else
> echo "WARNING: Could not locate steam
> dir:$STEAM_DIR, ignoring."
> return 0
> fi
> fi
> fi
>
> return 1
> }
> for
>
> updatesingle() {
> # Run the steam update
> # exits on failure if STEAMERR is set
>
> if test -n "$AUTO_UPDATE"; then
> if test -f "$STEAM"; then
> echo "Updating server using Steam."
> CMD="$STEAM +logon anonymous +force_install_dir ..
> +app_update 740 +quit";
> if test -n "$BETA_VERSION"; then
> CMD="$CMD -beta $BETA_VERSION";
> fi
>
> STEAMEXE=steamcmd $CMD
> if test $? -ne 0; then
> if test -n "$STEAMERR"; then
> echo "`date`: Steam Update failed,
> exiting."
> quit 1
> else
> echo "`date`: Steam Update failed,
> ignoring."
> return 0
> fi
> fi
> else
> if test -n "$STEAMERR"; then
> echo "Could not locate steam
> binary:$STEAM, exiting.";
> quit 1
> else
> echo "Could not locate steam
> binary:$STEAM, ignoring.";
> return 0
> fi
> fi
> fi
>
> return 1
> }
>
> for these ones in order to avoid putting in the start.sh all this ?
>
> -steam_dir /usr/local/games/XXXXX/configs -steamcmd_script
> /usr/local/games/XXXXX/update.txt
>
> Best Regards
> ------------------------------
> *Emanuel Caceres Soporte Técnico * *127.0.0.1 *
> <http://localhost.net.ar/>
> *Soluciones Innovadoras * Mendoza 2917 :: C1428DKY
> Ciudad Autónoma de Buenos Aires :: Argentina
> Tel/Fax: 0810 55 LOCALHOST | (011) 4784-6993
> http://www.localhost.net.ar/
> [email protected]
>
> _______________________________________________
> Csgo_servers mailing list
> [email protected]
> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers
>
<<logofirma.jpg>>
_______________________________________________ Csgo_servers mailing list [email protected] https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers
