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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
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
Show 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,7 +40,8 @@ modify_interfaces_in_SlapOS_conf()
#XXX Vivien: fugly logic, feel free to modify it if you can do better
# or if install/upgrade procedure was simplified
if
[
-e
$SLAPOS_CFG_PATH
]
;
then
if
[
!
-e
/etc/re6stnet/re6stnet.conf
]
;
then
if
[
-e
$SLAPOS_CFG_PATH
]
;
then
# In case of an upgrade test for native ipv6 inside slapos.cfg
if
grep
-qe
"ipv6_interface"
$SLAPOS_CFG_PATH
&&
!
grep
-qe
"#ipv6_interface"
$SLAPOS_CFG_PATH
;
then
# If using vifib VPN
...
...
@@ -50,15 +51,13 @@ if [ -e $SLAPOS_CFG_PATH ]; then
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
else
# Manual configuration by user before upgrade
echo
"You seem to have no separate interface for ipv6, please proceed
\
with the configuration of re6st and SlapOS Node by yourself."
fi
else
# New node
re6st_conf_generation
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