aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/driver
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-10-22 19:19:36 +0200
committerMarc Alexander <admin@m-a-styles.de>2016-10-22 19:19:36 +0200
commit8b8f693d00ebbf78066467497b8866c751e6760f (patch)
tree4a055046f8abebe3733ebd2d55f8d39ca6999360 /phpBB/phpbb/db/driver
parent05d0879795236e5fc4ae07145c0d7bcab05e5c15 (diff)
downloadforums-8b8f693d00ebbf78066467497b8866c751e6760f.tar
forums-8b8f693d00ebbf78066467497b8866c751e6760f.tar.gz
forums-8b8f693d00ebbf78066467497b8866c751e6760f.tar.bz2
forums-8b8f693d00ebbf78066467497b8866c751e6760f.tar.xz
forums-8b8f693d00ebbf78066467497b8866c751e6760f.zip
[ticket/14831] Make sure migrations always start with backslash
The migration system expects every migration to start with a backslash. If depends on definitions do not supply that leading backslash, we should make sure it's added manually before calling the depends on migration. PHPBB3-14831
Diffstat (limited to 'phpBB/phpbb/db/driver')
0 files changed, 0 insertions, 0 deletions
25' href='#n25'>25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
#!/bin/bash

TITLE="Mandriva Installer"
BACKTITLE="Mandriva"
MIN_DISKSIZE=5000000

debug="/dev/null"

function _msgbox()
{
	dialog --timeout 60 --backtitle "$BACKTITLE" --title "$TITLE" --msgbox \
		"$1" 0 0

	return $?
}

function _infobox()
{
	dialog --backtitle "$BACKTITLE" --title "$TITLE" --sleep 2 \
		--infobox "$1" 0 0

	return $?
}

function _yesno()
{
	dialog --backtitle "$BACKTITLE" --title "$TITLE" \
		--yes-label "Yes" --no-label "No" --yesno "$1" 0 0

	return $?
}

function _mount()
{
	mount $1 $2 > $debug 2>&1

	return $?
}

function _umount()
{
	umount $1 > $debug 2>&1

	return $?
}

function _bind()
{
	mount --bind $1 $2 > $debug 2>&1

	return $?
}

function _eject()
{
	eject $1 > $debug 2>&1

	return $?
}

function _shutdown()
{
	[ -e /tmp/no-shutdown ] && exit
	clear
	sync
	echo s > /proc/sysrq-trigger
	echo o > /proc/sysrq-trigger
	exit
}

function _reboot()
{
	[ -e /tmp/no-shutdown ] && exit
	clear
	sync
	echo s > /proc/sysrq-trigger
	echo b > /proc/sysrq-trigger
	exit
}