1
0
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
Arnaud M 7ee8e9159e Set correct path for os alias
Signed-off-by: Arnaud M <arnaud.choupinette@mailops.fr>
2024-01-02 23:52:01 +01:00
Arnaud M 168ca2dcbe Update tofu to work with deb12
Signed-off-by: Arnaud M <arnaud.choupinette@mailops.fr>
2024-01-02 23:52:01 +01:00
7 changed files with 5 additions and 3 deletions

View File

@ -1,8 +1,10 @@
#!/bin/bash #!/bin/bash
apt-get update apt-get update
apt-get -y install python3-pip git apt-get -y install python3-pip git python3-venv
git clone https://github.com/arnaudmorin/demo-flask /opt/demo-flask git clone https://github.com/arnaudmorin/demo-flask /opt/demo-flask
pip3 install -r /opt/demo-flask/requirements.txt python3 -m venv /opt/demo-flask-venv
/opt/demo-flask-venv/bin/pip install -r /opt/demo-flask/requirements.txt
sed -i -r 's|^python3|/opt/demo-flask-venv/bin/python|' /opt/demo-flask/start.sh
cp /opt/demo-flask/demo-flask.service /etc/systemd/system/ cp /opt/demo-flask/demo-flask.service /etc/systemd/system/
systemctl enable demo-flask.service systemctl enable demo-flask.service
systemctl daemon-reload systemctl daemon-reload

View File

@ -78,7 +78,7 @@ EOF
title.print "Configure bash" title.print "Configure bash"
cat <<'EOF'>>/root/.bashrc cat <<'EOF'>>/root/.bashrc
PS1='\e[2;37m\u@\h\e[0m \e[0;32m$PWD\e[0m \e[1;31m>\e[0m ' PS1='\e[2;37m\u@\h\e[0m \e[0;32m$PWD\e[0m \e[1;31m>\e[0m '
alias os=openstack alias os=/opt/oscli/bin/openstack
alias k=kubectl alias k=kubectl
EOF EOF