Re: [CentOS] @reboot only some lines of a script are working (yum install not)

2019-01-15 Thread Anthony K
On 16/1/19 1:48 am, Anthony K wrote: On 14/1/19 5:26 pm, Ralf Prengel wrote: Hallo, yes it is up. Result of 10 pings is fine as first line in the script. Any other ideas? Ralf Maybe there's something in the install process that needs a tty - maybe try running it in a screen session??? Sor

Re: [CentOS] @reboot only some lines of a script are working (yum install not)

2019-01-15 Thread Anthony K
On 14/1/19 5:26 pm, Ralf Prengel wrote: Hallo, yes it is up. Result of 10 pings is fine as first line in the script. Any other ideas? Ralf Maybe there's something in the install process that needs a tty - maybe try running it in a screen session??? ___

Re: [CentOS] @reboot only some lines of a script are working (yum install not)

2019-01-14 Thread Ralf Prengel
Hallo. solved. proxy in yum.conf is working when starting yum in an crontab-environment. Ralf Zitat von Ralf Prengel : Zitat von Mogens Kjaer : On 1/10/19 11:32 AM, Ralf Prengel wrote: yum install doesn't work running the script via cron allthough yum remove works. Is the network up when

Re: [CentOS] @reboot only some lines of a script are working (yum install not)

2019-01-14 Thread Ralf Prengel
Found this after using debug-level. Seems as if curl doesn t use the proxy configuration. We are using port 8080. } } 2019-01-14 09:57:06,919 attempt 1/10: http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock 2019-01-14 09:57:35,048 exception: [Errno 14] curl#7 - "Faile

Re: [CentOS] @reboot only some lines of a script are working (yum install not)

2019-01-13 Thread Ralf Prengel
Zitat von Mogens Kjaer : On 1/10/19 11:32 AM, Ralf Prengel wrote: yum install doesn't work running the script via cron allthough yum remove works. Is the network up when the script executes? Hallo, yes it is up. Result of 10 pings is fine as first line in the script. Any other ideas?

Re: [CentOS] @reboot only some lines of a script are working (yum install not)

2019-01-10 Thread Ralf Prengel
ok a good hint. I will test it monday. Ralf Von meinem iPhone gesendet > Am 10.01.2019 um 18:23 schrieb Mogens Kjaer : > >> On 1/10/19 11:32 AM, Ralf Prengel wrote: >> yum install doesn't work running the script via cron allthough yum remove >> works. > > Is the network up when the script ex

Re: [CentOS] @reboot only some lines of a script are working (yum install not)

2019-01-10 Thread Mogens Kjaer
On 1/10/19 11:32 AM, Ralf Prengel wrote: yum install doesn't work running the script via cron allthough yum remove works. Is the network up when the script executes? Mogens -- Mogens Kjaer, m...@lemo.dk http://www.lemo.dk ___ CentOS mailing list C

[CentOS] @reboot only some lines of a script are working (yum install not)

2019-01-10 Thread Ralf Prengel
Hallo, I m using a script to install docker after a reboot. The script is starting and working. The problem: yum install doesn't work running the script via cron allthough yum remove works. Starting the script manual works fine . Has anyone a hint for me? Thanks Ralf xxx SHELL=/bin/bash P