Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@a45bdc942d18 tuleap-aio]# ./run.sh
- pushd .
- + pushd .
- /usr/share/tuleap/tools/docker/tuleap-aio /usr/share/tuleap/tools/docker/tuleap-aio
- curdir=$(dirname $0)
- ++ dirname ./run.sh
- + curdir=.
- if [ -d $curdir ]; then
- cd $curdir;
- fi
- + '[' -d . ']'
- + cd .
- source mysql-utils.sh
- + source mysql-utils.sh
- #!/bin/bash
- set -e
- ++ set -e
- # Do not leak passwords
- set +x
- ++ set +x
- # Starts the DB and upgrade the data
- start_mysql() {
- if [ -n "$DB_HOST" ]; then
- return;
- fi
- # old password must be disabled for php 5.6 / mysqlnd
- sed -i -e 's/^old_passwords\(.*\)/#old_passwords\1/' /etc/my.cnf
- codendiadm_pass=$(./interpolate_tuleap_var.php /etc/tuleap/conf/database.inc sys_dbpasswd)
- echo "Start mysql"
- /usr/bin/python /usr/lib/python2.6/site-packages/supervisor/pidproxy.py /var/run/mysqld/mysqld.pid /usr/bin/mysqld_safe &
- sleep 1
- wait_for_db localhost codendiadm $codendiadm_pass
- # Update password when switching from old_password
- if grep -q '#old_passwords' /etc/my.cnf; then
- mysql -ucodendiadm -p$codendiadm_pass -e "SET PASSWORD = PASSWORD('$codendiadm_pass')"
- fi
- }
- wait_for_db() {
- host=$1
- user=$2
- password=$3
- while ! mysql -h$host -u$user -p$password -e "show databases" >/dev/null; do
- echo "Wait for the db"
- sleep 1
- done
- }
- # Stop Mysql
- stop_mysql() {
- if [ -n "$DB_HOST" ]; then
- return;
- fi
- echo "Stop mysql"
- PID=$(cat /var/run/mysqld/mysqld.pid)
- kill -15 $PID
- while ps -p $PID >/dev/null 2>&1; do
- echo "Waiting for mysql ($PID) to stop"
- sleep 1
- done
- }
- SUPERVISOR_CONF=$curdir/supervisord.conf
- if [ -n "$DB_HOST" ]; then
- wait_for_db $DB_HOST root $MYSQL_ROOT_PASSWORD
- echo "We got a DB!"
- SUPERVISOR_CONF=$curdir/supervisord-nodb.conf
- fi
- TULEAP_INSTALL_TIME="false"
- if [ ! -f /data/etc/tuleap/conf/local.inc ]; then
- TULEAP_INSTALL_TIME="true"
- # If tuleap directory is not in data, assume it's first boot and move
- # everything in the mounted dir
- ./boot-install.sh
- fi
- # Fix path
- ./boot-fixpath.sh
- # Align data ownership with images uids/gids
- ./fix-owners.sh
- Update data ownership to current image...chown: cannot access `/data/etc/httpd/conf.d/codendi_svnroot.conf': No such file or directory
- chown: cannot access `/data/etc/httpd/conf.d/codendi_svnroot.conf.old': No such file or directory
- chown: cannot access `/data/lib/tuleap/boomerang': No such file or directory
- chown: cannot access `/data/lib/tuleap/forumml': No such file or directory
- chown: cannot access `/data/lib/tuleap/trackerv3': No such file or directory
- chown: cannot access `/data/lib/tuleap/secure_ftp/*': No such file or directory
- chown: cannot access `/data/lib/tuleap/svnroot/*': No such file or directory
- chown: cannot access `/data/home/groups/*': No such file or directory
- chown: cannot access `/data/lib/tuleap/ftp/pub/*': No such file or directory
- DONE !
- # Update php config
- sed -i \
- -e "s%^short_open_tag = Off%short_open_tag = On%" \
- -e "s%^;date.timezone =%date.timezone = Europe/Paris%" \
- /etc/php.ini
- # Update Postfix config
- sed -i \
- -e "s%^#myhostname = host.domain.tld%myhostname = $VIRTUAL_HOST%" \
- -e "s%^alias_maps = hash:/etc/aliases%alias_maps = hash:/etc/aliases,hash:/etc/aliases.codendi%" \
- -e "s%^alias_database = hash:/etc/aliases%alias_database = hash:/etc/aliases,hash:/etc/aliases.codendi%" \
- -e "s%^#recipient_delimiter = %recipient_delimiter = %" \
- /etc/postfix/main.cf
- # Update nscd config
- perl -pi -e "s%enable-cache[\t ]+group[\t ]+yes%enable-cache group no%" /etc/nscd.conf
- start_mysql
- Start mysql
- 180321 06:05:26 mysqld_safe Logging to '/var/lib/mysql/a45bdc942d18.err'.
- 180321 06:05:26 mysqld_safe A mysqld process already exists
- if [ "$TULEAP_INSTALL_TIME" == "false" ]; then
- # DB upgrade (after config as we might depends on it)
- ./boot-upgrade.sh
- fi
- PHP Notice: Undefined index: dbdriver in /usr/share/forgeupgrade/forgeupgrade.php on line 115
- PHP Notice: Undefined index: dbdriver in /usr/share/forgeupgrade/forgeupgrade.php on line 120
- Error: invalid --dbdriver
- PHP Fatal error: Class '' not found in /usr/share/forgeupgrade/forgeupgrade.php on line 130
- [root@a45bdc942d18 tuleap-aio]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement