diff --git a/etc/init.d/dm-postgresql b/etc/init.d/dm-postgresql
index 5529c22f3515521e01f52034c424729937f29306..42857662f8bd71ce4400c76e2953603e38a6500c 100755
--- a/etc/init.d/dm-postgresql
+++ b/etc/init.d/dm-postgresql
@@ -76,8 +76,8 @@ PGGROUP=`groups $PGUSER | cut -f3 -d ' '`
 PGPORT=11136    # 111-DM
 PGDATA=$PGROOT/data
 
-PGRUNDIR=$DM_ROOT_DIR/var/run
-PGLOGDIR=$DM_ROOT_DIR/var/log
+PGRUNDIR=$DM_INSTALL_DIR/var/run
+PGLOGDIR=$DM_INSTALL_DIR/var/log
 
 PGSTARTUPLOG=$PGLOGDIR/postgresql
 PGPIDFILE=$PGRUNDIR/postmaster.pid