1 |
slords |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-postgresql-0.0.1/root/etc/e-smith/templates/etc/e-smith/pgsql/init/00_restore_backup mezzanine_patched_smeserver-postgresql-0.0.1/root/etc/e-smith/templates/etc/e-smith/pgsql/init/00_restore_backup |
2 |
|
|
--- smeserver-postgresql-0.0.1/root/etc/e-smith/templates/etc/e-smith/pgsql/init/00_restore_backup 1969-12-31 19:00:00.000000000 -0500 |
3 |
|
|
+++ mezzanine_patched_smeserver-postgresql-0.0.1/root/etc/e-smith/templates/etc/e-smith/pgsql/init/00_restore_backup 2006-06-28 16:28:16.000000000 -0400 |
4 |
|
|
@@ -0,0 +1,4 @@ |
5 |
|
|
+#! /bin/sh |
6 |
|
|
+ |
7 |
|
|
+exec < /home/e-smith/db/pgsql/pgsql.dump |
8 |
|
|
+exec chpst -u postgres psql -f - template1 |
9 |
|
|
diff -Nur -x '*.orig' -x '*.rej' smeserver-postgresql-0.0.1/root/etc/e-smith/templates.metadata/etc/e-smith/pgsql/init/00_restore_backup mezzanine_patched_smeserver-postgresql-0.0.1/root/etc/e-smith/templates.metadata/etc/e-smith/pgsql/init/00_restore_backup |
10 |
|
|
--- smeserver-postgresql-0.0.1/root/etc/e-smith/templates.metadata/etc/e-smith/pgsql/init/00_restore_backup 1969-12-31 19:00:00.000000000 -0500 |
11 |
|
|
+++ mezzanine_patched_smeserver-postgresql-0.0.1/root/etc/e-smith/templates.metadata/etc/e-smith/pgsql/init/00_restore_backup 2006-06-28 16:15:05.000000000 -0400 |
12 |
|
|
@@ -0,0 +1 @@ |
13 |
|
|
+PERMS=0500 |
14 |
|
|
diff -Nur -x '*.orig' -x '*.rej' smeserver-postgresql-0.0.1/root/var/service/postgresql/run mezzanine_patched_smeserver-postgresql-0.0.1/root/var/service/postgresql/run |
15 |
|
|
--- smeserver-postgresql-0.0.1/root/var/service/postgresql/run 2006-06-28 16:28:44.000000000 -0400 |
16 |
|
|
+++ mezzanine_patched_smeserver-postgresql-0.0.1/root/var/service/postgresql/run 2006-06-28 16:16:35.000000000 -0400 |
17 |
|
|
@@ -8,6 +8,10 @@ |
18 |
|
|
then |
19 |
|
|
echo "*** Initialising postgresql in data directory ${DATA}" |
20 |
|
|
chpst -u postgres /usr/bin/initdb --pgdata=${DATA} |
21 |
|
|
+ if [ -f /home/e-smith/db/pgsql/pgsql.dump ] |
22 |
|
|
+ then |
23 |
|
|
+ /sbin/e-smith/expand-template /etc/e-smith/pgsql/init/00_restore_backup |
24 |
|
|
+ fi |
25 |
|
|
fi |
26 |
|
|
echo "*** Starting postgresql on data ${DATA}" |
27 |
|
|
exec \ |