Browse Source

Merge pull request #446 from jplock/jp-selfoss-version

Pin Selfoss version to an actual release
Sven Neuhaus 9 years ago
parent
commit
026b2a98ff
2 changed files with 3 additions and 2 deletions
  1. 2
    2
      roles/news/tasks/selfoss.yml
  2. 1
    0
      vars/defaults.yml

+ 2
- 2
roles/news/tasks/selfoss.yml View File

@@ -2,7 +2,7 @@
2 2
   git: repo=https://github.com/SSilence/selfoss.git
3 3
        dest=/var/www/selfoss
4 4
        accept_hostkey=yes
5
-       version=master
5
+       version={{ selfoss_version }}
6 6
 
7 7
 - name: Set selfoss ownership
8 8
   action: file owner=root group=www-data path=/var/www/selfoss recurse=yes state=directory
@@ -34,7 +34,7 @@
34 34
   postgresql_db: login_host=localhost login_user={{ db_admin_username }} login_password="{{ db_admin_password }}" name={{ selfoss_db_database }} state=present owner={{ selfoss_db_username }}
35 35
 
36 36
 - name: Install selfoss config.ini
37
-  template: src=var_www_selfoss_config.ini.j2 dest=/var/www/selfoss/config.ini group=www-data owner=root
37
+  template: src=var_www_selfoss_config.ini.j2 dest=/var/www/selfoss/config.ini group=www-data owner=root mode=0640
38 38
 
39 39
 - name: Enable Apache rewrite module
40 40
   command: a2enmod rewrite creates=/etc/apache2/mods-enabled/rewrite.load

+ 1
- 0
vars/defaults.yml View File

@@ -124,6 +124,7 @@ selfoss_domain: "news.{{ domain }}"
124 124
 selfoss_db_username: selfoss
125 125
 # selfoss_db_password: (required)
126 126
 selfoss_db_database: selfoss
127
+selfoss_version: 2.14
127 128
 
128 129
 # git
129 130
 cgit_version: 0.10.1

Loading…
Cancel
Save