Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 610418
Collapse All | Expand All

(-)a/dev-db/postgresql/postgresql-9.5.5.ebuild (-11 / +16 lines)
Lines 351-367 pkg_config() { Link Here
351
	einfo "The database cluster will be created in:"
351
	einfo "The database cluster will be created in:"
352
	einfo "    ${DATA_DIR}"
352
	einfo "    ${DATA_DIR}"
353
	einfo
353
	einfo
354
	while [ "$correct" != "true" ] ; do
354
355
		einfo "Are you ready to continue? (y/n)"
355
	if [ -z "$PG_AUTOCONFIG" ] ; then
356
		read answer
356
		while [ "$correct" != "true" ] ; do
357
		if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
357
			einfo "Are you ready to continue? (y/n)"
358
			correct="true"
358
			read answer
359
		elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
359
			if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
360
			die "Aborting initialization."
360
				correct="true"
361
		else
361
			elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
362
			echo "Answer not recognized"
362
				die "Aborting initialization."
363
		fi
363
			else
364
	done
364
				echo "Answer not recognized"
365
			fi
366
		done
367
	else
368
		einfo "PG_AUTOCONFIG set, not prompting"
369
	fi
365
370
366
	if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
371
	if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
367
		eerror "The given directory, '${DATA_DIR}', is not empty."
372
		eerror "The given directory, '${DATA_DIR}', is not empty."
(-)a/dev-db/postgresql/postgresql-9.5.6.ebuild (-11 / +15 lines)
Lines 351-367 pkg_config() { Link Here
351
	einfo "The database cluster will be created in:"
351
	einfo "The database cluster will be created in:"
352
	einfo "    ${DATA_DIR}"
352
	einfo "    ${DATA_DIR}"
353
	einfo
353
	einfo
354
	while [ "$correct" != "true" ] ; do
354
	if [ -z "$PG_AUTOCONFIG" ] ; then
355
		einfo "Are you ready to continue? (y/n)"
355
		while [ "$correct" != "true" ] ; do
356
		read answer
356
			einfo "Are you ready to continue? (y/n)"
357
		if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
357
			read answer
358
			correct="true"
358
			if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
359
		elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
359
				correct="true"
360
			die "Aborting initialization."
360
			elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
361
		else
361
				die "Aborting initialization."
362
			echo "Answer not recognized"
362
			else
363
		fi
363
				echo "Answer not recognized"
364
	done
364
			fi
365
		done
366
	else
367
		einfo "PG_AUTOCONFIG set, not prompting"
368
	fi
365
369
366
	if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
370
	if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
367
		eerror "The given directory, '${DATA_DIR}', is not empty."
371
		eerror "The given directory, '${DATA_DIR}', is not empty."
(-)a/dev-db/postgresql/postgresql-9.6.1-r1.ebuild (-11 / +15 lines)
Lines 348-364 pkg_config() { Link Here
348
	einfo "The database cluster will be created in:"
348
	einfo "The database cluster will be created in:"
349
	einfo "    ${DATA_DIR}"
349
	einfo "    ${DATA_DIR}"
350
	einfo
350
	einfo
351
	while [ "$correct" != "true" ] ; do
351
	if [ -z "$PG_AUTOCONFIG" ] ; then
352
		einfo "Are you ready to continue? (y/n)"
352
		while [ "$correct" != "true" ] ; do
353
		read answer
353
			einfo "Are you ready to continue? (y/n)"
354
		if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
354
			read answer
355
			correct="true"
355
			if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
356
		elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
356
				correct="true"
357
			die "Aborting initialization."
357
			elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
358
		else
358
				die "Aborting initialization."
359
			echo "Answer not recognized"
359
			else
360
		fi
360
				echo "Answer not recognized"
361
	done
361
			fi
362
		done
363
	else
364
		einfo "PG_AUTOCONFIG set, not prompting"
365
	fi
362
366
363
	if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
367
	if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
364
		eerror "The given directory, '${DATA_DIR}', is not empty."
368
		eerror "The given directory, '${DATA_DIR}', is not empty."
(-)a/dev-db/postgresql/postgresql-9.6.2.ebuild (-11 / +15 lines)
Lines 348-364 pkg_config() { Link Here
348
	einfo "The database cluster will be created in:"
348
	einfo "The database cluster will be created in:"
349
	einfo "    ${DATA_DIR}"
349
	einfo "    ${DATA_DIR}"
350
	einfo
350
	einfo
351
	while [ "$correct" != "true" ] ; do
351
	if [ -z "$PG_AUTOCONFIG" ] ; then
352
		einfo "Are you ready to continue? (y/n)"
352
		while [ "$correct" != "true" ] ; do
353
		read answer
353
			einfo "Are you ready to continue? (y/n)"
354
		if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
354
			read answer
355
			correct="true"
355
			if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
356
		elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
356
				correct="true"
357
			die "Aborting initialization."
357
			elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
358
		else
358
				die "Aborting initialization."
359
			echo "Answer not recognized"
359
			else
360
		fi
360
				echo "Answer not recognized"
361
	done
361
			fi
362
		done
363
	else
364
		einfo "PG_AUTOCONFIG set, not prompting"
365
	fi
362
366
363
	if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
367
	if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
364
		eerror "The given directory, '${DATA_DIR}', is not empty."
368
		eerror "The given directory, '${DATA_DIR}', is not empty."
(-)a/dev-db/postgresql/postgresql-9999.ebuild (-11 / +15 lines)
Lines 298-314 pkg_config() { Link Here
298
	einfo "The database cluster will be created in:"
298
	einfo "The database cluster will be created in:"
299
	einfo "    ${DATA_DIR}"
299
	einfo "    ${DATA_DIR}"
300
	einfo
300
	einfo
301
	while [ "$correct" != "true" ] ; do
301
	if [ -z "$PG_AUTOCONFIG" ] ; then
302
		einfo "Are you ready to continue? (y/n)"
302
		while [ "$correct" != "true" ] ; do
303
		read answer
303
			einfo "Are you ready to continue? (y/n)"
304
		if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
304
			read answer
305
			correct="true"
305
			if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
306
		elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
306
				correct="true"
307
			die "Aborting initialization."
307
			elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
308
		else
308
				die "Aborting initialization."
309
			echo "Answer not recognized"
309
			else
310
		fi
310
				echo "Answer not recognized"
311
	done
311
			fi
312
		done
313
	else
314
		einfo "PG_AUTOCONFIG set, not prompting"
315
	fi
312
316
313
	if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
317
	if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
314
		eerror "The given directory, '${DATA_DIR}', is not empty."
318
		eerror "The given directory, '${DATA_DIR}', is not empty."

Return to bug 610418