Changeset 248 for scripts/usr/local/lib/7dtd/commands/updatescripts.sh
- Timestamp:
- Jul 26, 2015, 5:20:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/commands/updatescripts.sh
r225 r248 8 8 9 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)12 10 13 11 local FORCED … … 19 17 if [ "$FORCED" = "yes" -o $REMOTE -gt $LOCAL ]; then 20 18 echo "A newer version of the scripts is available." 21 echo "Local: v.$LOCAL (supported dedi build: $LOCAL_SUPPORTED_BUILD)"22 echo "Available: v.$REMOTE (supported dedi build: $REMOTE_SUPPORTED_BUILD)"19 echo "Local: v.$LOCAL" 20 echo "Available: v.$REMOTE" 23 21 echo 24 22 echo "Please check the release notes before continuing:" 25 23 echo " https://7dtd.illy.bz/wiki/Release%20Notes" 26 24 echo 27 28 if [ "$LOCAL_BUILD" != "$REMOTE_SUPPORTED_BUILD" ]; then29 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 echo32 fi33 25 34 26 while : ; do … … 62 54 chmod 0755 /usr/local/lib/7dtd -R 63 55 64 if [ -e $SDTD_BASE/engine/7DaysToDie_Data/Managed ]; then 65 cp /usr/local/lib/7dtd/server-fixes/* $SDTD_BASE/engine/ -R 66 chown $SDTD_USER.$SDTD_GROUP -R $SDTD_BASE/engine/ 56 if [ -d $SDTD_BASE/engine ]; then 57 if [ -d /usr/local/lib/7dtd/server-fixes ]; then 58 cp /usr/local/lib/7dtd/server-fixes/* $SDTD_BASE/engine/ -R 59 chown $SDTD_USER.$SDTD_GROUP -R $SDTD_BASE/engine/ 60 fi 67 61 fi 68 62 … … 73 67 echo "were new files added to the user folder /home/sdtd those changes" 74 68 echo "have not been applied!" 75 76 if [ "$LOCAL_BUILD" != "$REMOTE_SUPPORTED_BUILD" ]; then77 echo78 echo "Please do now update the engine by running '7dtd.sh updateengine'"79 fi80 69 else 81 70 echo "Scripts are already at the newest version (v.$LOCAL)."
Note:
See TracChangeset
for help on using the changeset viewer.