Code:
install: libmpfr6
install: gawk
install: galera-4
install: mysql-common
install: mariadb-common
install: mariadb-server-10.5
install: mariadb-server
command 'lxc-attach -n 13ca25b2-6c55-44ad-be28-dc0b235a5267 --rcfile /var/lib/vz/template/builds/debian-11-bullseye-lamp-64/config --clear-env -- defenv /usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --skip-bdb --skip-innodb --skip-ndbcluster' failed with exit code 2
command 'lxc-attach -n 13ca25b2-6c55-44ad-be28-dc0b235a5267 --rcfile /var/lib/vz/template/builds/debian-11-bullseye-lamp-64/config --clear-env -- defenv /usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --skip-bdb --skip-innodb --skip-ndbcluster' failed with exit code 2
make: *** [Makefile:8: all] Error 2
The test
Makefile
is:
Code:
BASEDIR:=$(shell dab basedir)
all: info/init_ok
dab bootstrap
# # Bullseye now defaults to without-password - set to need password
sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/' ${BASEDIR}/etc/ssh/sshd_config
dab task mysql --password random
sed -e 's/\[mysqld\]/[mysqld]\ncharacter-set-server=utf8/' -i ${BASEDIR}/etc/mysql/my.cnf
dab install apache2-mpm-prefork apache2
dab install zip unzip bzip2 screen rsync curl mlocate
dab task php --memlimit 128
sed -e 's/^\s*display_errors\s*=\s*On/display_errors = Off/' -i ${BASEDIR}/etc/php5/apache2/php.ini
dab install php5-mysql php5-curl php5-xsl php5-imap php5-xmlrpc
sed -e 's/^\s*display_errors\s*=.*/display_errors = Off/' -i ${BASEDIR}/etc/php5/apache2/php.ini
sed -e 's/^\s*max_execution_time\s*=.*/max_execution_time = 120/' -i ${BASEDIR}/etc/php5/apache2/php.ini
sed -e 's/^\s*upload_max_filesize\s*=.*/upload_max_filesize = 16M/' -i ${BASEDIR}/etc/php5/apache2/php.ini
sed -e 's/^\s*post_max_size\s*=.*/post_max_size = 16M/' -i ${BASEDIR}/etc/php5/apache2/php.ini
sed -e 's/^\s*error_reporting\s*=.*/error_reporting = E_ALL \& ~E_DEPRECATED \& ~E_NOTICE/' -i ${BASEDIR}/etc/php5/apache2/php.ini
mkdir ${BASEDIR}/var/www/webroot
install -m 0644 index.html ${BASEDIR}/var/www/webroot/index.html
dab exec chown -R www-data:www-data /var/www/webroot
find ${BASEDIR}/var/www/webroot -type f -exec chmod 644 \{\} \;
find ${BASEDIR}/var/www/webroot -type d -exec chmod 755 \{\} \;
install -m 0644 webroot.conf ${BASEDIR}/etc/apache2/sites-available/webroot.conf
# install -m 0755 webroot.mysql ${BASEDIR}/etc/webroot.mysql
install -m 0755 webroot_setup ${BASEDIR}/etc/init.d/
dab exec insserv webroot_setup
export LC_ALL=C
dab exec a2enmod rewrite
dab exec a2dissite 000-default
dab exec a2ensite webroot
dab finalize
info/init_ok: dab.conf
dab init
touch $@
.PHONY: clean
clean:
dab clean
rm -f *~
.PHONY: dist-clean
dist-clean:
dab dist-clean
rm -f *~
Even if
dab task mysql --password random
is replaced by dab task mysql
the issue still remains.
Last edited: