Skip to content

Commit

Permalink
Merge pull request #9 from dortegau/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
dortegau authored Oct 7, 2017
2 parents 74cb4ad + 6985151 commit e1228c3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ prestashop_group: prestashop
## PATHS
prestashop_install_path: /var/www/prestashop

### BACKEND
prestashop_default_backend_path: "{{ prestashop_install_path }}/admin"

prestashop_new_backend_folder: admin123
prestashop_new_backend_path: "{{ prestashop_install_path }}/{{ prestashop_new_backend_folder }}"

## DB
prestashop_db_server: localhost
prestashop_db_name: prestashop
Expand All @@ -20,6 +26,7 @@ prestashop_db_clear: 1
prestashop_db_prefix: ps_
prestashop_db_engine: InnoDB

## INSTALL OPTIONS
prestashop_language: en
prestashop_timezone: Europe/paris
prestashop_name: PrestaShop
Expand Down
4 changes: 4 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,7 @@
- "INSTALL.txt"
- "Install_PrestaShop.html"
- "LICENSES"

- name: PrestaShop | Move default admin folder
command: "mv {{ prestashop_default_backend_path }} {{ prestashop_new_backend_path }}"
when: download_prestashop|changed
6 changes: 6 additions & 0 deletions tests/templates/nginx/servers/prestashop
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@ server {
access_log off;
log_not_found off;
}

location /{{ prestashop_new_backend_folder }}/ {
if (!-e $request_filename) {
rewrite ^/.*$ /{{ prestashop_new_backend_folder }}/index.php last;
}
}
}

0 comments on commit e1228c3

Please sign in to comment.