Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
None
Description
first step is copy script hooks file in workflow
Lacey Vickery(opens in new tab) Yesterday at 1:47 PM |
Trying to use the custom shell hooks in 2.5.28, I should just need to mount a file to the container under /usr/local/bin/grouperScriptHooks.sh, right? I’m trying to override the grouperScriptHooks_finishPrepPost() function, but it doesn’t seem to execute. Am I missing a step? |
#!/bin/sh
|
# called after the Grouper container config files are generated and massaged
|
# before the processes are started
|
grouperScriptHooks_finishPrepPost() {
|
sed -i “s|https://sp.example.org|test|g” /etc/shibboleth/shibboleth2.xml |
echo “ran custom script hook”
|
}Chris Hyzer(opens in new tab) 11 hours ago |
there is a slight issue that we need to work out. Are you not making a subimage?Chris Hyzer(opens in new tab) 11 hours ago |
you are mounting to slashRoot right?Chris Hyzer(opens in new tab) 11 hours ago |
until #30, maybe mount that exact file to the exact file, not using slashroot, since the slashroot happens after the sciprts are loaded from that file (currently). know what i mean?Chris Hyzer(opens in new tab) 11 hours ago |
or if you do a subimage, should work fine (if copying in image to the location and not to slashroot). again, this is temporaryLacey Vickery(opens in new tab) 11 hours ago |
Gotcha, I’ll try that and yes I’m not making a subimage, just mounting off slashRoot.Lacey Vickery(opens in new tab) 11 hours ago |
Mounting the exact file to /usr/local/bin instead of slashRoot works, thanks!Chris Hyzer(opens in new tab) 10 hours ago |
again, we will fix this soon so you dont have to do that, but its a workaround... |