37 lines
778 B

  1. #!/bin/bash
  2. set -eux
  3. apt-get install -y --force-yes python-pip
  4. pip install devpi-server
  5. # cat <<EOF >> /etc/init/devpi-server.conf
  6. # # this script will start/stop DevPI Server
  7. # description "DevPI server"
  8. # version "1.0"
  9. # author "Valentin Lab"
  10. # chdir /root
  11. # exec devpi-server --start --host 0.0.0.0 --port 3142
  12. # EOF
  13. cp -a etc/devpi-server/* /etc/devpi-server
  14. mkdir /var/{lib,log}/devpi-server -p
  15. systemctl enable /etc/devpi-server/devpi-server.service
  16. ## This is needed to enable https_port
  17. #apt-get install devscripts build-essential
  18. #apt-get install libssl-dev ## not in build-dep ... because we'll add it.
  19. #apt-get source squid3
  20. #apt-get build-dep squid3
  21. #cd squid3-3.1.19
  22. #vim debian/rules # or whatever editor you use
  23. # add --enable-ssl
  24. #debuild -us -uc