Roundcube Community Forum

Release Support => Requests => Topic started by: wikrie on January 04, 2016, 05:15:59 AM

Title: possibilty to skip question in bin/installto.sh
Post by: wikrie 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:


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
Title: Re: possibilty to skip question in bin/installto.sh
Post by: alec on January 04, 2016, 05:27:11 AM
echo y | installto.sh ....
Title: Re: possibilty to skip question in bin/installto.sh
Post by: wikrie on January 04, 2016, 05:47:40 AM
million thanks it works ...