Set "PRAGMA journal_mode=wal;" in /var/lib/osmocom/hlr.sqlite3 right after installation.
This commit is contained in:
parent
276c3f4d69
commit
ed3b1f9cd9
1 changed files with 7 additions and 0 deletions
|
@ -367,6 +367,7 @@ class rhizomatica_base_system {
|
||||||
'libdbd-sqlite3', 'libsmpp0']:
|
'libdbd-sqlite3', 'libsmpp0']:
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
require => Apt::Source['rhizomatica'],
|
require => Apt::Source['rhizomatica'],
|
||||||
|
notify => Exec['hlr_pragma_wal']
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/osmocom/osmo-nitb.cfg':
|
file { '/etc/osmocom/osmo-nitb.cfg':
|
||||||
|
@ -374,6 +375,12 @@ class rhizomatica_base_system {
|
||||||
require => Package['osmocom-nitb'],
|
require => Package['osmocom-nitb'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exec { 'hlr_pragma_wal':
|
||||||
|
command => '/usr/bin/sqlite3 /var/lib/osmocom/hlr.sqlite3 "PRAGMA journal_mode=wal;"',
|
||||||
|
require => Package['sqlite3'],
|
||||||
|
refreshonly => true,
|
||||||
|
}
|
||||||
|
|
||||||
#LCR
|
#LCR
|
||||||
package { 'lcr':
|
package { 'lcr':
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue