sudo apt-get install -y apache2 libapache2-mod-authnz-external
sudo a2enmod authnz_external ssl
sudo service apache2 stop
sudo echo "ServerName GF" >> /etc/apache2/apache2.conf
sudo cp /opt/perforce/git-fusion/libexec/apache_site_example_ssl_ubuntu.txt /etc/apache2/sites-available/git-fusion-ssl
sudo mkdir /etc/apache2/ssl
#sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt
sudo a2dissite default
sudo a2ensite git-fusion-ssl
sudo echo "export PATH=/opt/perforce/git-fusion/bin:$PATH" >> /etc/apache2/envars
echo "Change the user and group in /etc/apache2/envars to be git and perforce"
sudo cp /opt/perforce/git-fusion/libexec/p4auth.sh.template /opt/perforce/git-fusion/libexec/p4auth.sh
sudo rm -rf /var/lock/apache2
echo "Update the P4PORT value in /etc/apache2/sites-available/gitfusion-ssl, then re-start apache2"
echo "Also create the certificates"
#Set some system wide variables for the VM.
sudo echo "export P4EDITOR=nano" >> /etc/bash.bashrc
sudo echo "export P4PORT=ssl:localhost:1666" >> /etc/bash.bashrc
sudo echo "export P4CONFIG=.p4config" >> /etc/bash.bashrc
# |
Change |
User |
Description |
Committed |
|
#2
|
25621 |
Jen Bottom |
Integrating sone fixes from dev to main |
|
|
#1
|
18706 |
jenbottom |
Moving some files aroudn to make things less messy and hopefully easier to find |
|
|
//guest/jen_bottom/vagrant/https_setup |
#1
|
17965 |
jenbottom |
Correcting type on provision script |
|
|