Hi I assume that this would work as fine, or?
for n in $(find /etc/vz/names -maxdepth 1 -name "*.conf"); do VEID= m=`echo $n|sed -e "s/.conf//"` . $n echo $VEID if [ -n "$VEID" ] ; then ln -s /etc/vz/conf/$VEID.conf $m fi rm -f $n done The /etc/vz/names/xxxx.conf file should be removed or? Is there a good way to detect the change of config scheme? Best regards, // Ola On Sun, Jan 13, 2008 at 09:43:44PM +0100, Dariush Pietrzak wrote: > Hello, > > > Exactly what did you need to do to solve the problem? > cd /etc/vz/names && for n in *; do echo $n; m=`echo $n|sed -e "s/.conf//"`; > v=`cat $n|sed -e "s/VEID=.//"|sed -e "s/.$//"`; echo $m;ln -s > /etc/vz/conf/$v.conf $m; done > did the trick for me, I guess something logically equivalent wouldn't hurt > much when old-style config is detected. > > -- > Key fingerprint = 40D0 9FFB 9939 7320 8294 05E0 BCC7 02C4 75CC 50D9 > Total Existance Failure > -- --- Ola Lundqvist systemkonsult --- M Sc in IT Engineering ---- / [EMAIL PROTECTED] Annebergsslingan 37 \ | [EMAIL PROTECTED] 654 65 KARLSTAD | | http://opalsys.net/ Mobile: +46 (0)70-332 1551 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --------------------------------------------------------------- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]