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 2006-10-17 19:13:09.000000000 -0400 |
3 |
+++ mezzanine_patched_smeserver-postgresql-0.0.1/root/etc/e-smith/templates/etc/e-smith/pgsql/init/00_restore_backup 2006-10-17 19:12:33.000000000 -0400 |
4 |
@@ -1,4 +1,7 @@ |
5 |
-#! /bin/sh |
6 |
+#! /usr/bin/perl -T |
7 |
+use warnings; |
8 |
+use strict; |
9 |
|
10 |
-exec < /home/e-smith/db/pgsql/pgsql.dump |
11 |
-exec chpst -u postgres psql -f - template1 |
12 |
+$ENV\{PATH\} = "/usr/bin"; |
13 |
+open(STDIN, "/home/e-smith/db/pgsql/pgsql.dump"); |
14 |
+exec(qw(chpst -u postgres psql -q -f - template1)); |
15 |
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 |
16 |
--- smeserver-postgresql-0.0.1/root/etc/e-smith/templates.metadata/etc/e-smith/pgsql/init/00_restore_backup 2006-10-17 19:13:09.000000000 -0400 |
17 |
+++ mezzanine_patched_smeserver-postgresql-0.0.1/root/etc/e-smith/templates.metadata/etc/e-smith/pgsql/init/00_restore_backup 2006-10-17 19:12:58.000000000 -0400 |
18 |
@@ -1 +1,3 @@ |
19 |
-PERMS=0500 |
20 |
+UID="root" |
21 |
+GID="postgres" |
22 |
+PERMS=04550 |