Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Guillaume Hervier
slapos.package
Commits
747ee9c8
Commit
747ee9c8
authored
Jun 14, 2013
by
Vivien Alger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrading script logic a little bit
parent
0db65b60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
templates/re6stnet.sh
templates/re6stnet.sh
+11
-12
No files found.
templates/re6stnet.sh
View file @
747ee9c8
...
@@ -40,25 +40,24 @@ modify_interfaces_in_SlapOS_conf()
...
@@ -40,25 +40,24 @@ modify_interfaces_in_SlapOS_conf()
#XXX Vivien: fugly logic, feel free to modify it if you can do better
#XXX Vivien: fugly logic, feel free to modify it if you can do better
# or if install/upgrade procedure was simplified
# or if install/upgrade procedure was simplified
if
[
-e
$SLAPOS_CFG_PATH
]
;
then
if
[
!
-e
/etc/re6stnet/re6stnet.conf
]
;
then
# In case of an upgrade test for native ipv6 inside slapos.cfg
if
[
-e
$SLAPOS_CFG_PATH
]
;
then
if
grep
-qe
"ipv6_interface"
$SLAPOS_CFG_PATH
&&
!
grep
-qe
"#ipv6_interface"
$SLAPOS_CFG_PATH
;
then
# In case of an upgrade test for native ipv6 inside slapos.cfg
# If using vifib VPN
if
grep
-qe
"ipv6_interface"
$SLAPOS_CFG_PATH
&&
!
grep
-qe
"#ipv6_interface"
$SLAPOS_CFG_PATH
;
then
remove_VPN_conf
# If using vifib VPN
remove_VPN_conf
modify_interfaces_in_SlapOS_conf
modify_interfaces_in_SlapOS_conf
re6st_conf_generation
elif
[
!
-e
/etc/re6stnet/re6stnet.conf
]
;
then
if
grep
-qe
"interface_name = lo"
$SLAPOS_CFG_PATH
;
then
# New node with new configuration case
re6st_conf_generation
re6st_conf_generation
else
else
# Manual configuration by user before upgrade
# Manual configuration by user before upgrade
echo
"You seem to have no separate interface for ipv6, please proceed
\
echo
"You seem to have no separate interface for ipv6, please proceed
\
with the configuration of re6st and SlapOS Node by yourself."
with the configuration of re6st and SlapOS Node by yourself."
fi
fi
else
# New node
re6st_conf_generation
fi
fi
fi
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment