X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fvyum-worker;h=346dab14761785d60c98d4dd710fabc06a0cc250;hb=d72a60793b771339dcabe2e52570f014b114cd26;hp=2000ffad8355503f22c369fe13baa78e3142abbb;hpb=31dca46d9f8e05e7d6520e9f88c994182288d089;p=util-vserver.git diff --git a/scripts/vyum-worker b/scripts/vyum-worker index 2000ffa..346dab1 100755 --- a/scripts/vyum-worker +++ b/scripts/vyum-worker @@ -60,9 +60,20 @@ case $($yum --version|tail -n 1) in (2.[012345]*) check 'import yum,sys; sys.exit(not hasattr(yum.config.yumconf, "getRootedPath"))' ;; - (2.6*) + (2.[6789]*|3.[012]*) check 'import yum,sys; sys.exit(not hasattr(yum.config.YumConf, "getRootedPath"))' ;; + (*) + warning "\ +You are using a version of yum which current status is unknown to vyum. + +Just to be sure, 'vyum' will use dirty hacks which might not work when +the vserver is running and local DOS attacks are possible. + +Execution will continue in 5 seconds..." + sleep 5 + conf=yum-hack.conf + ;; esac rpmFake.exec $yum \