Sha256: 8e1dd5d4e9177326d22fa12a95f30998a1953552aac5cd30f69524a342b1468f

Contents?: true

Size: 1.04 KB

Versions: 15

Compression:

Stored size: 1.04 KB

Contents

#!/bin/bash

set -u
set -e

source '%%redmine_path%%/plugins/redmine_installer/installer/environment.sh'

function title() {
  infom ">>>> $1 <<<<"
}

function redmine_install() {
  title 'Installing Redmine...'
  "$INSTALL_ROOT/run.sh" '%%installer_target_task%%'
}

function apache_start() {
  title 'Restarting Apache HTTPD service...'
  sudo service apache2 restart
}

function ssh_start() {
  title 'Restarting SSH service...'
  sudo service ssh restart
}

function postgresql_start() {
  if bool_r "$SKIP_DATABASE"; then return 0; fi
  if ! bool_r "$postgresql_internal"; then return 0; fi

  title 'Restarting PostgresSQL service...'
  sudo service postgresql restart
}

function request_http_interface() {
  title 'Requesting web interface...'
  wget 'http://localhost' &> /dev/null
}

function redmine_log() {
  title 'Reading production log...'
  LOG_FILE='%%redmine_path%%/log/production.log'
  printf " * tail -f \"$LOG_FILE\":\n"
  sudo tail -f "$LOG_FILE"
}

redmine_install
apache_start
ssh_start
postgresql_start
request_http_interface
redmine_log

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
avm-tools-0.116.1 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template
avm-eac_redmine_base0-0.5.0 template/avm/eac_redmine_base0/instances/docker_image/start.sh.template
avm-tools-0.116.0 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template
avm-eac_redmine_base0-0.4.1 template/avm/eac_redmine_base0/instances/docker_image/start.sh.template
avm-tools-0.115.0 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template
avm-eac_redmine_base0-0.4.0 template/avm/eac_redmine_base0/instances/docker_image/start.sh.template
avm-tools-0.114.2 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template
avm-tools-0.114.1 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template
avm-tools-0.114.0 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template
avm-tools-0.113.6 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template
avm-tools-0.113.5 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template
avm-tools-0.113.4 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template
avm-eac_redmine_base0-0.3.1 template/avm/eac_redmine_base0/instances/docker_image/start.sh.template
avm-tools-0.113.3 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template
avm-tools-0.113.2 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template