Changeset 87 for scripts/usr/local/lib/7dtd/commands/updatescripts.sh
- Timestamp:
- Jul 19, 2014, 1:53:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/commands/updatescripts.sh
r59 r87 6 6 local LOCAL=$(cat /usr/local/lib/7dtd/VERSION | grep "Version" | cut -d\ -f2) 7 7 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) 8 12 9 13 local FORCED … … 15 19 if [ "$FORCED" = "yes" -o $REMOTE -gt $LOCAL ]; then 16 20 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)" 19 23 echo 20 24 echo "Please check the release notes before continuing:" 21 25 echo " https://7dtd.illy.bz/wiki/Release%20Notes" 22 26 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 23 33 24 34 while : ; do … … 52 62 chmod 0755 /usr/local/lib/7dtd -R 53 63 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 54 69 echo "Update done." 55 70 echo … … 58 73 echo "were new files added to the user folder /home/sdtd those changes" 59 74 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 60 80 else 61 81 echo "Scripts are already at the newest version (v.$LOCAL)."
Note:
See TracChangeset
for help on using the changeset viewer.