diff --git a/install.sh b/install.sh index 4d1c820..d0e5645 100644 --- a/install.sh +++ b/install.sh @@ -1,5 +1,6 @@ #!/bin/bash +apt-get update apt-get install -y --assume-yes python-pip wget dialog pip install python2-pythondialog wget -qO- "https://srchub.org/p/srchub-install/source/file/master/srchub-install.py" | python \ No newline at end of file diff --git a/srchub-install.py b/srchub-install.py index 17a90b0..80a1399 100644 --- a/srchub-install.py +++ b/srchub-install.py @@ -166,7 +166,7 @@ def install_cron_jobs(): with open('/tmp/cron', 'w') as content_file: content_file.write(CRON_JOB_SCRIPT) call("crontab -u www-data /tmp/cron".split(" ")) - call(["rm /tmp/cron"]) + call(["rm", "/tmp/cron"]) def update_mercurial_hooks(): hgconf = ""