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

Changed envsetup conf import in bash scripts (refs #19005).

parent acb9dd34
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 19 deletions
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
echo -e " echo -e "
${RED}Customer parameters will be applied after rebooting. Note that you won't be able to login to the machine after this operation !${NC}" ${RED}Customer parameters will be applied after rebooting. Note that you won't be able to login to the machine after this operation !${NC}"
......
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
# generate post-deployment conf file # generate post-deployment conf file
echo "SOURCES.LIST" > /root/deployment.results echo "SOURCES.LIST" > /root/deployment.results
......
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
# set SMTP # set SMTP
if ( ! test -z ${EMAIL_SMTP_SERVER} ) if ( ! test -z ${EMAIL_SMTP_SERVER} )
......
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
# apply MS default network parameters # apply MS default network parameters
sudo sed -i "s@address .*@address 192.168.1.10@" /etc/network/interfaces sudo sed -i "s@address .*@address 192.168.1.10@" /etc/network/interfaces
......
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
echo "Insert wowza license key :" echo "Insert wowza license key :"
read WOWZA_LICENSE2 read WOWZA_LICENSE2
......
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
# hostname # hostname
echo "127.0.0.1 ${ETC_HOSTNAME}" >> /etc/hosts echo "127.0.0.1 ${ETC_HOSTNAME}" >> /etc/hosts
......
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
# Conf setup # Conf setup
sed -i "s@^NTP_SERVER1 = .*@NTP_SERVER1 = '${NTP}'@" /root/envsetup/conf.py sed -i "s@^NTP_SERVER1 = .*@NTP_SERVER1 = '${NTP}'@" /root/envsetup/conf.py
......
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
# deploy ssl certificate # deploy ssl certificate
if ( test ${SSL_CERTIFICATE} ) if ( test ${SSL_CERTIFICATE} )
......
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
# This script should be run after Nginx and Wowza setup (if they should be installed) # This script should be run after Nginx and Wowza setup (if they should be installed)
......
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
# installation mediaserver # installation mediaserver
DEBIAN_FRONTEND=noninteractive apt-get install -y python3-mediaserver DEBIAN_FRONTEND=noninteractive apt-get install -y python3-mediaserver
......
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
# optimisations nginx # optimisations nginx
if ( test -f /etc/nginx/nginx.conf ) if ( test -f /etc/nginx/nginx.conf )
......
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
#APT_CACHER_PWD=$(cat ${CONF} | egrep ^APT_CACHER_PWD | head -1 | awk -F "=" '{print$2}') #APT_CACHER_PWD=$(cat ${CONF} | egrep ^APT_CACHER_PWD | head -1 | awk -F "=" '{print$2}')
APT_CACHER_PWD=$(pwgen 12) APT_CACHER_PWD=$(pwgen 12)
......
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
sed -i "s@\[CLIENT\]@$(hostname)@" default sed -i "s@\[CLIENT\]@$(hostname)@" default
sed -i "s@\[CACHE_DIR\]@${CACHE_DIR}@" default sed -i "s@\[CACHE_DIR\]@${CACHE_DIR}@" default
......
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
# for munin # for munin
DEBIAN_FRONTEND=noninteractive apt-get install -y ubicast-config DEBIAN_FRONTEND=noninteractive apt-get install -y ubicast-config
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
DEBIAN_FRONTEND=noninteractive aptitude install -y ferm DEBIAN_FRONTEND=noninteractive aptitude install -y ferm
cp ferm.conf /etc/ferm/ferm.conf cp ferm.conf /etc/ferm/ferm.conf
......
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
aptitude install -y dialog aptitude install -y dialog
cd /root cd /root
......
#!/bin/bash #!/bin/bash
# Envsetup local configuration file # Envsetup local configuration file
# See default configuration in default-conf.sh # See default configuration in default-conf.sh
#
source default-conf.sh
# Put your configuration here # Put your configuration here
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
echo "Testing apt-get upgrade" echo "Testing apt-get upgrade"
......
#!/bin/bash #!/bin/bash
source /root/envsetup/envsetup.conf source /root/envsetup/conf.sh
set -e set -e
......
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