Ignore:
Timestamp:
Jul 19, 2014, 1:53:35 PM (10 years ago)
Author:
alloc
Message:

v.32

Location:
scripts/usr/local/lib/7dtd/commands
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/commands/updateengine.sh

    r80 r87  
    4242        local LOCAL=$(getLocalEngineVersion)
    4343        local REMOTE=$(getRemoteEngineVersion)
     44        local LOCAL_SUPPORTED_BUILD=$(cat /usr/local/lib/7dtd/VERSION | grep "DediBuild" | cut -d\  -f2)
    4445
    4546        if [ "$FORCED" = "yes" -o $REMOTE -gt $LOCAL ]; then
     
    4849                echo "Available buildid: $REMOTE"
    4950                echo
    50                
     51
     52                if [ "$LOCAL_SUPPORTED_BUILD" != "$REMOTE" ]; then
     53                        echo "WARNING!!! The currently installed version of the scripts do not support the newer dedicated server build!"
     54                        echo "If you continue you might not be able to start the server."
     55                        echo "Please wait for an updated release of the scripts or continue at your own risk."
     56                        echo
     57                fi
     58       
    5159                while : ; do
    5260                        local CONTINUE
     
    7078
    7179                cp $SDTD_BASE/linux_files/engine/* $SDTD_BASE/engine/ -R
     80                cp /usr/local/lib/7dtd/server-fixes/* $SDTD_BASE/engine/7DaysToDie_Data/Managed/
    7281                cp $SDTD_BASE/engine/Install/32bit/SteamworksManaged.dll $SDTD_BASE/engine/7DaysToDie_Data/Managed/
    7382
    7483                chown $SDTD_USER.$SDTD_GROUP -R $SDTD_BASE/engine
     84
     85                if [ "$LOCAL_SUPPORTED_BUILD" != "$REMOTE" ]; then
     86                        echo
     87                        echo "Also update the scripts as soon as there is a new release for this dedicated server build."
     88                        echo
     89                fi
    7590        else
    7691                echo "Engine is already at the newest build (local: $LOCAL, remote: $REMOTE)."
  • scripts/usr/local/lib/7dtd/commands/updatescripts.sh

    r59 r87  
    66        local LOCAL=$(cat /usr/local/lib/7dtd/VERSION | grep "Version" | cut -d\  -f2)
    77        local REMOTE=$(wget -qO- http://illy.bz/fi/7dtd/VERSION | grep "Version" | cut -d\  -f2)
     8       
     9        local LOCAL_BUILD=$(getLocalEngineVersion)
     10        local LOCAL_SUPPORTED_BUILD=$(cat /usr/local/lib/7dtd/VERSION | grep "DediBuild" | cut -d\  -f2)
     11        local REMOTE_SUPPORTED_BUILD=$(wget -qO- http://illy.bz/fi/7dtd/VERSION | grep "DediBuild" | cut -d\  -f2)
    812       
    913        local FORCED
     
    1519        if [ "$FORCED" = "yes" -o $REMOTE -gt $LOCAL ]; then
    1620                echo "A newer version of the scripts is available."
    17                 echo "Local:     v.$LOCAL"
    18                 echo "Available: v.$REMOTE"
     21                echo "Local:     v.$LOCAL (supported dedi build: $LOCAL_SUPPORTED_BUILD)"
     22                echo "Available: v.$REMOTE (supported dedi build: $REMOTE_SUPPORTED_BUILD)"
    1923                echo
    2024                echo "Please check the release notes before continuing:"
    2125                echo "  https://7dtd.illy.bz/wiki/Release%20Notes"
    2226                echo
     27               
     28                if [ "$LOCAL_BUILD" != "$REMOTE_SUPPORTED_BUILD" ]; then
     29                        echo "NOTE: The newer scripts are made for a more recent build ($REMOTE_SUPPORTED_BUILD) of the dedicated server than you are running ($LOCAL_BUILD)!"
     30                        echo "You will have to update the engine after updating to those new scripts!"
     31                        echo
     32                fi
    2333               
    2434                while : ; do
     
    5262                chmod 0755 /usr/local/lib/7dtd -R
    5363               
     64                if [ -e $SDTD_BASE/engine/7DaysToDie_Data/Managed ]; then
     65                        cp /usr/local/lib/7dtd/server-fixes/* $SDTD_BASE/engine/7DaysToDie_Data/Managed/
     66                        chown $SDTD_USER.$SDTD_GROUP -R $SDTD_BASE/engine/7DaysToDie_Data/Managed/
     67                fi
     68
    5469                echo "Update done."
    5570                echo
     
    5873                echo "were new files added to the user folder /home/sdtd those changes"
    5974                echo "have not been applied!"
     75
     76                if [ "$LOCAL_BUILD" != "$REMOTE_SUPPORTED_BUILD" ]; then
     77                        echo
     78                        echo "Please do now update the engine by running '7dtd.sh updateengine'"
     79                fi
    6080        else
    6181                echo "Scripts are already at the newest version (v.$LOCAL)."
Note: See TracChangeset for help on using the changeset viewer.