Commit 88cfa65a authored by Vivien Alger's avatar Vivien Alger

Corrected function definition in re6stnet

parent 70655daa
SLAPOS_CFG_PATH=/etc/opt/slapos/slapos.cfg SLAPOS_CFG_PATH=/etc/opt/slapos/slapos.cfg
function re6st_conf_generation{ function re6st_conf_generation
{
# Generate re6st configuration # Generate re6st configuration
read -p "Please enter the registry you wish to use for re6st[http://re6stnet.nexedi.com]: " REGISTRY read -p "Please enter the registry you wish to use for re6st[http://re6stnet.nexedi.com]: " REGISTRY
REGISTRY=${REGISTRY:-http://re6stnet.nexedi.com} REGISTRY=${REGISTRY:-http://re6stnet.nexedi.com}
...@@ -11,7 +12,8 @@ function re6st_conf_generation{ ...@@ -11,7 +12,8 @@ function re6st_conf_generation{
effect" effect"
} }
function remove_VPN_conf{ function remove_VPN_conf
{
# Remove VPN configuration # Remove VPN configuration
if [ -e /etc/openvpn/vifib.conf ]; then if [ -e /etc/openvpn/vifib.conf ]; then
rm /etc/openvpn/vifib.conf rm /etc/openvpn/vifib.conf
...@@ -25,7 +27,8 @@ function remove_VPN_conf{ ...@@ -25,7 +27,8 @@ function remove_VPN_conf{
fi fi
} }
function modify_interfaces_in_SlapOS_conf{ function modify_interfaces_in_SlapOS_conf
{
# Modify slapos.cfg to use lo # Modify slapos.cfg to use lo
cp $SLAPOS_CFG_PATH $SLAPOS_CFG_PATH.old cp $SLAPOS_CFG_PATH $SLAPOS_CFG_PATH.old
echo "Copied old slapos.cfg to $SLAPOS_CFG_PATH.old" echo "Copied old slapos.cfg to $SLAPOS_CFG_PATH.old"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment