Merge lp:~slub.team/goobi-production/bug-784584 into lp:goobi-production/1.6

Proposed by Ralf Claussnitzer
Status: Merged
Approved by: Ralf Claussnitzer
Approved revision: 29
Merged at revision: 29
Proposed branch: lp:~slub.team/goobi-production/bug-784584
Merge into: lp:goobi-production/1.6
Diff against target: 149 lines (+129/-0)
4 files modified
scripts/script_createDirMeta.sh (+31/-0)
scripts/script_createDirUserHome.sh (+35/-0)
scripts/script_createSymLink.sh (+33/-0)
scripts/script_deleteSymLink.sh (+30/-0)
To merge this branch: bzr merge lp:~slub.team/goobi-production/bug-784584
Reviewer Review Type Date Requested Status
Ralf Claussnitzer (community) Approve
Review via email: mp+61567@code.launchpad.net

Commit message

fixes lp784584

Description of the change

Fixes bug lp784584.

To post a comment you must log in.
Revision history for this message
Ralf Claussnitzer (ralf-claussnitzer-deactivatedaccount) wrote :

Calling bash scripts from a Java Servlet container is the opposite of platform independence.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'scripts'
=== added file 'scripts/script_createDirMeta.sh'
--- scripts/script_createDirMeta.sh 1970-01-01 00:00:00 +0000
+++ scripts/script_createDirMeta.sh 2011-05-19 13:31:17 +0000
@@ -0,0 +1,31 @@
1#!/bin/bash
2#
3# This file is part of the Goobi Application - a Workflow tool for the support of
4# mass digitization.
5#
6# Visit the websites for more information.
7# - http://gdz.sub.uni-goettingen.de
8# - http://www.goobi.org
9# - http://launchpad.net/goobi-production
10#
11# This program is free software; you can redistribute it and/or modify it under
12# the terms of the GNU General Public License as published by the Free Software
13# Foundation; either version 2 of the License, or (at your option) any later
14# version.
15#
16# This program is distributed in the hope that it will be useful, but WITHOUT ANY
17# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
18# PARTICULAR PURPOSE. See the GNU General Public License for more details. You
19# should have received a copy of the GNU General Public License along with this
20# program; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
21# Suite 330, Boston, MA 02111-1307 USA
22#
23
24#
25# Note: Ensure that Tomcat has permission to execute the given commands.
26#
27
28Directory="$1"
29
30/bin/mkdir -vm 0775 "$Directory"
31
032
=== added file 'scripts/script_createDirUserHome.sh'
--- scripts/script_createDirUserHome.sh 1970-01-01 00:00:00 +0000
+++ scripts/script_createDirUserHome.sh 2011-05-19 13:31:17 +0000
@@ -0,0 +1,35 @@
1#!/bin/bash
2#
3# This file is part of the Goobi Application - a Workflow tool for the support of
4# mass digitization.
5#
6# Visit the websites for more information.
7# - http://gdz.sub.uni-goettingen.de
8# - http://www.goobi.org
9# - http://launchpad.net/goobi-production
10#
11# This program is free software; you can redistribute it and/or modify it under
12# the terms of the GNU General Public License as published by the Free Software
13# Foundation; either version 2 of the License, or (at your option) any later
14# version.
15#
16# This program is distributed in the hope that it will be useful, but WITHOUT ANY
17# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
18# PARTICULAR PURPOSE. See the GNU General Public License for more details. You
19# should have received a copy of the GNU General Public License along with this
20# program; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
21# Suite 330, Boston, MA 02111-1307 USA
22#
23
24#
25# Note: Ensure that Tomcat has permission to execute the given commands.
26#
27
28User="$1"
29Home="$2"
30
31/bin/mkdir "$Home"
32/bin/chmod g+w "$Home"
33/bin/chown $User "$Home"
34/bin/chgrp tomcat "$Home"
35
036
=== added file 'scripts/script_createSymLink.sh'
--- scripts/script_createSymLink.sh 1970-01-01 00:00:00 +0000
+++ scripts/script_createSymLink.sh 2011-05-19 13:31:17 +0000
@@ -0,0 +1,33 @@
1#!/bin/bash
2#
3# This file is part of the Goobi Application - a Workflow tool for the support of
4# mass digitization.
5#
6# Visit the websites for more information.
7# - http://gdz.sub.uni-goettingen.de
8# - http://www.goobi.org
9# - http://launchpad.net/goobi-production
10#
11# This program is free software; you can redistribute it and/or modify it under
12# the terms of the GNU General Public License as published by the Free Software
13# Foundation; either version 2 of the License, or (at your option) any later
14# version.
15#
16# This program is distributed in the hope that it will be useful, but WITHOUT ANY
17# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
18# PARTICULAR PURPOSE. See the GNU General Public License for more details. You
19# should have received a copy of the GNU General Public License along with this
20# program; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
21# Suite 330, Boston, MA 02111-1307 USA
22#
23
24#
25# Note: Ensure that Tomcat has permission to execute the given commands.
26#
27
28Source="$1"
29Target="$2"
30User="$3"
31
32/bin/ln -vs "$Source" "$Target"
33/bin/chown -vR "$User" "$Source"
034
=== added file 'scripts/script_deleteSymLink.sh'
--- scripts/script_deleteSymLink.sh 1970-01-01 00:00:00 +0000
+++ scripts/script_deleteSymLink.sh 2011-05-19 13:31:17 +0000
@@ -0,0 +1,30 @@
1#!/bin/bash
2#
3# This file is part of the Goobi Application - a Workflow tool for the support of
4# mass digitization.
5#
6# Visit the websites for more information.
7# - http://gdz.sub.uni-goettingen.de
8# - http://www.goobi.org
9# - http://launchpad.net/goobi-production
10#
11# This program is free software; you can redistribute it and/or modify it under
12# the terms of the GNU General Public License as published by the Free Software
13# Foundation; either version 2 of the License, or (at your option) any later
14# version.
15#
16# This program is distributed in the hope that it will be useful, but WITHOUT ANY
17# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
18# PARTICULAR PURPOSE. See the GNU General Public License for more details. You
19# should have received a copy of the GNU General Public License along with this
20# program; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
21# Suite 330, Boston, MA 02111-1307 USA
22#
23
24#
25# Note: Ensure that Tomcat has permission to execute the given commands.
26#
27
28Link="$1"
29
30rm -v "$Link"

Subscribers

People subscribed via source and target branches

to all changes: