Skip to content

Commit

Permalink
First round of refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsaigle committed Jan 9, 2019
1 parent e39d7c4 commit 4c80262
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 149 deletions.
16 changes: 0 additions & 16 deletions script/setup

This file was deleted.

129 changes: 0 additions & 129 deletions script/test

This file was deleted.

17 changes: 13 additions & 4 deletions script/bootstrap → tools/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/env php
# script/bootstrap: Resolve all dependencies that the application requires to
# run.
# This script verifies a development installation of LORIS by ensuring that
# the system has all of the required dependencies such as the correct PHP and
# Apache versions as well as other miscellaneous extensions and system tools.
#
# Production environments should not run this tool as their dependency
# management should be performed by a proper package such as a .deb file.
#
# Currently only Ubuntu environments are supported by this script.
<?php
error_reporting(E_ALL);

Expand Down Expand Up @@ -45,7 +51,10 @@

// NOTE Update as time passes.
// Dependencies last updated for version: 20.0.1
$apt_dependencies = [
// This list should consist only of packages that can be installed via apt on
// Ubuntu environments and must not include libraries that should be installed
// via tools such as npm and composer.
$apt_dependencies = array(
"wget",
"zip",
"unzip",
Expand All @@ -60,7 +69,7 @@
"php$required_php-mbstring",
"php$required_php-gd",
"libapache2-mod-php$required_php",
];
);

if (
!(installMissingRequirements($apt_dependencies))
Expand Down

0 comments on commit 4c80262

Please sign in to comment.