Skip to content
Snippets Groups Projects
Commit ee589021 authored by alvaro's avatar alvaro
Browse files

adding option to automatize linking of existing components during installation

parent 0e668a46
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ _basens=
_sparqlendpoint=
_chown=
_chmod=
_component=
options=$@
......@@ -179,8 +180,14 @@ cat $root_htaccess >> $parent_htaccess
echo "RewriteRule ^(.+)\$ $home/index.php?q=\$1 [L]" >> $parent_htaccess
echo "</IfModule>" >> $parent_htaccess
mkdir -p cache
cp -r doc/examples/originalComponents components
mkdir -p components/uris
if [ ! -z "$_components" ]; then
cp -r doc/examples/originalComponents components
mkdir -p components/uris
else
ln -s "$_components"
done
bold=`tput bold`
normal=`tput sgr0`
wwwUser=`ps aux|egrep "apache|httpd|www" |egrep -v "grep|root"|awk '{print $1}'|uniq|tail -1`
......
......@@ -24,6 +24,7 @@ _basens=
_sparqlendpoint=
_chown=
_chmod=
_components=
options=$@
......@@ -55,6 +56,9 @@ for argument in $options
chmod=*) val=${argument#*=};
opt=${argument%=$val};
_chmod="chmod=${val}" ;;
components=*) val=${argument#*=};
opt=${argument%=$val};
_components="components=${val}" ;;
esac
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment