Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: future
-
Component/s: Development Environment
-
Labels:None
Description
After unpacking the source, do the following in the source's root:
{{{
for feil in $(grep -R '#!/bin/bash' . | cut -d: -f1); do
mv $feil{,.old}
sed -e 's,#!/bin/bash,#!/usr/bin/env bash,' $feil.old > $feil
rm $feil.old
chmod u+x $feil
done
}}}
Install misc/getopt and make sure it comes in precedence to /usr/bin/getopt, easiest done by placing /usr/local/bin before /usr/bin in you PATH environment variable.
After unpacking the hub tbz2 created with the createHubTarball.sh script, do the following in the root:
{{{
for feil in $(grep -R '/bin/bash' . | cut -d: -f1); do
mv $feil{,.old}
sed -e 's,/bin/bash,/usr/local/bin/bash,' $feil.old > $feil
rm $feil.old
chmod u+x $feil
done
}}}
It would be advisable not to hardcode the path to bash since there are even linux systems that have it under /usr/bin or even /usr/local/bin.
Some further ideas:
* make the url prefix dynamic (changeable) via a --url-prefix parameter to the hubSetup.sh script.
* support a special db user only for installing/creating the database, which normally will be "pgsql" (unlike "postgres" on linux).
{{{
for feil in $(grep -R '#!/bin/bash' . | cut -d: -f1); do
mv $feil{,.old}
sed -e 's,#!/bin/bash,#!/usr/bin/env bash,' $feil.old > $feil
rm $feil.old
chmod u+x $feil
done
}}}
Install misc/getopt and make sure it comes in precedence to /usr/bin/getopt, easiest done by placing /usr/local/bin before /usr/bin in you PATH environment variable.
After unpacking the hub tbz2 created with the createHubTarball.sh script, do the following in the root:
{{{
for feil in $(grep -R '/bin/bash' . | cut -d: -f1); do
mv $feil{,.old}
sed -e 's,/bin/bash,/usr/local/bin/bash,' $feil.old > $feil
rm $feil.old
chmod u+x $feil
done
}}}
It would be advisable not to hardcode the path to bash since there are even linux systems that have it under /usr/bin or even /usr/local/bin.
Some further ideas:
* make the url prefix dynamic (changeable) via a --url-prefix parameter to the hubSetup.sh script.
* support a special db user only for installing/creating the database, which normally will be "pgsql" (unlike "postgres" on linux).