The existing Squeeze Templates will have to be checked for the presence of file-rc for use in ProxmoxVE 1.8 as the latter now relies on insserv as the preferred method of managing startup scripts. Attempting to compile an OpenVZ template having file-rc in it's Makefile will result in the following error:
A working snippet from a joomla template is listed below:
Needless to say that the appropriately formatted comments at the start of the setup file (joomla1523_setup above) must adhere to that required by insserv.
Code:
dab exec a2ensite joomla
Enabling site joomla.
Run '/etc/init.d/apache2 reload' to activate new configuration!
dab install file-rc
download: [URL]http://ftp.debian.org/debian/pool/main/f/file-rc/file-rc_0.8.12_all.deb[/URL]
install: file-rc
command 'vzctl exec2 90000 defenv dpkg --force-depends --force-confold --install /file-rc_0.8.12_all.deb' failed with exit code 1
command 'vzctl exec2 90000 defenv dpkg --force-depends --force-confold --install /file-rc_0.8.12_all.deb' failed with exit code 1
make: *** [all] Error 1
A working snippet from a joomla template is listed below:
Code:
.
.
.
install -m 0644 joomla.conf ${BASEDIR}/etc/apache2/sites-available/joomla
install -m 0755 joomla1523.mysql ${BASEDIR}/etc/
install -m 0755 joomla1523_setup ${BASEDIR}/etc/init.d/
dab exec insserv joomla1523_setup
dab exec a2enmod rewrite
dab exec a2dissite default
dab exec a2ensite joomla
dab finalize
.
.
.
Last edited: