Commit e0da4743 authored by Visay Keo's avatar Visay Keo

[TASK] Adjust for TYPO3 6.2

parent c4549203
......@@ -2,11 +2,11 @@
# tasks file for typo3 cleanup
- name: Remove temp caches directory
local_action: shell rm -rf web/typo3temp/Cache
local_action: shell rm -rf typo3temp/Cache
chdir="{{ local_path }}"
- name: Execute neccessary typo3 commands
local_action: shell TYPO3_CONTEXT={{ local_context }} {{ bin_path }}/dockertypo3 run app ./web/typo3cms {{ item }}
local_action: shell TYPO3_CONTEXT={{ local_context }} {{ bin_path }}/dockertypo3 run app ./typo3cms {{ item }}
chdir="{{ local_path }}"
with_items:
- cache:flush
......
......@@ -2,7 +2,19 @@
# tasks file for typo3 database
- name: Sync remote database dump to local temp
synchronize: mode=pull src="{{ remote_dump }}" dest="/tmp/{{ ssh_user }}/db_dump.sql"
synchronize: mode=pull src="{{ remote_dump }}" dest="/tmp/{{ ssh_user }}/db_dump.bz2"
when: not from_cache|bool
- name: Remove old database dump
local_action: file path=/tmp/{{ ssh_user }}/db_dump.sql state=absent
when: not from_cache|bool
- name: Extract remote database dump
local_action: unarchive src="/tmp/{{ ssh_user }}/db_dump.bz2" dest="/tmp/{{ ssh_user }}"
when: not from_cache|bool
- name: Rename remote database dump
local_action: shell mv /tmp/{{ ssh_user }}/*.sql /tmp/{{ ssh_user }}/db_dump.sql
when: not from_cache|bool
- name: Search and replace content in database dump
......
......@@ -5,6 +5,6 @@ data_dir:
flow:
- Data/Persistent/
typo3:
- Web/fileadmin/
- Web/typo3conf/l10n/
- Web/uploads/
- fileadmin/
- typo3conf/l10n/
- uploads/
......@@ -35,7 +35,7 @@ if (cat ${ROOT_DIR}/composer.lock | grep "dockerflow" > /dev/null); then
fi
if (cat ${ROOT_DIR}/composer.lock | grep "dockertypo3" > /dev/null); then
FRAMEWORK="typo3"
DATA_DIR="Web/uploads"
DATA_DIR="uploads"
# Use Development context if TYPO3 Context is not set
FRAMEWORK_CONTEXT=${TYPO3_CONTEXT:=Development}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment