PCCS MySQLDatabase Admin Tool version 1.3.4


/ -> install.sh

1  #!/bin/sh
2  # This script is ALPHA code
3 
4   clear
5  # display intro
6  echo "Welcome to PCCS MySQLDatabase Admin Tool!"
7  echo "---------------------"
8  echo "This script will attempt to create the required directories"
9  echo " and set required permissions for PCCS MySQLDatabase Admin Tool"
10  echo "If all goes well, you should be able to manage your MySQL DB."
11  echo "I am assuming that you already have MySQL installed and"
12  echo "running, and Apache/PHP installed with MySQL support."
13  echo "Please read the README for more information."
14  echo ""
15  echo -n "Path to htdocs directory: "
16  read directory
17  # show values
18  echo ""
19  echo "PCCS MySQLDatabase Admin Tool install settings"
20  echo "---------------------------"
21  echo "htdocs Directory : $directory"
22  echo -n "Continue with these values? (yN):"
23  read yesorno
24  if [ "$yesorno" != "y" -a "$yesorno" != "Y" ]; then
25          echo "Aborting installation."
26          exit
27  fi
28 
29  if [ "$directory" != "" ]; then
30                  clear
31                  echo ""
32                  echo "PCCS MySQLDatabase Admin Tool install settings"
33                  echo "---------------------------"
34                  echo -n "Can I create pccsmysqladm as a directory? (yN):"
35                  read yesorno
36                  if [ "$yesorno" != "y" -a "$yesorno" != "Y" ]; then
37           echo "Aborting installation directory required."
38           exit
39                  fi
40 
41                  echo -n "Creating directory $directory/pccsmysqladm"
42                  echo ""
43                  echo ""
44 
45                  echo -n "copying files to $directory/pccsmysqladm"
46                  if [ -d $directory/pccsmysqladm ]; then
47                          cp -R ./* $directory/pccsmysqladm 2>/dev/null
48                   RET=$?
49                   if [ $RET -ne 0 ]; then
50                   echo "Could not copy files ""!"
51                                  echo ""
52                                  echo "\r"
53                   exit
54                   fi
55                  else
56                          echo -n "Failed to Create application directory"
57                          exit
58                  fi
59                  
60                  echo -n "Setting Permissions on files and directories"
61                  cd $directory/pccsmysqladm
62                  chmod +x ./bin/fix_perm.sh
63                  ./bin/fix_perm.sh
64 
65                  echo -n "Creating Login Manager account"
66 
67  fi
68 


Generated: Sat Jan 27 15:40:36 2001 Generated by PHPXref 0.1.2
PCCS-Linux.COM ::ource Advocate Articles catalogue
2000 2002