Last active
July 28, 2016 14:51
-
-
Save ponsfrilus/893c2725ea88efaa0b561c7b942c5c72 to your computer and use it in GitHub Desktop.
Setting up the Open Semantic Framework
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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