You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
199 lines
4.2 KiB
199 lines
4.2 KiB
#!/bin/bash
|
|
|
|
### DONT OVERWRITE THIS FILE
|
|
|
|
app_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." &> /dev/null && pwd)
|
|
|
|
|
|
### GENERAL
|
|
|
|
|
|
project_name='www.domain.de'
|
|
shopware_version='6'
|
|
|
|
|
|
### STAGE
|
|
|
|
|
|
stage_use_git='y' # if the stage system is deployed using git
|
|
|
|
stage_ssh_user='your-user'
|
|
stage_ssh_domain='your-domain'
|
|
stage_ssh_has_key_file='y'
|
|
stage_ssh_key_file='/path/to/.ssh/key'
|
|
|
|
stage_httpdocs_path='/var/www/vhosts/domain.de/httpdocs'
|
|
stage_httpdocs_slug='/shopware' # optional slug if you install the software not directly in httpdocs
|
|
|
|
stage_database_has_socket='n'
|
|
stage_database_socket=''
|
|
stage_database_host='localhost'
|
|
stage_database_port='3306'
|
|
stage_database_name='database_name'
|
|
stage_database_user='database_user'
|
|
stage_database_password='database_password'
|
|
|
|
# only needed if you want to create a database
|
|
stage_database_admin_user=''
|
|
stage_database_admin_password=''
|
|
|
|
|
|
### LIVE
|
|
|
|
|
|
live_use_git='y'
|
|
|
|
live_ssh_user='user'
|
|
live_ssh_domain='domain.de'
|
|
live_ssh_has_key_file='n'
|
|
live_ssh_key_file=''
|
|
|
|
live_httpdocs_path='/var/www/vhosts/domain.de/httpdocs'
|
|
live_httpdocs_slug=''
|
|
|
|
live_database_has_socket='n'
|
|
live_database_socket=''
|
|
live_database_host='localhost'
|
|
live_database_port='3306'
|
|
live_database_name='name'
|
|
live_database_user='user'
|
|
live_database_password='password'
|
|
|
|
# only needed if you want to create a database
|
|
live_database_admin_user=''
|
|
live_database_admin_password=''
|
|
|
|
|
|
### LOCAL STAGE
|
|
|
|
|
|
local_stage_use_git='y' # if you don't work with the git working copy / you can sync local htdocs/. with git repo
|
|
local_stage_slug='/shopware'
|
|
|
|
local_stage_database_has_socket='n'
|
|
local_stage_database_socket=''
|
|
local_stage_database_host='localhost'
|
|
local_stage_database_port='3306'
|
|
local_stage_database_name='name_stage'
|
|
local_stage_database_user='user'
|
|
local_stage_database_password='password'
|
|
|
|
# only needed if you can't create database and want to create a database
|
|
local_stage_database_admin_user=''
|
|
local_stage_database_admin_password=''
|
|
|
|
|
|
### LOCAL LIVE
|
|
|
|
|
|
local_live_use_git='y'
|
|
local_live_slug='/shopware'
|
|
|
|
local_live_database_has_socket='n'
|
|
local_live_database_socket=''
|
|
local_live_database_host='localhost'
|
|
local_live_database_port='3306'
|
|
local_live_database_name='name_live'
|
|
local_live_database_user='user'
|
|
local_live_database_password='password'
|
|
|
|
# only needed if you can't create database and want to create a database
|
|
local_live_database_admin_user=''
|
|
local_live_database_admin_password=''
|
|
|
|
|
|
### SHOPWARE USER
|
|
|
|
|
|
local_shopware_user='user'
|
|
local_shopware_email='email'
|
|
local_shopware_firstname='Name'
|
|
local_shopware_lastname='Lastname'
|
|
|
|
|
|
### GIT
|
|
|
|
|
|
git_has_ssh_key_file='n'
|
|
git_ssh_key_file=''
|
|
git_url=''
|
|
|
|
# you can update stage with data from live
|
|
live_to_stage_live_urls=("https://www.domain.de")
|
|
live_to_stage_stage_urls=("https://stage.domain.de")
|
|
|
|
# if you copy the stage state to local
|
|
stage_to_local_stage_urls=("https://stage.domain.de")
|
|
stage_to_local_local_urls=("https://localhost/domain.de/stage.domain.de")
|
|
|
|
# here more complete, copy the live system to local
|
|
live_to_local_live_urls=(
|
|
"http://www.domain.de"
|
|
"https://www.domain.de"
|
|
)
|
|
live_to_local_local_urls=(
|
|
"http://localhost/martins-domain.de/www.domain.de"
|
|
"https://localhost/domain.de/www.domain.de"
|
|
)
|
|
|
|
|
|
### GDPR SHOPWARE 6 TABLES
|
|
|
|
|
|
gdpr_tables=(
|
|
acl_user_role
|
|
cart
|
|
customer
|
|
customer_address
|
|
customer_recovery
|
|
customer_tag
|
|
customer_wishlist
|
|
customer_wishlist_product
|
|
elasticsearch_index_task
|
|
import_export_log
|
|
integration
|
|
integration_role
|
|
log_entry
|
|
message_queue_stats
|
|
newsletter_recipient
|
|
newsletter_recipient_tag
|
|
order
|
|
order_address
|
|
order_customer
|
|
order_delivery
|
|
order_delivery_position
|
|
order_line_item
|
|
order_tag
|
|
order_transaction
|
|
product_export
|
|
product_review
|
|
promotion_persona_customer
|
|
refresh_token
|
|
sales_channel_api_context
|
|
state_machine_history
|
|
user
|
|
user_access_key
|
|
user_config
|
|
user_recovery
|
|
version
|
|
version_commit
|
|
version_commit_data
|
|
klarna_payment_request_log
|
|
payone_payment_card
|
|
payone_payment_mandate
|
|
payone_payment_redirect
|
|
unzer_payment_payment_device
|
|
unzer_payment_transfer_info
|
|
enqeueue
|
|
product_keyword_dictionary
|
|
product_search_keyword
|
|
)
|
|
|
|
|
|
### POST SCRIPT
|
|
|
|
|
|
if [ -f "$app_dir/bin/post_config.sh" ]
|
|
then
|
|
source "$app_dir/bin/post_config.sh"
|
|
fi
|