diff options
author | unknown <lenz@mysql.com> | 2003-02-03 20:39:48 +0100 |
---|---|---|
committer | unknown <lenz@mysql.com> | 2003-02-03 20:39:48 +0100 |
commit | 46318870b042cfcd2449eef58c3a9519c00d409d (patch) | |
tree | 91b8500ad29cd9ee0cd23ebf67de2c56b7c16f39 /support-files/SCO/preinstall | |
parent | 39f46988e80efa85731b1127f20cac60cf17b4a3 (diff) | |
download | mariadb-git-46318870b042cfcd2449eef58c3a9519c00d409d.tar.gz |
- added support-files/MacOSX to include files specific for building
MacOSX packages using PackageMaker
- renamed support-files/PKG -> support-files/SCO (PKG is used in MacOS X
terminology as well)
support-files/SCO/INSTALL.sh:
mvdir
support-files/SCO/compile.sh:
mvdir
support-files/SCO/doc.sh:
mvdir
support-files/SCO/mkpkg.sh:
mvdir
support-files/SCO/patch:
mvdir
support-files/SCO/pkginfo.ini:
mvdir
support-files/SCO/postinstall:
mvdir
support-files/SCO/preinstall:
mvdir
support-files/SCO/preremove:
mvdir
support-files/SCO/prototype.ini:
mvdir
support-files/SCO/version:
mvdir
support-files/MacOSX/make_mysql_pkg.pl:
Rename: support-files/make_mysql_pkg.pl -> support-files/MacOSX/make_mysql_pkg.pl
configure.in:
- added support-files/MacOSX
support-files/Makefile.am:
- added MacOSX subdirectory
Diffstat (limited to 'support-files/SCO/preinstall')
-rw-r--r-- | support-files/SCO/preinstall | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/support-files/SCO/preinstall b/support-files/SCO/preinstall new file mode 100644 index 00000000000..c1175561a99 --- /dev/null +++ b/support-files/SCO/preinstall @@ -0,0 +1,21 @@ +#!/bin/sh + +PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/ccs/bin +LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib +export PATH +export LD_LIBRARY_PATH + +if /usr/bin/test -x /etc/init.d/mysql ; then + /etc/init.d/mysql stop || true +fi + +#----- user check +P=`grep mysql /etc/passwd` +G=`grep mysql /etc/group` + +if /usr/bin/test "x$G" = "x" ; then + /usr/sbin/groupadd mysql +fi +if /usr/bin/test "x$P" = "x" ; then + /usr/sbin/useradd -g mysql -d /usr/local/mysql-data -s /bin/false mysql +fi |