Skip to content

Commit 8901302

Browse files
authored
v3.1.4 (#99)
Minor updates * Explicitly converting int to string when generating random numbers * Adding conf generate
1 parent 1a7e4a7 commit 8901302

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.3
1+
3.1.4

overlay/etc/bf/init.d/12-postgresql-init.nu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def create_empty [] {
3737

3838
# start server
3939
bf-postgresql ctl init
40+
bf-postgresql conf generate
4041
bf-postgresql ctl start
4142

4243
# create role for user

overlay/etc/bf/init.d/13-cron.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ use bf-s6
33
bf env load
44

55
# Append backup task to crontab
6-
def main [] { bf-s6 crontab append --min (random int 1..59) --hour "*/8" "pg-dump" }
6+
def main [] { bf-s6 crontab append --min (random int 1..59 | into string) --hour "*/8" "pg-dump" }

overlay/etc/nu/scripts/bf-postgresql/restore.nu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use bf
2+
use conf.nu
23
use ctl.nu
34

45
# the name of the restoring environment variable
@@ -32,6 +33,7 @@ export def main [] {
3233
# restart the PostgreSQL service
3334
bf write debug " .. reinitialising cluster" restore
3435
ctl init
36+
conf generate
3537
ctl start
3638

3739
# run restore

run.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)