Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I set the initial login password #41

Open
qiaofeng1227 opened this issue Jul 30, 2022 · 3 comments
Open

How do I set the initial login password #41

qiaofeng1227 opened this issue Jul 30, 2022 · 3 comments

Comments

@qiaofeng1227
Copy link

qiaofeng1227 commented Jul 30, 2022

From your dockerfile, I found that this environment variable(VT_ADMIN_PASSWORD) is used to set the initial password

ENV VT_ADMIN_USER="admin" \
    VT_ADMIN_PASSWORD="admin" \
    VT_ADMIN_EMAIL="admin@localhost.lan" \
    VT_CURRENCY_NAME="USA, Dollars" \
    VT_SCHEDULER=1 \
    VT_INSTALL=1 \
    MYSQL_HOST="mysql" \
    MYSQL_DATABASE="vtiger"

In my docker compose file, even if it is set, it will not take effect.

  vtiger:
    image: javanile/vtiger:${APP_VERSION}
    container_name: ${APP_NAME}
    restart: always
    ports:
      - ${APP_PORT}:80
    environment:
      - MYSQL_HOST=mysql
      - MYSQL_USER=${DB_MYSQL_USER}
      - MYSQL_DATABASE=${DB_MYSQL_NAME}
      - MYSQL_PASSWORD=${DB_MYSQL_PASSWORD}
      - VT_ADMIN_USER=admin
      - VT_ADMIN_PASSWORD=123456
@qiaofeng1227
Copy link
Author

Has the function of setting the initial password of the administrator been realized, or what specific processing needs to be done before the container starts?

@qiaofeng1227
Copy link
Author

root@6e5736368262:/var/www/html# echo $PATH
/root/.composer/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
root@6e5736368262:/var/www/html# export
declare -x APACHE_CONFDIR="/etc/apache2"
declare -x APACHE_ENVVARS="/etc/apache2/envvars"
declare -x COMPOSER_ALLOW_SUPERUSER="1"
declare -x DATABASE_PACKAGE="mariadb-server-10.3"
declare -x GPG_KEYS="1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F"
declare -x HOME="/root"
declare -x HOSTNAME="6e5736368262"
declare -x MYSQL_DATABASE="vtiger"
declare -x MYSQL_HOST="mysql"
declare -x MYSQL_PASSWORD="EGProfkuyL3ogd"
declare -x MYSQL_USER="vtiger"
declare -x OLDPWD="/var/www"
declare -x PATH="/root/.composer/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
declare -x PHPIZE_DEPS="autoconf 		dpkg-dev 		file 		g++ 		gcc 		libc-dev 		make 		pkg-config 		re2c"
declare -x PHP_ASC_URL="https://www.php.net/get/php-7.2.24.tar.xz.asc/from/this/mirror"
declare -x PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
declare -x PHP_CPPFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
declare -x PHP_EXTRA_BUILD_DEPS="apache2-dev"
declare -x PHP_EXTRA_CONFIGURE_ARGS="--with-apxs2 --disable-cgi"
declare -x PHP_INI_DIR="/usr/local/etc/php"
declare -x PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
declare -x PHP_MD5=""
declare -x PHP_SHA256="a6a6cc03388060aa5f8f9e45799b72bce1c7ed7b9d7b3f1187787202aad91d25"
declare -x PHP_URL="https://www.php.net/get/php-7.2.24.tar.xz/from/this/mirror"
declare -x PHP_VERSION="7.2.24"
declare -x PWD="/var/www/html"
declare -x SHLVL="1"
declare -x TERM="xterm"
declare -x VT_ADMIN_EMAIL="admin@localhost.lan"
declare -x VT_ADMIN_PASSWORD="123456"
declare -x VT_ADMIN_USER="admin"
declare -x VT_CURRENCY_NAME="USA, Dollars"
declare -x VT_DOWNLOAD="http://sourceforge.net/projects/vtigercrm/files/vtiger%20CRM%207.2.0/Core%20Product/vtigercrm7.2.0.tar.gz"
declare -x VT_VERSION="7.2.0"

@foxhoundv
Copy link

This is currently setup as a makefile. So what it is doing is pulling from lots of different files. you have to edit the vtiger-install.php file that defines that information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants