diff --git a/rakefile b/rakefile index c62c87701e..9eaa4534f2 100644 --- a/rakefile +++ b/rakefile @@ -25,7 +25,6 @@ PACKAGE_REPO = "packages@gp.mitx.mit.edu:/opt/pkgrepo.incoming" NORMALIZED_DEPLOY_NAME = DEPLOY_NAME.downcase().gsub(/[_\/]/, '-') INSTALL_DIR_PATH = File.join(DEPLOY_DIR, NORMALIZED_DEPLOY_NAME) -PIP_REPO_REQUIREMENTS = "#{INSTALL_DIR_PATH}/repo-requirements.txt" # Set up the clean and clobber tasks CLOBBER.include(BUILD_DIR, REPORT_DIR, 'cover*', '.coverage', 'test_root/*_repo', 'test_root/staticfiles') CLEAN.include("#{BUILD_DIR}/*.deb", "#{BUILD_DIR}/util") @@ -193,36 +192,7 @@ task :package do afterremove.close() FileUtils.chmod(0755, afterremove.path) - postinstall = Tempfile.new('postinstall') - postinstall.write <<-POSTINSTALL.gsub(/^\s*/, '') - #! /bin/sh - set -e - set -x - - - service gunicorn stop || echo "Unable to stop gunicorn. Continuing" - rm -f #{LINK_PATH} - ln -s #{INSTALL_DIR_PATH} #{LINK_PATH} - chown makeitso:makeitso #{LINK_PATH} - - # install python modules that are in the package - if [ -r #{PIP_REPO_REQUIREMENTS} ]; then - cd #{INSTALL_DIR_PATH} - pip install -r #{PIP_REPO_REQUIREMENTS} - fi - - chown -R makeitso:makeitso #{INSTALL_DIR_PATH} - - # Delete mako temp files - rm -rf /tmp/tmp*mako - - service gunicorn start || echo "Unable to start gunicorn. Continuing" - POSTINSTALL - postinstall.close() - FileUtils.chmod(0755, postinstall.path) - args = ["fakeroot", "fpm", "-s", "dir", "-t", "deb", - "--after-install=#{postinstall.path}", "--after-remove=#{afterremove.path}", "--prefix=#{INSTALL_DIR_PATH}", "--exclude=**/build/**",