Author Topic: Soldat Server updater [Linux]  (Read 1032 times)

0 Members and 1 Guest are viewing this topic.

Offline darDar

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 794
    • #Soldat Gather - Community on Discord
Soldat Server updater [Linux]
« on: May 02, 2014, 09:44:59 pm »
Hello,
It would be nice if the update.sh would actually make a real update by itself.

I think it would be easier if the update script would do something like that

Code: [Select]
wget http://www.soldat.pl/serverpatch.zip
unzip severpatch A
chmod +x soldatserver

something similiar to that. Is that possible to create such a file?
Otherwise you should change the update.txt since it says "If you're on *nix run the update.sh script in the patch directory to automatically patch the server." which is implying that you only need to copy the update.sh file, which won't work!

I'm not an expert here though, so I might have missed something.

(sorry if I come up with a new suggestion like 6 hours after the release lol)
« Last Edit: May 02, 2014, 10:28:43 pm by darDar »
Soldat Gather 'Matchmaking Community on Discord'

gather.soldat.pl

| My Maps: ctf_Pyramid, ctf_Replay, ctf_Blako, ctf_R6, ctf_Ntex, ctf_Caro, ctf_Bizar & vs_mode mappack |

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Soldat Server updater [Linux]
« Reply #1 on: May 03, 2014, 03:15:10 am »
The current update.sh is only there to make updating easier. ofc we could write a version which checks the server and downloads a new zip file then chmods the files and then asks you where you want to apply that.
But I think admins should do that on their own (the download unzip, chmod step)

As for chmoding the files - you need to chmod the update.sh file the other files could be chmoded (not sure if they are atm) by the update.sh script.
I want to switch to tar.gz or something like that in the future though to avoid the chmodding.
Also want to not build tar bombs like we currenlty do (aka put stuff in a subfolder).

The update.txt is independent form the update.sh file. So you can apply an update manually or via update.sh script.
Rules
Tools: ARSSE - SARS - SRB - chatMod