Skip to content

Commit

Permalink
Merge pull request #61 from GetDKAN/proposed_release_for_tag_1511834208
Browse files Browse the repository at this point in the history
1511834208: Proposed release for 7.x-1.14
  • Loading branch information
dafeder authored Nov 28, 2017
2 parents f93a835 + 5bccd67 commit dc2a10d
Show file tree
Hide file tree
Showing 679 changed files with 19,203 additions and 6,924 deletions.
5 changes: 4 additions & 1 deletion profiles/dkan/.ahoy/.scripts/.ht.router.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

/**
* @file
* Routing-script for the built-in PHP web server.
Expand All @@ -26,17 +25,21 @@
// Serve the requested resource as-is.
return FALSE;
}

// The use of a router-script means that a number of $_SERVER variables has to
// be updated to point to the index-file.
$index_file_absolute = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'index.php';
$index_file_relative = DIRECTORY_SEPARATOR . 'index.php';

// SCRIPT_FILENAME will point to the router-script itself, it should point to
// the full path to index.php.
$_SERVER['SCRIPT_FILENAME'] = $index_file_absolute;

// SCRIPT_NAME and PHP_SELF will either point to /index.php or contain the full
// virtual path being requested depending on the url being requested. They
// should always point to index.php relative to document root.
$_SERVER['SCRIPT_NAME'] = $index_file_relative;
$_SERVER['PHP_SELF'] = $index_file_relative;

// Require the main index-file and let core take over.
require $index_file_absolute;
11 changes: 11 additions & 0 deletions profiles/dkan/.ahoy/.scripts/mysql-reconnect.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SETTINGS_PATH=docroot/sites/default/settings.php
DIR=$(dirname $SETTINGS_PATH)
chmod +w $SETTINGS_PATH
chmod +w $DIR
echo ".. Reconnect mysql."
MYSQL_IP=`echo $1 | sed 's/.*@\(.*\)\/.*/\1/g'`
sed -i "s/\(^\s*\)'host' => \(.*\),/\1'host' => '$MYSQL_IP',/g" $SETTINGS_PATH

chmod -w $SETTINGS_PATH
chmod -w $DIR

2 changes: 1 addition & 1 deletion profiles/dkan/.ahoy/.scripts/server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ cp ./dkan/.ahoy/.scripts/.ht.router.php ./docroot/
cd ./docroot

echo $HOST
php -S $HOST:8888 .ht.router.php
php -S $HOST:8888 .ht.router.php
10 changes: 7 additions & 3 deletions profiles/dkan/.ahoy/dkan.ahoy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ commands:
if [ -d docroot ]
then
ahoy confirm "./docroot folder alredy exists. Delete it and reinstall drupal?" && chmod -R 777 docroot/sites/default && rm -rf docroot ||
{ echo ".. skipping installation"; exit 1;}
{
echo ".. skipping installation";
ahoy cmd-proxy bash dkan/.ahoy/.scripts/mysql-reconnect.sh $ARGS
exit 1;
}
fi
ahoy cmd-proxy bash dkan/.ahoy/.scripts/drupal-rebuild.sh $ARGS
Expand All @@ -46,7 +50,7 @@ commands:
if [ ! -d backups ]; then
mkdir backups
fi
if [ -f backups/last_install.sql ] && ahoy confirm "An existing installation backup exists at backups/last_install.sql, do you want to use that instead of reinstalling from scratch?"; then
if [ -f backups/last_install.sql ] && ahoy confirm "{{args}} An existing installation backup exists at backups/last_install.sql, do you want to use that instead of reinstalling from scratch?"; then
ahoy drush sql-drop -y && \
echo "... Removed tables, restoring DB"
Expand Down Expand Up @@ -185,7 +189,7 @@ commands:
rm -fR dkan-ahoy
rm -fR dkan/.ahoy
rm dkan/dkan-init.sh
git clone '[email protected]:nucivic/dkan' --depth=1 dkan-ahoy
git clone '[email protected]:getdkan/dkan' --depth=1 dkan-ahoy
cp -r dkan-ahoy/.ahoy dkan/
cp dkan-ahoy/dkan-init.sh dkan/
cp dkan-ahoy/test/behat.docker.yml dkan/test/
Expand Down
116 changes: 0 additions & 116 deletions profiles/dkan/.ahoy/site/.ahoy.yml

This file was deleted.

42 changes: 0 additions & 42 deletions profiles/dkan/.ahoy/site/.scripts/config.php

This file was deleted.

13 changes: 0 additions & 13 deletions profiles/dkan/.ahoy/site/.scripts/drush.alias.sh

This file was deleted.

32 changes: 0 additions & 32 deletions profiles/dkan/.ahoy/site/.scripts/overrides.php

This file was deleted.

95 changes: 0 additions & 95 deletions profiles/dkan/.ahoy/site/.scripts/prune-database.php

This file was deleted.

Loading

0 comments on commit dc2a10d

Please sign in to comment.