Skip to content
This repository was archived by the owner on Jul 11, 2018. It is now read-only.

Commit 7562752

Browse files
committed
Merged develop into master
2 parents fef08ea + 41f48d5 commit 7562752

File tree

8 files changed

+84
-22
lines changed

8 files changed

+84
-22
lines changed

bin/deploy/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This dir contains a collection of deployment script used by SURFnet, you can use these as inspiration
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#/bin/sh
2+
# @todo remove hardcoded user name
3+
4+
if [ -z "$1" ]
5+
then
6+
7+
cat << EOF
8+
Please specify the tag or branch to make a release of.
9+
10+
Examples:
11+
12+
sh bin/deploy/deployToSurfconextTest.sh 0.1.0
13+
sh bin/deploy/deployToSurfconextTest.sh master
14+
sh bin/deploy/deployToSurfconextTest.sh develop
15+
EOF
16+
exit 1
17+
else
18+
TAG=$1
19+
fi
20+
21+
# Make a new release
22+
bin/makeRelease.sh ${TAG}
23+
24+
# Copy release to test server
25+
scp ~/Releases/OpenConext-serviceregistry-${TAG}.tar.gz lucas@surf-test:/opt/data/test/
26+
27+
# @todo add error handling
28+
# Replace current version with new version and run migrations
29+
ssh lucas@surf-test <<COMMANDS
30+
cd /opt/data/test
31+
tar -xzf OpenConext-serviceregistry-${TAG}.tar.gz
32+
rm OpenConext-serviceregistry-${TAG}.tar.gz
33+
rm -rf OpenConext-serviceregistry
34+
mv OpenConext-serviceregistry-${TAG} OpenConext-serviceregistry
35+
cd /opt/www/serviceregistry
36+
bin/migrate
37+
COMMANDS

bin/makeRelease.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,15 @@ rm -rf ${PROJECT_DIR}/config
6161
rm -rf ${PROJECT_DIR}/metadata
6262
rm -rf ${PROJECT_DIR}/janus-dictionaries
6363
rm -rf ${PROJECT_DIR}/simplesamlphp_patches
64+
rm -rf ${PROJECT_DIR}/vendor/janus-ssp/janus/www/install
6465

6566
# create tarball
6667
cd ${RELEASE_DIR}
6768
tar -czf ${PROJECT_DIR_NAME}.tar.gz ${PROJECT_DIR_NAME}
6869

6970
# create checksum file
7071
cd ${RELEASE_DIR}
71-
shasum ${PROJECT_DIR_NAME}.tar.gz > ${PROJECT_DIR_NAME}.sha
72+
sha1sum ${PROJECT_DIR_NAME}.tar.gz > ${PROJECT_DIR_NAME}.sha
7273

7374
# sign it if requested
7475
if [ -n "$2" ]

bin/simplesamlphp-post-install.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,17 @@ cd $JANUS_DIR/www/resources
4141
ln -sf ../../../../../components
4242

4343
# Set custom janus dictionaries
44-
cd $JANUS_DIR
45-
git checkout dictionaries/metadatafields.definition.json
44+
cd $JANUS_DIR/dictionaries
45+
46+
# Make a backup of the original metadatafields definitions
47+
if [ ! -f metadatafields.definition.json.org ]; then
48+
cp metadatafields.definition.json metadatafields.definition.json.org
49+
fi
50+
51+
# Reset the metadatafields definitions
52+
cp metadatafields.definition.json.org metadatafields.definition.json
53+
54+
# Merge metadatafields definitions with overrides
4655
cd $ROOT_DIR
4756
php bin/mergeJsonFiles.php \
4857
$JANUS_DIR/dictionaries/metadatafields.definition.json \

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
],
1010
"require": {
1111
"simplesamlphp/simplesamlphp": "1.9.0",
12-
"janus-ssp/janus": "1.14.0",
12+
"janus-ssp/janus": "1.15.0",
1313
"dbpatch/dbpatch": "1.1.1"
1414
},
1515
"scripts": {

composer.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/module_cron.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
*/
77

88
$config = array (
9-
'key' => 'DrAXe6as',
9+
'key' => '',
1010
'allowed_tags' => array('daily', 'hourly', 'frequent'),
1111
'debug_message' => TRUE,
12-
'sendemail' => FALSE,
12+
'sendemail' => TRUE,
13+
'enabled' => FALSE,
14+
1315
);
1416

1517
$localConfig = '/etc/surfconext/serviceregistry.module_cron.php';

docs/release_notes/v3.8.0.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,16 @@ Feature/Bugfix release
1212
*/
1313
$config['revision.notes.required'] = true;
1414

15+
* BACKLOG-1145 config/module_cron.php contains a password
1516

17+
Install info:
18+
* Add the following config to the file /etc/surfconext/serviceregistry.module_cron.php
19+
20+
<code>
21+
$config = array (
22+
'key' => 'DrAXe6as',
23+
'allowed_tags' => array('daily', 'hourly', 'frequent'),
24+
'debug_message' => TRUE,
25+
'sendemail' => FALSE,
26+
);
27+
</code>

0 commit comments

Comments
 (0)