Skip to content
Snippets Groups Projects
Commit 83d1776b authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Fixed paths in getenvsetup script | refs #32734

parent 5453d1b6
No related branches found
No related tags found
No related merge requests found
...@@ -37,21 +37,21 @@ if [ "$proxy" ]; then ...@@ -37,21 +37,21 @@ if [ "$proxy" ]; then
git config --global http.proxy "$proxy" git config --global http.proxy "$proxy"
echo "HTTP_PROXY=\"http://$proxy\"" >> /etc/environment echo "HTTP_PROXY=\"http://$proxy\"" >> /etc/environment
echo "HTTPS_PROXY=\"http://$proxy\"" >> /etc/environment echo "HTTPS_PROXY=\"http://$proxy\"" >> /etc/environment
source /etc/environment
fi fi
# clone envsetup # clone envsetup
cd /root
git clone https://mirismanager.ubicast.eu/git/mediaserver/envsetup.git -b stable git clone https://mirismanager.ubicast.eu/git/mediaserver/envsetup.git -b stable
cd /root/envsetup || exit cd /root/envsetup || exit
# activation key # activation key
read -r -p "Activation key (e.g. XXX-XXX-XXX-XXX): " key read -r -p "Activation key (e.g. XXX-XXX-XXX-XXX): " key
if [ "$key" ]; then if [ "$key" ]; then
cp -u /root/envsetup/inventories/local-${target}/host_vars/localhost.{dist.yml,yml} cp -u /root/envsetup/ansible/inventories/local-${target}/host_vars/localhost.{dist.yml,yml}
# temp fix while waiting for envsetup3 to be merged into stable sed -i "s/skyreach_activation_key:.*/skyreach_activation_key: ${key}/g" /root/envsetup/ansible/inventories/local-${target}/host_vars/localhost.yml
test -f site.yml || git checkout master
sed -i "s/skyreach_activation_key:.*/skyreach_activation_key: ${key}/g" /root/envsetup/inventories/local-${target}/host_vars/localhost.yml
fi fi
# deploy target # deploy target
make install make install
make deploy i=inventories/local-${target} make deploy i=/root/envsetup/ansible/inventories/local-${target}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment