diff options
author | 2017-02-14 15:10:09 +0000 | |
---|---|---|
committer | 2017-02-14 15:10:11 +0000 | |
commit | 7927ff179242b796330d17869c83fa07751abf95 (patch) | |
tree | ba2b93e26ec71bff863bc7be9fb5dbd0b5d9c928 /postgresql-prep/src/common/prerm | |
parent | d1bf35c127a238238b573103edf7dbcb1ebd48ed (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-x | postgresql-prep/src/common/prerm | 17 |
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 |