Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Safer symlink creation and downloaded file removal #175

Merged
merged 1 commit into from

2 participants

@jplock
Collaborator

Sorry, I just caught this while trying to re-run my playbooks. This relates to #174

@lukecyca lukecyca merged commit ade428d into sovereign:master

1 check was pending

Details default The Travis CI build is in progress
@jplock jplock deleted the jplock:jp-carddav-safer-link branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 2, 2014
  1. @jplock
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 3 deletions.
  1. +6 −3 roles/webmail/tasks/roundcube.yml
View
9 roles/webmail/tasks/roundcube.yml
@@ -23,10 +23,13 @@
shell: cp -R rcmcarddav-carddav_{{ carddav_version }}/* /usr/share/roundcube/plugins/carddav/ chdir=/root
- name: Link carddav plugin into /var/lib/roundcube/plugins
- shell: ln -s /usr/share/roundcube/plugins/carddav chdir=/var/lib/roundcube/plugins
+ file: state=link src=/usr/share/roundcube/plugins/carddav dest=/var/lib/roundcube/plugins/carddav force=yes
-- name: Remove downloaded, temporary carddav plugin source files
- shell: rm -rf rcmcarddav-carddav_* carddav_* chdir=/root
+- name: Remove downloaded carddav plugin file
+ file: state=absent path=/root/carddav_{{ carddav_version }}.tar.gz
+
+- name: Remove extracted carddav plugin files
+ file: state=absent path=/root/rcmcarddav-carddav_{{ carddav_version }} recurse=true
- name: Configure the Apache HTTP server for roundcube
template: src=etc_apache2_sites-available_roundcube.j2 dest=/etc/apache2/sites-available/roundcube group=www-data owner=www-data force=yes
Something went wrong with that request. Please try again.