Raised This Month: $51 Target: $400
 12% 

[Guide][CS:GO] Server Auto Update


Post New Thread Reply   
 
Thread Tools Display Modes
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 11-27-2019 , 14:29   Re: [Guide][CS:GO] Server Auto Update
Reply With Quote #21

there was a known bug in srcds_run which named steamcmd.sh as steam.sh and you had to edit it your self, not sure if it's still there but give that a try
__________________
ambn is offline
bercerobry
Junior Member
Join Date: Nov 2019
Old 11-27-2019 , 14:33   Re: [Guide][CS:GO] Server Auto Update
Reply With Quote #22

Quote:
Originally Posted by ambn View Post
there was a known bug in srcds_run which named steamcmd.sh as steam.sh and you had to edit it your self, not sure if it's still there but give that a try
Can you please add more details? I'm not getting it. Sorry...
Thanks!
bercerobry is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 11-27-2019 , 14:39   Re: [Guide][CS:GO] Server Auto Update
Reply With Quote #23

on srcds_run file look for this line:

PHP Code:
updatesingle() {
    
# Run the steam update
    # exits on failure if STEAMERR is set

    
if test -"$AUTO_UPDATE"then
        
if test -"$STEAM_DIR"then
            
echo "Updating server using Steam."
            
echo "----------------------------"
            
OLDWD=$(pwd)
            eval 
"cd $STEAM_DIR"
            
eval "STEAMEXE=steamcmd ./steamcmd.sh +runscript $STEAMCMD_SCRIPT"
            
eval "cd $OLDWD"
            
echo "----------------------------"
        
else
            if 
test -"$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

steamcmd.sh might be written as steam.sh which is not a valid file (if only your steamcmd file's name isn't steam.sh)

edit, save then try again
__________________
ambn is offline
bercerobry
Junior Member
Join Date: Nov 2019
Old 11-28-2019 , 03:22   Re: [Guide][CS:GO] Server Auto Update
Reply With Quote #24

Quote:
Originally Posted by ambn View Post
on srcds_run file look for this line:

PHP Code:
updatesingle() {
    
# Run the steam update
    # exits on failure if STEAMERR is set

    
if test -"$AUTO_UPDATE"then
        
if test -"$STEAM_DIR"then
            
echo "Updating server using Steam."
            
echo "----------------------------"
            
OLDWD=$(pwd)
            eval 
"cd $STEAM_DIR"
            
eval "STEAMEXE=steamcmd ./steamcmd.sh +runscript $STEAMCMD_SCRIPT"
            
eval "cd $OLDWD"
            
echo "----------------------------"
        
else
            if 
test -"$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

steamcmd.sh might be written as steam.sh which is not a valid file (if only your steamcmd file's name isn't steam.sh)

edit, save then try again
life saver!!
I saw the line and indeed it was steam.sh, I edited that to steamcmd.sh.
So this will keep the server patched each time valve release an update right?
bercerobry is offline
sphinx
Senior Member
Join Date: Jun 2005
Location: E.U. / localhost
Old 11-29-2019 , 07:55   Re: [Guide][CS:GO] Server Auto Update
Reply With Quote #25

A server download the update and apply it when the map changes.
There is any method for the server to broadcast a message to players that the update will be applied on mapchange?

Last edited by sphinx; 11-29-2019 at 07:57.
sphinx is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode