Skip to content

Instantly share code, notes, and snippets.

@ponsfrilus
Last active July 28, 2016 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ponsfrilus/893c2725ea88efaa0b561c7b942c5c72 to your computer and use it in GitHub Desktop.
Save ponsfrilus/893c2725ea88efaa0b561c7b942c5c72 to your computer and use it in GitHub Desktop.
Setting up the Open Semantic Framework
#!/bin/bash
# Setting up the Open Semantic Framework
# https://github.com/structureddynamics/Open-Semantic-Framework-Installer#installing-the-open-semantic-framework
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
# 1. Change localhost to osf
sed -i 's/localhost/osf/g' /usr/share/osf-installer/installer.ini
# 2. Change sql-host to 127.0.0.1
sed -i 's/sql-host = "osf"/sql-host = "127.0.0.1"/g' /usr/share/osf-installer/installer.ini
# 3. Change all password to the XXXXXX
# sed -i 's/-password = ".*"/-password = "XXXXXX"/g' /usr/share/osf-installer/installer.ini
# 4. Change sparql-channel from "odbc" to "http"
sed -i 's/sparql-channel = "odbc"/sparql-channel = "http"/g' /usr/share/osf-installer/installer.ini
# ==> RUN THE INSTALLER
## With that commande /usr/share/osf-installer/osf-installer --install-osf -v => sh: 1: drush: not found
# http://unix.stackexchange.com/questions/83191/how-to-make-sudo-preserve-path
env "PATH=$PATH:/home/nbo/.composer/vendor/drush/drush/" /usr/share/osf-installer/osf-installer -d --install-osf-drupal -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment