diff --git a/build/linux/buildxmapp.sh b/build/linux/buildxmapp.sh index 2709b9dc11..d9058ed47b 100755 --- a/build/linux/buildxmapp.sh +++ b/build/linux/buildxmapp.sh @@ -76,5 +76,7 @@ cp ../zentao.conf etc/extra/httpd-xampp.conf # copy the zentao code. mv ../../../zentaopms ./zentao -# copy the makefile +# copy needed files. cp ../Makefile . +cp ../start . +cp ../stop . diff --git a/build/linux/start b/build/linux/start new file mode 100644 index 0000000000..00c6ddba1e --- /dev/null +++ b/build/linux/start @@ -0,0 +1,10 @@ +#!/bin/bash +if test "`id -u`" -ne 0 +then + echo "You need to start XAMPP as root!" + exit +fi + +chown nobody -R var/mysql +chmod 777 tmp +./lampp start diff --git a/build/linux/stop b/build/linux/stop new file mode 100644 index 0000000000..6152930b7c --- /dev/null +++ b/build/linux/stop @@ -0,0 +1,8 @@ +#!/bin/bash +if test "`id -u`" -ne 0 +then + echo "You need to start XAMPP as root!" + exit +fi + +./lampp stop