--- ./src/bin/pg_upgrade/test.sh 2016-10-25 01:38:51.000000000 +0530 +++ ../test.sh 2017-01-23 10:08:52.568213209 +0530 @@ -44,15 +44,15 @@ if [ "x$PGHOST" = x ]; then { dir=`(umask 077 && - mktemp -d /tmp/pg_upgrade_check-XXXXXX) 2>/dev/null` && + mktemp -d @TERMUX_PREFIX@/tmp/pg_upgrade_check-XXXXXX) 2>/dev/null` && [ -d "$dir" ] } || { - dir=/tmp/pg_upgrade_check-$$-$RANDOM + dir=@TERMUX_PREFIX@/tmp/pg_upgrade_check-$$-$RANDOM (umask 077 && mkdir "$dir") } || { - echo "could not create socket temporary directory in \"/tmp\"" + echo "could not create socket temporary directory in \"@TERMUX_PREFIX@/tmp\"" exit 1 }