aboutsummaryrefslogtreecommitdiffstats
path: root/postgresql-prep/src/common/prerm
diff options
context:
space:
mode:
authorlj1412 <lji@research.att.com>2017-02-14 15:10:09 +0000
committerlj1412 <lji@research.att.com>2017-02-14 15:10:11 +0000
commit7927ff179242b796330d17869c83fa07751abf95 (patch)
treeba2b93e26ec71bff863bc7be9fb5dbd0b5d9c928 /postgresql-prep/src/common/prerm
parentd1bf35c127a238238b573103edf7dbcb1ebd48ed (diff)
Init dcae.pgaas
Change-Id: Ieef6b600f4cbb0bf4ee3910c1bfc6b36773cd2d2 Signed-off-by: lj1412 <lji@research.att.com>
Diffstat (limited to 'postgresql-prep/src/common/prerm')
-rwxr-xr-xpostgresql-prep/src/common/prerm17
1 files changed, 17 insertions, 0 deletions
diff --git a/postgresql-prep/src/common/prerm b/postgresql-prep/src/common/prerm
new file mode 100755
index 0000000..a03a13b
--- /dev/null
+++ b/postgresql-prep/src/common/prerm
@@ -0,0 +1,17 @@
+echo STARTING $0 $(date)
+
+set -x
+id
+
+if [ -d /opt/app/postgresql-9.5.2 ]
+then
+ rm -f $INSTALL_ROOT/opt/app/platform/postgres/pglogs.cron
+ su postgres -c "$INSTALL_ROOT/opt/app/platform/bin/mergeCron"
+ rmdir $INSTALL_ROOT/opt/app/platform/postgres
+ rm -f $INSTALL_ROOT/opt/app/platform/init.d/pgaas
+ rm -f $INSTALL_ROOT/opt/app/platform/rc.d/K20pgaas
+ rm -f $INSTALL_ROOT/opt/app/platform/rc.d/S20pgaas
+fi
+
+rm -f $INSTALL_ROOT/etc/init/pgaas-idns.conf $INSTALL_ROOT/etc/init/pgaas-init.conf
+rm -f $INSTALL_ROOT/etc/logrotate.d/pgaas