Author Topic: possibilty to skip question in bin/installto.sh  (Read 3449 times)

Offline wikrie

  • Jr. Member
  • **
  • Posts: 12
possibilty to skip question in bin/installto.sh
« on: January 04, 2016, 05:15:59 AM »
Hi everybody,

I'm using the installto.sh script to update all of my existing roundcube installations on my root server, so that process is working fine at all.
But if I would like to create a cronjob for it to check it monthly and update it in background, I do not see any change to skip the Question:

Code: [Select]
echo "Upgrading from $oldversion. Do you want to continue? (y/N)\n";
$input = trim(fgets(STDIN));

and because of it this I cannot run this as cronjpb at the moment?
I could create my own version of the installto.sh script yes indead, but I want to ask to force the question with Yes as an parameter, I would like to see something like

bin/install.sh /target/dir/of/my/roundcube -f=yes

for example.

best regards
wikrie
mfg /br

WiKrIe

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: possibilty to skip question in bin/installto.sh
« Reply #1 on: January 04, 2016, 05:27:11 AM »
echo y | installto.sh ....

Offline wikrie

  • Jr. Member
  • **
  • Posts: 12
Re: possibilty to skip question in bin/installto.sh
« Reply #2 on: January 04, 2016, 05:47:40 AM »
million thanks it works ...
mfg /br

WiKrIe