Ein für Shopware 6 vorbereitet Systemmanagment.
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

2 years ago
  1. #!/bin/bash
  2. ### DONT OVERWRITE THIS FILE
  3. app_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." &> /dev/null && pwd)
  4. ### GENERAL
  5. project_name='www.domain.de'
  6. shopware_version='6'
  7. ### STAGE
  8. stage_use_git='y' # if the stage system is deployed using git
  9. stage_ssh_user='your-user'
  10. stage_ssh_domain='your-domain'
  11. stage_ssh_has_key_file='y'
  12. stage_ssh_key_file='/path/to/.ssh/key'
  13. stage_httpdocs_path='/var/www/vhosts/domain.de/httpdocs'
  14. stage_httpdocs_slug='/shopware' # optional slug if you install the software not directly in httpdocs
  15. stage_database_has_socket='n'
  16. stage_database_socket=''
  17. stage_database_host='localhost'
  18. stage_database_port='3306'
  19. stage_database_name='database_name'
  20. stage_database_user='database_user'
  21. stage_database_password='database_password'
  22. # only needed if you want to create a database
  23. stage_database_admin_user=''
  24. stage_database_admin_password=''
  25. ### LIVE
  26. live_use_git='y'
  27. live_ssh_user='user'
  28. live_ssh_domain='domain.de'
  29. live_ssh_has_key_file='n'
  30. live_ssh_key_file=''
  31. live_httpdocs_path='/var/www/vhosts/domain.de/httpdocs'
  32. live_httpdocs_slug=''
  33. live_database_has_socket='n'
  34. live_database_socket=''
  35. live_database_host='localhost'
  36. live_database_port='3306'
  37. live_database_name='name'
  38. live_database_user='user'
  39. live_database_password='password'
  40. # only needed if you want to create a database
  41. live_database_admin_user=''
  42. live_database_admin_password=''
  43. ### LOCAL STAGE
  44. local_stage_use_git='y' # if you don't work with the git working copy / you can sync local htdocs/. with git repo
  45. local_stage_slug='/shopware'
  46. local_stage_database_has_socket='n'
  47. local_stage_database_socket=''
  48. local_stage_database_host='localhost'
  49. local_stage_database_port='3306'
  50. local_stage_database_name='name_stage'
  51. local_stage_database_user='user'
  52. local_stage_database_password='password'
  53. # only needed if you can't create database and want to create a database
  54. local_stage_database_admin_user=''
  55. local_stage_database_admin_password=''
  56. ### LOCAL LIVE
  57. local_live_use_git='y'
  58. local_live_slug='/shopware'
  59. local_live_database_has_socket='n'
  60. local_live_database_socket=''
  61. local_live_database_host='localhost'
  62. local_live_database_port='3306'
  63. local_live_database_name='name_live'
  64. local_live_database_user='user'
  65. local_live_database_password='password'
  66. # only needed if you can't create database and want to create a database
  67. local_live_database_admin_user=''
  68. local_live_database_admin_password=''
  69. ### SHOPWARE USER
  70. local_shopware_user='user'
  71. local_shopware_email='email'
  72. local_shopware_firstname='Name'
  73. local_shopware_lastname='Lastname'
  74. ### GIT
  75. git_has_ssh_key_file='n'
  76. git_ssh_key_file=''
  77. git_url=''
  78. # you can update stage with data from live
  79. live_to_stage_live_urls=("https://www.domain.de")
  80. live_to_stage_stage_urls=("https://stage.domain.de")
  81. # if you copy the stage state to local
  82. stage_to_local_stage_urls=("https://stage.domain.de")
  83. stage_to_local_local_urls=("https://localhost/domain.de/stage.domain.de")
  84. # here more complete, copy the live system to local
  85. live_to_local_live_urls=(
  86. "http://www.domain.de"
  87. "https://www.domain.de"
  88. )
  89. live_to_local_local_urls=(
  90. "http://localhost/martins-domain.de/www.domain.de"
  91. "https://localhost/domain.de/www.domain.de"
  92. )
  93. ### GDPR SHOPWARE 6 TABLES
  94. gdpr_tables=(
  95. acl_user_role
  96. cart
  97. customer
  98. customer_address
  99. customer_recovery
  100. customer_tag
  101. customer_wishlist
  102. customer_wishlist_product
  103. elasticsearch_index_task
  104. import_export_log
  105. integration
  106. integration_role
  107. log_entry
  108. message_queue_stats
  109. newsletter_recipient
  110. newsletter_recipient_tag
  111. order
  112. order_address
  113. order_customer
  114. order_delivery
  115. order_delivery_position
  116. order_line_item
  117. order_tag
  118. order_transaction
  119. product_export
  120. product_review
  121. promotion_persona_customer
  122. refresh_token
  123. sales_channel_api_context
  124. state_machine_history
  125. user
  126. user_access_key
  127. user_config
  128. user_recovery
  129. version
  130. version_commit
  131. version_commit_data
  132. klarna_payment_request_log
  133. payone_payment_card
  134. payone_payment_mandate
  135. payone_payment_redirect
  136. unzer_payment_payment_device
  137. unzer_payment_transfer_info
  138. enqeueue
  139. product_keyword_dictionary
  140. product_search_keyword
  141. )
  142. ### POST SCRIPT
  143. if [ -f "$app_dir/bin/post_config.sh" ]
  144. then
  145. source "$app_dir/bin/post_config.sh"
  146. fi