"Fossies" - the Fresh Open Source Software Archive

Member "Plone-5.2.5-UnifiedInstaller-1.0/install.sh" (13 Sep 2021, 3065 Bytes) of package /linux/www/Plone-5.2.5-UnifiedInstaller-1.0.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "install.sh": 5.2.2-UnifiedInstaller_vs_5.2.4-UnifiedInstaller-1.0.

    1 #!/bin/sh
    2 
    3 # Usage: [sudo] ./install.sh [options] standalone|zeo|none
    4 #
    5 # Install methods available:
    6 #    standalone - install standalone zope instance
    7 #    zeo        - install zeo cluster
    8 #    none       - will not run final buildout
    9 #
   10 # Use sudo (or run as root) for server-mode install.
   11 #
   12 # Options:
   13 # --password=InstancePassword
   14 #   If not specified, a random password will be generated.
   15 #
   16 # --clients=client-count
   17 #   Use with the "zeo" install method to specify the number of Zope
   18 #   clients you wish to create. Default is 2.
   19 #
   20 # --target=pathname
   21 #   Use to specify top-level path for installs. Plone instances
   22 #   and Python will be built inside this directory
   23 #
   24 # --instance=instance-name
   25 #   Use to specify the name of the operating instance to be created.
   26 #   This will be created inside the target directory if there's
   27 #   no slash in the string..
   28 #   Default is 'zinstance' for standalone, 'zeocluster' for ZEO.
   29 #
   30 # --daemon-user=user-name
   31 #   In a server-mode install, sets the effective user for running the
   32 #   instance. Default is 'plone_daemon'. Ignored for non-server-mode installs.
   33 #
   34 # --owner=owner-name
   35 #   In a server-mode install, sets the overall owner of the installation.
   36 #   Default is 'plone_buildout'. This is the user id that should be employed
   37 #   to run buildout or make src or product changes.
   38 #   Ignored for non-server-mode installs.
   39 #
   40 # --group=group-name
   41 #   In a server-mode install, sets the effective group for the daemon and
   42 #   buildout users. Default is 'plone_group'.
   43 #   Ignored for non-server-mode installs.
   44 #
   45 # --with-python=/fullpathtopython2.7.x or python3.5+
   46 #   If you have an already built Python that's adequate to run
   47 #   Zope / Plone, you may specify it here.
   48 #   virtualenv will be used to isolate the copy used for the install.
   49 #   Note: the Python specified by --with-python should not itself be a virtualenv.
   50 #
   51 # --var=pathname
   52 #   Full pathname to the directory where you'd like to put the "var"
   53 #   components of the install. By default target/instance/var.
   54 #
   55 # --backup=pathname
   56 #   Full pathname to the directory where you'd like to put the backup
   57 #   directories for the install. By default target/instance/var.
   58 #
   59 # --template=filename
   60 #   Filename of a .cfg file in buildout_templates that you wish to use
   61 #   to create the destination buildout.cfg file. Defaults to buildout.cfg.
   62 #
   63 # --nobuildout
   64 #   Skip running bin/buildout. You should know what you're doing.
   65 #
   66 # Library build control options:
   67 #
   68 # --static-lxml
   69 #   Forces a static build of libxml2 and libxslt dependencies.
   70 #   Make sure that you have enough memory and swap.
   71 #   Requires Internet access to download components.
   72 
   73 # This script is actually just a wrapper to detect bash, and,
   74 # if available, use it.
   75 # Capture current working directory for build script
   76 ORIGIN_PATH=`pwd`
   77 export ORIGIN_PATH
   78 # change to directory with script
   79 INSTALLER_PWD=`dirname $0`
   80 cd "$INSTALLER_PWD"
   81 if which bash > /dev/null; then
   82     bash helper_scripts/main_install_script.sh "$@"
   83 else
   84     . helper_scripts/main_install_script.sh
   85 fi
   86 cd "$ORIGIN_PATH"