Solution to this problem.
Stop the vps.
vzctrl stop vps_id
Run the script.
#!/bin/bash for i in `find /vz/private/vps_id/fs/root/ -noleaf -type l -print | perl -nle '-e || print'|grep ._vzlnk_.` do ln -sf `ls -ga $i|grep ._vzlnk_.|awk '{print $9}'|sed 's//////vz/template/'` $i done
Start the vps.
vzctrl start vps_id
PS should check directories in the folder template, so as not to create dead links.
Deja una respuesta