Skip to content

Commit

Permalink
Fixing hostname and modules dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Neel committed Dec 2, 2015
1 parent 5ce91fc commit 1227cf7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
def install_kalite():
sudo("apt-get install -y python-pip") or die("Unable to install pip.")
sudo("pip install ka-lite-static") or die("Unable to install KA-Lite")
sudo("printf '\nrachel\nrachel\nrachel\nrachel\nrachel\nyes\nyes\n' | sudo kalite manage setup")
return True

def install_kiwix():
Expand Down Expand Up @@ -118,6 +119,9 @@ def cp(s, d):
cp("files/gdbcommands", "/etc/samba/gdbcommands") or die("Unable to copy samba configuration file (gdbcommands).")

# Install web frontend
if not exists("/var/www/modules"):
sudo("mkdir /var/www/modules") or die("Unable to create modules dir.")
sudo("chmod 777 /var/www/modules") or die("Unable to make modules directory writable.")
sudo("rm -fr /var/www") or die("Unable to delete existing default web application (/var/www).")
sudo("git clone --depth 1 https://github.com/rachelproject/contentshell /var/www") or die("Unable to download RACHEL web application.")
sudo("chown -R www-data.www-data /var/www") or die("Unable to set permissions on RACHEL web application (/var/www).")
Expand Down

0 comments on commit 1227cf7

Please sign in to comment.