Commit e0da4743 authored by Visay Keo's avatar Visay Keo

[TASK] Adjust for TYPO3 6.2

parent c4549203
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
# tasks file for typo3 cleanup # tasks file for typo3 cleanup
- name: Remove temp caches directory - name: Remove temp caches directory
local_action: shell rm -rf web/typo3temp/Cache local_action: shell rm -rf typo3temp/Cache
chdir="{{ local_path }}" chdir="{{ local_path }}"
- name: Execute neccessary typo3 commands - 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 }}" chdir="{{ local_path }}"
with_items: with_items:
- cache:flush - cache:flush
......
...@@ -2,7 +2,19 @@ ...@@ -2,7 +2,19 @@
# tasks file for typo3 database # tasks file for typo3 database
- name: Sync remote database dump to local temp - 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 when: not from_cache|bool
- name: Search and replace content in database dump - name: Search and replace content in database dump
......
...@@ -5,6 +5,6 @@ data_dir: ...@@ -5,6 +5,6 @@ data_dir:
flow: flow:
- Data/Persistent/ - Data/Persistent/
typo3: typo3:
- Web/fileadmin/ - fileadmin/
- Web/typo3conf/l10n/ - typo3conf/l10n/
- Web/uploads/ - uploads/
...@@ -35,7 +35,7 @@ if (cat ${ROOT_DIR}/composer.lock | grep "dockerflow" > /dev/null); then ...@@ -35,7 +35,7 @@ if (cat ${ROOT_DIR}/composer.lock | grep "dockerflow" > /dev/null); then
fi fi
if (cat ${ROOT_DIR}/composer.lock | grep "dockertypo3" > /dev/null); then if (cat ${ROOT_DIR}/composer.lock | grep "dockertypo3" > /dev/null); then
FRAMEWORK="typo3" FRAMEWORK="typo3"
DATA_DIR="Web/uploads" DATA_DIR="uploads"
# Use Development context if TYPO3 Context is not set # Use Development context if TYPO3 Context is not set
FRAMEWORK_CONTEXT=${TYPO3_CONTEXT:=Development} 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