mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-22 17:33:12 +00:00
Renaming INSTALL env name
This commit is contained in:
14
.env
14
.env
@@ -34,17 +34,17 @@ PHP_LOG_LEVEL=warning
|
|||||||
# These variables are only used if the configuration.yml file is not present, in order to automate the installation procedure
|
# These variables are only used if the configuration.yml file is not present, in order to automate the installation procedure
|
||||||
|
|
||||||
# set here the first user / email couple
|
# set here the first user / email couple
|
||||||
INSTALL_ACCOUNT_EMAIL=admin@alchemy.fr
|
PHRASEANET_ADMIN_ACCOUNT_EMAIL=admin@alchemy.fr
|
||||||
INSTALL_ACCOUNT_PASSWORD=iJRqXU0MwbyJewQLBbra6IWHsWly
|
PHRASEANET_ADMIN_ACCOUNT_PASSWORD=iJRqXU0MwbyJewQLBbra6IWHsWly
|
||||||
# Database parameters
|
# Database parameters
|
||||||
INSTALL_DB_HOST=db
|
PHRASEANET_DB_HOST=db
|
||||||
INSTALL_DB_PORT=3306
|
PHRASEANET_DB_PORT=3306
|
||||||
INSTALL_DB_USER=root
|
PHRASEANET_DB_USER=root
|
||||||
INSTALL_DB_PASSWORD=root
|
PHRASEANET_DB_PASSWORD=root
|
||||||
INSTALL_DB_TEMPLATE=DublinCore
|
INSTALL_DB_TEMPLATE=DublinCore
|
||||||
INSTALL_APPBOX=ab_master
|
INSTALL_APPBOX=ab_master
|
||||||
INSTALL_DATABOX=db_databox1
|
INSTALL_DATABOX=db_databox1
|
||||||
INSTALL_SERVER_NAME=localhost
|
PHRASEANET_SERVER_NAME=localhost
|
||||||
|
|
||||||
# Mysql max allowed packet
|
# Mysql max allowed packet
|
||||||
MYSQL_MAX_ALLOWED_PACKET=16M
|
MYSQL_MAX_ALLOWED_PACKET=16M
|
||||||
|
@@ -13,24 +13,20 @@ if [ -z "$INSTALL_ACCOUNT_PASSWORD" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
/var/alchemy/Phraseanet/bin/setup system:install \
|
/var/alchemy/Phraseanet/bin/setup system:install \
|
||||||
--email=$INSTALL_ACCOUNT_EMAIL \
|
--email=$PHRASEANET_ADMIN_ACCOUNT_EMAIL \
|
||||||
--password=$INSTALL_ACCOUNT_PASSWORD \
|
--password=$PHRASEANET_ADMIN_ACCOUNT_PASSWORD \
|
||||||
--db-host=$INSTALL_DB_HOST \
|
--db-host=$PHRASEANET_DB_HOST \
|
||||||
--db-port=$INSTALL_DB_PORT \
|
--db-port=$PHRASEANET_DB_PORT \
|
||||||
--db-user=$INSTALL_DB_USER \
|
--db-user=$PHRASEANET_DB_USER \
|
||||||
--db-password=$INSTALL_DB_PASSWORD \
|
--db-password=$PHRASEANET_DB_PASSWORD \
|
||||||
--db-template=$INSTALL_DB_TEMPLATE \
|
--db-template=$INSTALL_DB_TEMPLATE \
|
||||||
--appbox=$INSTALL_APPBOX \
|
--appbox=$INSTALL_APPBOX \
|
||||||
--databox=$INSTALL_DATABOX \
|
--databox=$INSTALL_DATABOX \
|
||||||
--server-name=$INSTALL_SERVER_NAME \
|
--server-name=$PHRASEANET_SERVER_NAME \
|
||||||
--download-path=$PHRASEANET_DOWNLOAD_DIR \
|
--download-path=$PHRASEANET_DOWNLOAD_DIR \
|
||||||
--lazaret-path=$PHRASEANET_LAZARET_DIR \
|
--lazaret-path=$PHRASEANET_LAZARET_DIR \
|
||||||
--caption-path=$PHRASEANET_CAPTION_DIR \
|
--caption-path=$PHRASEANET_CAPTION_DIR \
|
||||||
--worker-tmp-files=$PHRASEANET_WORKER_TMP \
|
--worker-tmp-files=$PHRASEANET_WORKER_TMP \
|
||||||
--download-path=/var/alchemy/Phraseanet/datas/download \
|
|
||||||
--lazaret-path=/var/alchemy/Phraseanet/datas/lazaret \
|
|
||||||
--caption-path=/var/alchemy/Phraseanet/tmp/caption \
|
|
||||||
--worker-tmp-files=/var/alchemy/Phraseanet/tmp \
|
|
||||||
--data-path=/var/alchemy/Phraseanet/datas -y
|
--data-path=/var/alchemy/Phraseanet/datas -y
|
||||||
|
|
||||||
# Bus configuration for scheduler & worker
|
# Bus configuration for scheduler & worker
|
||||||
|
@@ -31,6 +31,7 @@ if [ -f "$FILE" ]; then
|
|||||||
bin/setup system:config set registry.email.emitter-email $PHRASEANET_EMITTER_EMAIL
|
bin/setup system:config set registry.email.emitter-email $PHRASEANET_EMITTER_EMAIL
|
||||||
bin/setup system:config set registry.email.prefix $PHRASEANET_MAIL_OBJECT_PREFIX
|
bin/setup system:config set registry.email.prefix $PHRASEANET_MAIL_OBJECT_PREFIX
|
||||||
fi
|
fi
|
||||||
|
bin/console user:password --user_id=1 --password=$PHRASEANET_ADMIN_ACCOUNT_PASSWORD
|
||||||
else
|
else
|
||||||
echo "$FILE doesn't exist, entering setup..."
|
echo "$FILE doesn't exist, entering setup..."
|
||||||
runuser app -c docker/phraseanet/auto-install.sh
|
runuser app -c docker/phraseanet/auto-install.sh
|
||||||
|
Reference in New Issue
Block a user