Skip to content

Commit dc2a10d

Browse files
authored
Merge pull request #61 from GetDKAN/proposed_release_for_tag_1511834208
1511834208: Proposed release for 7.x-1.14
2 parents f93a835 + 5bccd67 commit dc2a10d

File tree

679 files changed

+19203
-6924
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

679 files changed

+19203
-6924
lines changed

profiles/dkan/.ahoy/.scripts/.ht.router.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
/**
43
* @file
54
* Routing-script for the built-in PHP web server.
@@ -26,17 +25,21 @@
2625
// Serve the requested resource as-is.
2726
return FALSE;
2827
}
28+
2929
// The use of a router-script means that a number of $_SERVER variables has to
3030
// be updated to point to the index-file.
3131
$index_file_absolute = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'index.php';
3232
$index_file_relative = DIRECTORY_SEPARATOR . 'index.php';
33+
3334
// SCRIPT_FILENAME will point to the router-script itself, it should point to
3435
// the full path to index.php.
3536
$_SERVER['SCRIPT_FILENAME'] = $index_file_absolute;
37+
3638
// SCRIPT_NAME and PHP_SELF will either point to /index.php or contain the full
3739
// virtual path being requested depending on the url being requested. They
3840
// should always point to index.php relative to document root.
3941
$_SERVER['SCRIPT_NAME'] = $index_file_relative;
4042
$_SERVER['PHP_SELF'] = $index_file_relative;
43+
4144
// Require the main index-file and let core take over.
4245
require $index_file_absolute;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
SETTINGS_PATH=docroot/sites/default/settings.php
2+
DIR=$(dirname $SETTINGS_PATH)
3+
chmod +w $SETTINGS_PATH
4+
chmod +w $DIR
5+
echo ".. Reconnect mysql."
6+
MYSQL_IP=`echo $1 | sed 's/.*@\(.*\)\/.*/\1/g'`
7+
sed -i "s/\(^\s*\)'host' => \(.*\),/\1'host' => '$MYSQL_IP',/g" $SETTINGS_PATH
8+
9+
chmod -w $SETTINGS_PATH
10+
chmod -w $DIR
11+

profiles/dkan/.ahoy/.scripts/server.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ cp ./dkan/.ahoy/.scripts/.ht.router.php ./docroot/
99
cd ./docroot
1010

1111
echo $HOST
12-
php -S $HOST:8888 .ht.router.php
12+
php -S $HOST:8888 .ht.router.php

profiles/dkan/.ahoy/dkan.ahoy.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ commands:
2020
if [ -d docroot ]
2121
then
2222
ahoy confirm "./docroot folder alredy exists. Delete it and reinstall drupal?" && chmod -R 777 docroot/sites/default && rm -rf docroot ||
23-
{ echo ".. skipping installation"; exit 1;}
23+
{
24+
echo ".. skipping installation";
25+
ahoy cmd-proxy bash dkan/.ahoy/.scripts/mysql-reconnect.sh $ARGS
26+
exit 1;
27+
}
2428
fi
2529
ahoy cmd-proxy bash dkan/.ahoy/.scripts/drupal-rebuild.sh $ARGS
2630
@@ -46,7 +50,7 @@ commands:
4650
if [ ! -d backups ]; then
4751
mkdir backups
4852
fi
49-
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
53+
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
5054
5155
ahoy drush sql-drop -y && \
5256
echo "... Removed tables, restoring DB"
@@ -185,7 +189,7 @@ commands:
185189
rm -fR dkan-ahoy
186190
rm -fR dkan/.ahoy
187191
rm dkan/dkan-init.sh
188-
git clone '[email protected]:nucivic/dkan' --depth=1 dkan-ahoy
192+
git clone '[email protected]:getdkan/dkan' --depth=1 dkan-ahoy
189193
cp -r dkan-ahoy/.ahoy dkan/
190194
cp dkan-ahoy/dkan-init.sh dkan/
191195
cp dkan-ahoy/test/behat.docker.yml dkan/test/

profiles/dkan/.ahoy/site/.ahoy.yml

-116
This file was deleted.

profiles/dkan/.ahoy/site/.scripts/config.php

-42
This file was deleted.

profiles/dkan/.ahoy/site/.scripts/drush.alias.sh

-13
This file was deleted.

profiles/dkan/.ahoy/site/.scripts/overrides.php

-32
This file was deleted.

profiles/dkan/.ahoy/site/.scripts/prune-database.php

-95
This file was deleted.

0 commit comments

Comments
 (0)