sudo apt-get -y install aptitude sudo aptitude update #Make aptitude be fully non-interactive, so we don't get the issues with Grub trying to configure itself. sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade #install packages sudo DEBIAN_FRONTEND=noninteractive apt-get -y install python-dev python-docutils gettext sudo libpam0g-dev libidn11 libidn11-dev cron postfix default-jdk #Install the HTH package sudo echo "deb http://package.perforce.com/apt/ubuntu xenial release" >> /etc/apt/sources.list wget -qO - http://package.perforce.com/perforce.pubkey | sudo apt-key add - sudo aptitude update sudo aptitude -y install hth sudo hth-ctl reconfigure #add our own configuration file, which contains config for Elastic Search sudo cp /home/vagrant/hws/hth.json /var/opt/hth/shared/ #Generate the self-signed certs, so https will work sudo aptitude -y install openssl sudo mkdir -p /etc/hth/ssl/ openssl req -x509 -subj '/C=US/ST=CA/L=Alameda/O=Perforce/OU=hth/CN=hth/E=hth@perforce.com' -nodes -days 365 -newkey rsa:2048 -keyout /etc/hth/ssl/192.168.2.71.key -out /etc/hth/ssl/192.168.2.71.crt > /dev/null 2>&1 if [ $? -ne 0 ]; then echo 'Errors while creating self-signed certificates!' exit 1 else echo 'Self-signed certificates have been created' fi sudo cp /etc/ssl/192.168.2.71.crt /etc/hth/trusted-certs/ #Reconfigure HTH sudo hth-ctl reconfigure #Run it again, as HTH seems to get stuck and I have to run reconfigure manually. sudo hth-ctl reconfigure #setup elastic search #sudo -u hth -i #cd /opt/hth/application/backend/current #bundle exec rake hth:search:create_index #Install the HTH license sudo cp /home/vagrant/hws/license /var/opt/hth/shared/.license.pem sudo hth-ctl restart
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#4 | 25880 | Jen Bottom | Integrating work on HTH setups from dev to main | ||
#3 | 25621 | Jen Bottom | Integrating sone fixes from dev to main | ||
#2 | 25132 | Jen Bottom | Copy up from dev to main | ||
#1 | 24897 | Jen Bottom |
Trying to submit hth.sh in the stand_alone setup. Issue on cetrnal server when trying to integ it from my dev stream |