mirror of https://github.com/zulip/zulip.git
puppet: Move the postgres dictionary symlink creation to puppet.
(imported from commit 823f6683e3d8f3604da68e55dd6761ecb38d4b63)
This commit is contained in:
parent
45f21cbb14
commit
f4a9e99498
|
@ -35,6 +35,14 @@ class zulip::postgres_appdb {
|
|||
notify => Service[supervisor],
|
||||
}
|
||||
|
||||
file { '/usr/share/postgresql/9.1/tsearch_data/en_us.dict':
|
||||
ensure => 'link',
|
||||
target => '/var/cache/postgresql/dicts/en_us.dict',
|
||||
}
|
||||
file { '/usr/share/postgresql/9.1/tsearch_data/en_us.affix':
|
||||
ensure => 'link',
|
||||
target => '/var/cache/postgresql/dicts/en_us.affix',
|
||||
}
|
||||
file { "/usr/share/postgresql/9.1/tsearch_data/zulip_english.stop":
|
||||
require => Package["postgresql-9.1"],
|
||||
ensure => file,
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
#!/bin/sh -xe
|
||||
|
||||
ln -s /var/cache/postgresql/dicts/en_us.dict /usr/share/postgresql/9.1/tsearch_data/en_us.dict
|
||||
ln -s /var/cache/postgresql/dicts/en_us.affix /usr/share/postgresql/9.1/tsearch_data/en_us.affix
|
||||
|
||||
echo "DROP SCHEMA zulip CASCADE; CREATE SCHEMA zulip;" | python manage.py dbshell
|
||||
|
||||
python manage.py syncdb --noinput
|
||||
|
|
Loading…
Reference in New Issue