"Fossies" - the Fresh Open Source Software Archive

Member "Plone-5.2.5-UnifiedInstaller-1.0/tests/vbox_tests/test_install.sh" (13 Sep 2021, 1274 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 "test_install.sh": 5.2.0-UnifiedInstaller_vs_5.2.1-UnifiedInstaller-r3.

    1 #!/bin/sh
    2 
    3 sudo rm ~/*.log
    4 date > ~/results.log
    5 
    6 cd ~
    7 if [ -f /vagrant/use_sudo ]; then
    8     sudo rm -rf /opt/plone*
    9     tar xf /vagrant/*.tgz
   10     cd Plone*Unified*
   11     . /vagrant/install
   12     if [ $? -gt 0 ]; then
   13         echo "Install failed." >> ~/results.log
   14         cp ~/Plone*Unified*/install.log ~/install.log
   15         exit 0
   16     fi
   17     cp ~/Plone*Unified*/install.log ~/install.log
   18     cd /opt/plone/z*
   19     sudo -u plone_daemon bin/plonectl start
   20     if [ $? -gt 0 ]; then
   21         echo "Start failed." >> ~/results.log
   22         cp var/log/*.log ~
   23         exit 0
   24     fi
   25     sudo -u plone_daemon bin/plonectl stop
   26     sleep 30
   27     sudo cp var/log/*.log ~
   28 else
   29     rm -rf Plone*
   30     tar xf /vagrant/*.tgz
   31     cd Plone*Unified*
   32     . /vagrant/install >> ~/results.log
   33     if [ $? -gt 0 ]; then
   34         echo "Install failed." >> ~/results.log
   35         cp ~/Plone*Unified*/install.log ~/install.log
   36         exit 0
   37     fi
   38     cp ~/Plone*Unified*/install.log ~/install.log
   39     cd ~/Plone/zinstance
   40     bin/instance start
   41     if [ $? -gt 0 ]; then
   42         echo "Start failed." >> ~/results.log
   43         cp var/log/instance.log ~
   44         exit 0
   45     fi
   46     bin/instance stop
   47     sleep 30
   48     cp var/log/instance.log ~
   49 fi
   50 
   51 cd ~
   52 echo "Completed" >> ~/results.log
   53 date >> ~/results.log