Urban Terror Forums: Linux server updater - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Linux server updater Rate Topic: -----

how to automate...

#1 User is offline   IceMan Icon

  • Account: iceman
  • Main tag: bw|
  • Country:
  • Joined: 08-November 10
  • Posts: 63

Posted 11 November 2012 - 03:53 PM

I all... I am the admin of a bunch of servers and I like make things easy and quick.

I was thinking about a bash script able to update in automatic a server whenever a new release is found.
I cannot think of a way to automatically update because of all the questions the updater asks where you have to manually push y!
Is there any way to automate all those questions? I would be great!

#2 User is offline   karnute Icon

  •   community dev   
  • Account: karnute
  • Joined: 09-August 11
  • Posts: 157

Posted 11 November 2012 - 09:28 PM

View PostIceMan, on 11 November 2012 - 03:53 PM, said:

I all... I am the admin of a bunch of servers and I like make things easy and quick.
I was thinking about a bash script able to update in automatic a server whenever a new release is found.
I cannot think of a way to automatically update because of all the questions the updater asks where you have to manually push y!
Is there any way to automate all those questions? I would be great!

You can try the "yes" command (included in GNU coreutils, so it probably is already in your system), which does exactly what you want in an input pipe before the updater invocation, like the following:
yes | ./UrTUpdater_Ded.x86_64


#3 User is offline   Runamuk Icon

  • Account: runamuk
  • Joined: 28-February 10
  • Posts: 238

Posted 11 November 2012 - 11:28 PM

View Postkarnute, on 11 November 2012 - 09:28 PM, said:

You can try the "yes" command (included in GNU coreutils, so it probably is already in your system), which does exactly what you want in an input pipe before the updater invocation, like the following:
yes | ./UrTUpdater_Ded.x86_64



This was answered in an early thread. You add a -q (quiet all flags) and the updater will run through with no questions asked.

#4 User is offline   Courgette Icon

  •   community dev   
    B3 bot developer
  • Account: courgette
  • Main tag: [B3]
  • Country:
  • Joined: 09-June 09
  • Posts: 204

Posted 12 November 2012 - 10:41 PM

you can call "./UrTUpdater_Ded.i386 -q" it works for me

This post has been edited by Courgette: 12 November 2012 - 10:42 PM


#5 User is offline   Spiki Icon

  •   clan leader   
  • Account: spiki
  • Main tag: [b00bs]
  • Country:
  • Joined: 28-February 10
  • Posts: 43

Posted 14 November 2012 - 07:07 AM

View PostCourgette, on 12 November 2012 - 10:41 PM, said:

you can call "./UrTUpdater_Ded.i386 -q" it works for me


In current form you'd still have to do some checkups, if the downloaded pk3 files are 2/4 kb size in which case you should delete them and download again...
copy the binary to /usr/bin
restart the server
get some checkups if all is done correctly
...
all of which you seem not to be capable of since you stopped at expect / yes / -q...

Just do it manually, it's not like there's more than few minutes of "work" needed once per month...
I am lucker. no skills at all. ask anyone

I sell frozen jogurt which i call frogurt.

www.b00bs-clan.com .::. youtube.com/b00bsclan .::. [b00bs] TV / Twitch .::. twitter.com/b00bsclan @b00bsclan .::. www.b00bs-clan.com/servers 13 UrT 4.1 + 12 UrT 4.2

bullet_loaderAdvertisement
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Sponsored link
https://www.frozensand.com/


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942